1
0
Fork 0

mastodon: adjust proxy config

This commit is contained in:
Daniel Kempkens 2022-11-29 16:52:49 +01:00
parent 60a78cf8c6
commit 2deebeaac4
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -3,13 +3,13 @@
let
web-domain = "mastodon.kempkens.io";
nginx-extra-proxy-settings = [
"proxy_set_header Host $host;"
"proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;"
"proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;"
"proxy_set_header X-Forwarded-Host $host;"
"proxy_set_header X-Forwarded-Server $host;"
];
nginx-extra-proxy-settings = ''
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
'';
in
{
services.mastodon = {