mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] SSO unavailable
This commit is contained in:
parent
cb3ff1ed83
commit
f92b84bd94
2 changed files with 7 additions and 1 deletions
5
data/templates/nginx/plain/yunohost_sso.conf.inc
Normal file
5
data/templates/nginx/plain/yunohost_sso.conf.inc
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Avoid the nginx path/alias traversal weakness ( #1037 )
|
||||
rewrite ^/yunohost/sso$ /yunohost/sso/ permanent;
|
||||
|
||||
location /yunohost/sso/ {
|
||||
}
|
|
@ -14,7 +14,7 @@ server {
|
|||
|
||||
include /etc/nginx/conf.d/{{ domain }}.d/*.conf;
|
||||
|
||||
location /yunohost/admin {
|
||||
location /yunohost {
|
||||
return 301 https://$http_host$request_uri;
|
||||
}
|
||||
|
||||
|
@ -60,6 +60,7 @@ server {
|
|||
|
||||
include /etc/nginx/conf.d/{{ domain }}.d/*.conf;
|
||||
|
||||
include /etc/nginx/conf.d/yunohost_sso.conf.inc;
|
||||
include /etc/nginx/conf.d/yunohost_admin.conf.inc;
|
||||
include /etc/nginx/conf.d/yunohost_api.conf.inc;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue