2024-12-19 18:18:50 +01:00
|
|
|
{ ... }:
|
2024-09-26 13:17:35 +02:00
|
|
|
{
|
|
|
|
|
services = {
|
|
|
|
|
nginx.virtualHosts."quack.social" = {
|
|
|
|
|
enableACME = true;
|
|
|
|
|
forceSSL = true;
|
|
|
|
|
locations."/" = {
|
|
|
|
|
proxyPass = "http://localhost:3000";
|
2024-11-10 22:37:36 +01:00
|
|
|
proxyWebsockets = true;
|
2025-03-01 23:16:32 +01:00
|
|
|
extraConfig = ''
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header X-Forwarded-Proto https;
|
2025-03-05 16:42:01 +01:00
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
2025-03-01 23:16:32 +01:00
|
|
|
proxy_set_header X-Forwarded-Host $remote_addr;
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
locations."/wiki/" = {
|
|
|
|
|
# Nepenthis
|
|
|
|
|
proxyPass = "http://localhost:8893";
|
|
|
|
|
extraConfig = ''
|
|
|
|
|
proxy_set_header X-Prefix '/wiki';
|
2025-03-03 13:19:53 +01:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header X-Forwarded-Proto https;
|
2025-03-01 23:16:32 +01:00
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
2025-03-03 13:19:53 +01:00
|
|
|
proxy_set_header X-Forwarded-Host $remote_addr;
|
2025-03-01 23:16:32 +01:00
|
|
|
proxy_buffering off;
|
|
|
|
|
'';
|
2024-09-26 13:17:35 +02:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|