27 lines
501 B
Nix
27 lines
501 B
Nix
|
{ ... }:
|
||
|
{
|
||
|
services.nginx.virtualHosts."anisync.grzb.de" = {
|
||
|
forceSSL = true;
|
||
|
enableACME = true;
|
||
|
listen = [
|
||
|
{
|
||
|
addr = "0.0.0.0";
|
||
|
port = 80;
|
||
|
}
|
||
|
{
|
||
|
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;
|
||
|
'';
|
||
|
};
|
||
|
}
|