From dab2e3571a3afc33795fa54fef57f10243522f90 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Sat, 8 Apr 2017 04:04:27 +0200 Subject: Initial commit --- conf/nginx.conf | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 conf/nginx.conf (limited to 'conf/nginx.conf') diff --git a/conf/nginx.conf b/conf/nginx.conf new file mode 100644 index 0000000..19650dd --- /dev/null +++ b/conf/nginx.conf @@ -0,0 +1,35 @@ + location __PATH__ { + try_files $uri @proxy; + } + + location @proxy { + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto https; + proxy_pass_header Server; + proxy_pass http://127.0.0.1:3000; + proxy_buffering off; + proxy_redirect off; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + tcp_nodelay on; + } + + location __PATH__/api/v1/streaming { + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto https; + proxy_pass http://127.0.0.1:4000; + proxy_buffering off; + proxy_redirect off; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + tcp_nodelay on; + } + + error_page 500 501 502 503 504 /500.html; +} \ No newline at end of file -- cgit v1.2.3-70-g09d2