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

enhance is_account_domain mechanism

This commit is contained in:
OniriCorpe 2023-02-18 23:40:45 +01:00
parent 9ee22774f2
commit 94e4ee1221

View file

@ -4,8 +4,7 @@ if ($host = __ACCOUNT_DOMAIN__) {
set $is_account_domain 1; set $is_account_domain 1;
} }
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location / {
location __PATH__/ {
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
@ -18,7 +17,9 @@ location __PATH__/ {
rewrite ^ https://__PATH__$request_uri? permanent; rewrite ^ https://__PATH__$request_uri? permanent;
} }
proxy_pass http://localhost:__PORT__; if ($is_account_domain = 0) {
proxy_pass http://localhost:__PORT__;
}
client_max_body_size __CLIENT_MAX_BODY_SIZE__; client_max_body_size __CLIENT_MAX_BODY_SIZE__;