nix-infra/config/hosts/web-public-2/virtualHosts/anisync.grzb.de.nix

30 lines
612 B
Nix
Raw Normal View History

{ ... }:
{
services.nginx.virtualHosts."anisync.grzb.de" = {
forceSSL = true;
enableACME = true;
listen = [
{
addr = "localhost";
port = 1234;
} # workaround for enableACME check
{
addr = "localhost";
port = 8443;
ssl = true;
proxyProtocol = true;
}
];
locations."/" = {
proxyPass = "http://anisync.vs.grzb.de:8080";
proxyWebsockets = true;
};
extraConfig = ''
add_header X-Content-Type-Options nosniff;
2023-09-28 04:57:17 +02:00
set_real_ip_from 127.0.0.1;
real_ip_header proxy_protocol;
'';
};
}