From bd87853b1f27c680f5d785b7affdd9875dc35ca6 Mon Sep 17 00:00:00 2001 From: derped Date: Thu, 11 Apr 2019 23:45:09 +0200 Subject: [PATCH] Added webblog option to nginx blog vhost. --- machines/Ophanim/options.nix | 1 + services/nginx.nix | 6 ++++++ 2 files changed, 7 insertions(+) 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;