From 088a271d5483001f341676e0b7c6cbcd759e079a Mon Sep 17 00:00:00 2001 From: rscnt Date: Thu, 28 May 2015 02:30:28 -0600 Subject: [PATCH] configs: added include proxy conf example. Signed-off-by: rscnt --- configs/nginx.proxy.conf | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 configs/nginx.proxy.conf diff --git a/configs/nginx.proxy.conf b/configs/nginx.proxy.conf new file mode 100644 index 00000000..acf288fa --- /dev/null +++ b/configs/nginx.proxy.conf @@ -0,0 +1,24 @@ +server { + listen 8081; + server_name destruction.io; + + location /static/ { + alias /home/r/dynamicweb/static; + } + + location /media/ { + alias /home/r/dynamicweb/media; + } + + location / { + proxy_pass http://localhost:8080/; + proxy_pass_header Server; + proxy_set_header Host $host; + 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; + } +}