dynamicweb/configs/nginx.proxy.conf
rscnt 3338894c23 configs: added nginx conf example
Signed-off-by: rscnt <rascnt@gmail.com>
2015-05-31 05:36:45 -06:00

25 lines
557 B
Text

server {
listen destruction.io:8080;
server_name destruction.io;
location /static {
alias /home/r/dynamicweb/static/;
}
location /media {
alias /home/r/dynamicweb/media/;
}
location / {
proxy_pass http://127.0.0.1:8000/;
proxy_pass_header Server;
proxy_set_header Host $host:8080;
proxy_set_header X-Forwarded-Host $host:8080;
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;
}
}