1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gotosocial_ynh.git synced 2024-09-03 19:16:06 +02:00

fix "location" directive is not allowed here

This commit is contained in:
OniriCorpe 2023-02-18 23:11:03 +01:00
parent ee2536ac29
commit c3e7bb1d88

View file

@ -26,12 +26,14 @@ location __PATH__/ {
include conf.d/yunohost_panel.conf.inc;
}
location ^~ /.well-known {
# redirect the account_domain .well-known to the domain one
location = /.well-known/webfinger {
if ($is_account_domain = 1) {
location = /.well-known/webfinger { return 301 __PATH__/.well-known/webfinger; }
location = /.well-known/nodeinfo { return 301 __PATH__/.well-known/nodeinfo; }
return 301 __PATH__/.well-known/webfinger;
}
}
location = /.well-known/nodeinfo {
if ($is_account_domain = 1) {
return 301 __PATH__/.well-known/nodeinfo;
}
try_files $uri $uri/ =404;
}