fix nginx + firewall

This commit is contained in:
Jörg Thalheim 2023-10-24 18:59:19 +02:00
parent 9163d9191f
commit d2e73d80ff
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
flake.nixosModules = {
hcloud.imports = [
inputs.srvos.nixosModules.server
inputs.srvos.nixosModules.mixins-nginx
inputs.sops-nix.nixosModules.sops
inputs.srvos.nixosModules.hardware-hetzner-cloud
./single-disk.nix

View File

@ -101,6 +101,7 @@
'';
};
networking.firewall.allowedTCPPorts = [ 443 80 ];
security.acme.acceptTerms = true;
services.nginx.virtualHosts.${config.services.mediawiki.nginx.hostName} = {
enableACME = lib.mkDefault true;