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

24 lines
506 B
Nix
Raw Normal View History

{ ... }:
{
services.nginx.virtualHosts."anisync.grzb.de" = {
forceSSL = true;
enableACME = true;
listen = [{
addr = "localhost";
port = 8443;
ssl = true;
extraParameters = ["proxy_protocol"];
}];
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;
'';
};
}