forceSSL for wiki

This commit is contained in:
hackens server 2022-04-13 01:41:22 +02:00
parent 08bcd00451
commit 44f895d58a

View file

@ -9,7 +9,10 @@ in
];
disabledModules = [ "services/web-apps/dokuwiki.nix" ];
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.nginx.virtualHosts."${hostname}".enableACME = true;
services.nginx.virtualHosts."${hostname}" = {
enableACME = true;
forceSSL = true;
};
services.dokuwiki.sites."${hostname}" = {
enable = true;