h: use recommended config for gts

This commit is contained in:
Aaron Bieber 2022-09-13 14:00:56 -06:00
parent ee06e3f810
commit 1280b40858
No known key found for this signature in database

View File

@ -386,11 +386,15 @@ in {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://127.0.0.1:${
toString config.services.gotosocial.configuration.port
}";
};
extraConfig = ''
proxy_pass http://127.0.0.1:${toString config.services.gotosocial.configuration.port};
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
'';
};
};
"akb.io" = {
forceSSL = true;