From 314a36ff34bcada9d52e25e84d2601ac2db15d36 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Sat, 6 Feb 2016 08:52:11 -0500 Subject: [PATCH] Added nginx block Former-commit-id: c3ce055d7a0aaa85fe6293f792251b068b410f0c [formerly f8737d32ba111fd3093750b8bb38d34182e71fe5] [formerly 1adc5d10448179ad7939ed4920171566bf41e3c3 [formerly 1d24bde5587e58ed2dc09dd912aead192951fa33 [formerly dbcb7a42c9b1229bd6fe2d2baed1bc71a3a074ea]]] Former-commit-id: 105818f64f3cd6b9ea90100529e0aba31e062348 [formerly 3a1c24fa27d0bd9d1b70c99bb2d19e61a8146dc9] Former-commit-id: 207d8df999799d9344382d7489bcc982d1fd1894 Former-commit-id: a858ed2630ab2c9d59c9b885946fa7d96cca4bc1 --- install/cowyo.nginx | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 install/cowyo.nginx diff --git a/install/cowyo.nginx b/install/cowyo.nginx new file mode 100644 index 0000000..f00b5cc --- /dev/null +++ b/install/cowyo.nginx @@ -0,0 +1,30 @@ +server { + # SERVER BLOCK FOR cowyo + listen 80; ## listen for ipv4; this line is default and implied + + access_log /etc/nginx/logs/access-cowyo.log; + error_log /etc/nginx/logs/error-cowyo.log info; + root /home/phi/Documents/cowyo; + server_name cowyo.duckdns.org cowyo.duckdns.org; + + location ^~ /static/ { + + try_files $uri index.html; + + } + + location / { + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $http_host; + proxy_set_header X-NginX-Proxy true; + + proxy_pass http://127.0.0.1:12312; + proxy_redirect off; + + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + + } +}