From 6a12fec97e71094d460e5c8697e942620e44b587 Mon Sep 17 00:00:00 2001 From: liberodark Date: Thu, 21 Mar 2019 13:44:10 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index ce0d015..9ff4768 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,22 +1,7 @@ -#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location __PATH__/ { - # Path to source - alias __FINALPATH__/ ; - - # Force usage of https - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; -} - index index.html; - # Include SSOWAT user panel. - include conf.d/yunohost_panel.conf.inc; -} - -location /pia-back/ { - # Path to source -# alias /opt/pia-back/ ; +# alias __FINALPATH__/ ; proxy_pass http://127.0.0.1:3000/; proxy_redirect off; @@ -30,4 +15,3 @@ location /pia-back/ { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } -