services: hydra: fix reverse proxy and firewall

This commit is contained in:
Kabbone 2024-05-31 19:46:43 +02:00
parent 40fdd49224
commit e8f6f4e96f
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
2 changed files with 3 additions and 5 deletions

View File

@ -97,7 +97,7 @@
firewall = {
enable = true;
allowedUDPPorts = [ ];
allowedTCPPorts = [ ];
allowedTCPPorts = [ 80 443 ];
};
};

View File

@ -20,9 +20,7 @@
"${config.services.hydra.hydraURL}" = {
enableACME = true;
forceSSL = true;
listen = [ {
addr = "127.0.0.1"; port = 3000;
} ];
locations."/".proxyPass = "http://localhost:3000";
};
};
};
@ -30,7 +28,7 @@
security.acme = {
defaults.email = "webmaster@kabtop.de";
defaults.server = "https://acme-staging-v02.api.letsencrypt.org/directory";
#defaults.server = "https://acme-staging-v02.api.letsencrypt.org/directory";
acceptTerms = true;
certs.${config.services.hydra.hydraURL} = {
dnsProvider = "netcup";