2022-12-02 08:05:42 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
virtualHosts."social.krebsco.de" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
2023-12-12 13:13:22 +00:00
|
|
|
acmeFallbackHost = "hotdog.r";
|
2022-12-02 08:05:42 +00:00
|
|
|
locations."/" = {
|
|
|
|
# TODO use this in 22.11
|
|
|
|
# recommendedProxySettings = true;
|
|
|
|
proxyPass = "http://hotdog.r";
|
|
|
|
proxyWebsockets = true;
|
|
|
|
extraConfig = ''
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Server $host;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|