Unverified Commit 499b9a5d authored by K900's avatar K900 Committed by GitHub
Browse files

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

lemmy: fix nginx config generation
parents 45b1d68c c34a1d51
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
            '';
          };
        };