Merge pull request #284562 from K900/lemmy-nginx-fix

lemmy: fix nginx config generation
This commit is contained in:
K900
2024-01-28 20:48:51 +03:00
committed by GitHub
+2 -1
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;
'';
};
};