diff --git a/machines/Ophanim/options.nix b/machines/Ophanim/options.nix index 5119ccc..d3439f0 100644 --- a/machines/Ophanim/options.nix +++ b/machines/Ophanim/options.nix @@ -30,6 +30,7 @@ with lib; "nextcloud" "nginx" "openssh" + "webblog" ]; firewall = { allowPing = false; diff --git a/services/nginx.nix b/services/nginx.nix index 8b0393e..e020530 100644 --- a/services/nginx.nix +++ b/services/nginx.nix @@ -166,6 +166,12 @@ mkIf (elem "nginx" config.machine.services) { ''; }; + "blog.${config.machine.domain}" = mkIf (elem "webblog" config.machine.services) { + enableACME = true; + forceSSL = true; + root = "/var/lib/webblog/"; + }; + "git.${config.machine.domain}" = mkIf config.services.gitea.enable { enableACME = true; forceSSL = true;