Unverified Commit 6a12fec9 by liberodark Committed by GitHub

Update nginx.conf

parent 7d437d97
#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";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment