aboutsummaryrefslogtreecommitdiff
path: root/conf/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf/nginx.conf')
-rw-r--r--conf/nginx.conf71
1 files changed, 35 insertions, 36 deletions
diff --git a/conf/nginx.conf b/conf/nginx.conf
index d05cdcb..780c462 100644
--- a/conf/nginx.conf
+++ b/conf/nginx.conf
@@ -1,42 +1,41 @@
- location __PATH__ {
- alias __FINALPATH__/live/public;
+location __PATH__ {
+ # alias __FINALPATH__/live/public;
- if ($scheme = http) {
- rewrite ^ https://$server_name$request_uri? permanent;
- }
+ if ($scheme = http) {
+ rewrite ^ https://$server_name$request_uri? permanent;
+ }
+ try_files $uri @proxy;
- try_files $uri @proxy;
+ #--PRIVATE--# Include SSOWAT user panel.
+ #--PRIVATE--include conf.d/yunohost_panel.conf.inc;
+}
- # Include SSOWAT user panel.
- include conf.d/yunohost_panel.conf.inc;
- }
+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 "upgrade";
+ tcp_nodelay on;
+}
- 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 "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 "upgrade";
- tcp_nodelay on;
+location /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 "upgrade";
+ tcp_nodelay on;
} \ No newline at end of file