about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2024-01-28 20:48:51 +0300
committerGitHub <noreply@github.com>2024-01-28 20:48:51 +0300
commit499b9a5de003e94bedb331a1e584d95d68a94ed7 (patch)
treee310700fd054682290f4357bc08f4c09ad029bf7 /nixos
parent45b1d68c35f303ea13eefbd2d386ba8c647fa2f9 (diff)
parentc34a1d5135e95f0933d9d2f2ea405fee2335027e (diff)
Merge pull request #284562 from K900/lemmy-nginx-fix
lemmy: fix nginx config generation
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-apps/lemmy.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/web-apps/lemmy.nix b/nixos/modules/services/web-apps/lemmy.nix
index bde9051a70330..968dcac93fab0 100644
--- a/nixos/modules/services/web-apps/lemmy.nix
+++ b/nixos/modules/services/web-apps/lemmy.nix
@@ -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;
             '';
           };
         };