This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0x4f000Bcf4641E2fDcE85BF26A694b053996850D4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *filter | |
| # Allow all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0 | |
| -A INPUT -i lo -j ACCEPT | |
| -A INPUT -d 127.0.0.0/8 -j REJECT | |
| # Accept all established inbound & outbound connections | |
| -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT | |
| -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| server_name jamesoliveradams.com; | |
| listen 80; | |
| return 301 https://$server_name$request_uri; | |
| } | |
| server { | |
| listen 443 ssl spdy; | |
| # Get SSL setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user www-data; | |
| worker_processes 2; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| # Basic Settings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # install and remove nginx via apt-get | |
| # this sets up a lot of things which we would have to do manually otherwise | |
| sudo apt-get -y install nginx | |
| sudo apt-get -y remove nginx | |
| # set up build directories | |
| export BUILD_DIR=nginx-build | |
| rm -rf $BUILD_DIR |