lemmy: fix nginx config generation

This commit is contained in:
K900 2024-01-28 19:15:02 +03:00
parent 9dc41f014e
commit c34a1d5135

View file

@ -204,7 +204,6 @@ in
};
"/" = {
# mixed frontend and backend requests, based on the request headers
proxyPass = "$proxpass";
recommendedProxySettings = true;
extraConfig = ''
set $proxpass "${ui}";
@ -220,6 +219,8 @@ in
# Cuts off the trailing slash on URLs to make them valid
rewrite ^(.+)/+$ $1 permanent;
proxy_pass $proxpass;
'';
};
};