Skip to content

Instantly share code, notes, and snippets.

@omkar0001
Last active December 19, 2015 08:52
Show Gist options
  • Save omkar0001/444f0b5c44bf5f6735cc to your computer and use it in GitHub Desktop.
Save omkar0001/444f0b5c44bf5f6735cc to your computer and use it in GitHub Desktop.
ideivr-nginx-conf
server {
server_name popioka.idelivr.info;
access_log off;
location /static_local/ {
alias /home/ubuntu/bookmyspot/v2/static_local/;
}
location /static/ {
alias /home/ubuntu/bookmyspot/v2/static/;
}
location /media/ {
alias /home/ubuntu/bookmyspot/v2/media/;
}
location /basic_status {
stub_status;
}
location / {
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:8000;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Real-IP $remote_addr;
add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment