diff --git a/hosts/by-name/servo/services/lemmy.nix b/hosts/by-name/servo/services/lemmy.nix index 1766ded7..22ef4d5a 100644 --- a/hosts/by-name/servo/services/lemmy.nix +++ b/hosts/by-name/servo/services/lemmy.nix @@ -66,7 +66,7 @@ in { # see "/" = { # "frontend general requests" - # proxyPass = "$proxpass"; + proxyPass = "$proxpass"; extraConfig = '' set $proxpass "${ui}"; # if ($http_accept = "application/activity+json") { @@ -80,13 +80,11 @@ in { if ($http_accept ~ "^application/.*$") { set $proxpass "${backend}"; } - # XXX: POST redirection occurs in docker/nginx.conf but not docker/federation/nginx.conf + # XXX: POST redirection occurs in lemmy-ansible and docker/nginx.conf but not docker/federation/nginx.conf if ($request_method = POST) { set $proxpass "${backend}"; } - proxy_pass $proxpass; - # Cuts off the trailing slash on URLs to make them valid rewrite ^(.+)/+$ $1 permanent;