Camelot: GTS quickfix
This commit is contained in:
parent
d2033c81a0
commit
cb714ec767
|
@ -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;
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue