Camelot: GTS quickfix

This commit is contained in:
Victor Mignot 2024-07-06 14:15:07 +02:00
parent d2033c81a0
commit cb714ec767
Signed by: dala
GPG key ID: 5E7F2CE1BEAFED3D

View file

@ -10,10 +10,10 @@ in
{ {
services.gotosocial = { services.gotosocial = {
enable = true; enable = true;
openFirewall = true; openFirewall = false;
setupPostgresqlDB = true; setupPostgresqlDB = true;
settings = { settings = {
applications-name = "Dala's personnal instance"; application-name = "Dala's personnal instance";
host = "gts.dalaran.fr"; host = "gts.dalaran.fr";
account-domain = "dalaran.fr"; account-domain = "dalaran.fr";
bind-address = "localhost"; bind-address = "localhost";
@ -36,14 +36,6 @@ in
recommendedProxySettings = true; recommendedProxySettings = true;
proxyWebsockets = true; proxyWebsockets = true;
proxyPass = "http://${gtsConfig.bind-address}:${builtins.toString gtsConfig.port}"; proxyPass = "http://${gtsConfig.bind-address}:${builtins.toString gtsConfig.port}";
extraConfig = ''
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;
'';
}; };
}; };
}; };