nix-infra/config/hosts/jellyseerr/nginx.nix
2024-01-14 00:22:58 +01:00

27 lines
478 B
Nix

{ config, ... }:
{
services.nginx = {
enable = true;
virtualHosts."jellyseerr.grzb.de" = {
forceSSL = true;
enableACME = true;
listen = [
{
addr = "0.0.0.0";
port = 80;
}
{
addr = "0.0.0.0";
port = 443;
ssl = true;
}
];
locations."/" = {
proxyPass = "http://localhost:${builtins.toString config.services.jellyseerr.port}";
};
};
};
}