mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +01:00
feat: adds headers so quack might work better; adds nepenthis
This commit is contained in:
parent
9f7542a5ab
commit
840a4679bb
1 changed files with 16 additions and 0 deletions
|
|
@ -7,6 +7,22 @@
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:3000";
|
proxyPass = "http://localhost:3000";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-Host $remote_addr;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
locations."/wiki/" = {
|
||||||
|
# Nepenthis
|
||||||
|
proxyPass = "http://localhost:8893";
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header X-Prefix '/wiki';
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
proxy_buffering off;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue