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:
parent
ee2536ac29
commit
c3e7bb1d88
1 changed files with 8 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue