Created
March 24, 2014 16:29
-
-
Save fstern/9743821 to your computer and use it in GitHub Desktop.
podseed.org
This file contains 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 4; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 768; | |
} | |
http { | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay on; | |
keepalive_timeout 65; | |
types_hash_max_size 2048; | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; | |
gzip off; | |
gzip_disable "msie6"; | |
server { | |
listen [::]:80; | |
server_name cdn.podseed.org; | |
root /opt/podcast_cdn; | |
location / { | |
error_page 404 = @not_found; | |
} | |
location /nginx_status { | |
stub_status on; | |
access_log off; | |
allow 127.0.0.1; | |
allow ::1; | |
allow 46.19.91.74; | |
allow 194.8.57.33; | |
allow 31.172.8.116; | |
deny all; | |
} | |
location @not_found { | |
rewrite ^/(.*)$ http://master.podseed.org/$1 redirect; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment