2015-05-28 08:30:28 +00:00
|
|
|
server {
|
2015-05-31 11:36:45 +00:00
|
|
|
listen destruction.io:8080;
|
2015-05-28 08:30:28 +00:00
|
|
|
server_name destruction.io;
|
|
|
|
|
2015-05-31 11:36:45 +00:00
|
|
|
location /static {
|
|
|
|
alias /home/r/dynamicweb/static/;
|
2015-05-28 08:30:28 +00:00
|
|
|
}
|
|
|
|
|
2015-05-31 11:36:45 +00:00
|
|
|
location /media {
|
|
|
|
alias /home/r/dynamicweb/media/;
|
2015-05-28 08:30:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
2015-05-31 11:36:45 +00:00
|
|
|
proxy_pass http://127.0.0.1:8000/;
|
2015-05-28 08:30:28 +00:00
|
|
|
proxy_pass_header Server;
|
2015-05-31 11:36:45 +00:00
|
|
|
proxy_set_header Host $host:8080;
|
|
|
|
proxy_set_header X-Forwarded-Host $host:8080;
|
2015-05-28 08:30:28 +00:00
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Scheme $scheme;
|
|
|
|
proxy_connect_timeout 600;
|
|
|
|
proxy_send_timeout 600;
|
|
|
|
proxy_read_timeout 600;
|
|
|
|
}
|
|
|
|
}
|