1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Allow websites to be reached through firewall

This commit is contained in:
Stefan Ellmauthaler 2022-07-31 15:31:40 +02:00
parent f3da627c05
commit e969459d1d
Signed by: ellmau
GPG Key ID: C804A9C1B7AF8256

View File

@ -6,6 +6,7 @@ with lib;{
in
mkIf cfg.enable {
services.nginx.enable = true;
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.nginx.virtualHosts."localhost" = {
addSSL = false;
enableACME = false;