mirror of
https://github.com/YunoHost-Apps/converse_ynh.git
synced 2024-09-03 18:25:53 +02:00
Update nginx.conf
This commit is contained in:
parent
1b94a55f30
commit
f64ad64168
1 changed files with 5 additions and 5 deletions
|
@ -7,14 +7,10 @@ location __PATH__/ {
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
# Force usage of https
|
# Force usage of https
|
||||||
f ($scheme = http) {
|
if ($scheme = http) {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Include SSOWAT user panel.
|
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
|
||||||
}
|
|
||||||
|
|
||||||
location = __PATH__/http-bind {
|
location = __PATH__/http-bind {
|
||||||
proxy_pass http://localhost:5290/http-bind;
|
proxy_pass http://localhost:5290/http-bind;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
|
@ -27,3 +23,7 @@ location __PATH__/ {
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection “upgrade”;
|
proxy_set_header Connection “upgrade”;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Include SSOWAT user panel.
|
||||||
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue