Skip to content

Instantly share code, notes, and snippets.

@fstern
Created March 24, 2014 16:29
Show Gist options
  • Save fstern/9743821 to your computer and use it in GitHub Desktop.
Save fstern/9743821 to your computer and use it in GitHub Desktop.
podseed.org
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