h: use recommended config for gts
This commit is contained in:
parent
ee06e3f810
commit
1280b40858
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user