Added webblog option to nginx blog vhost.

This commit is contained in:
Kevin Baensch 2019-04-11 23:45:09 +02:00
parent 0b3b1ba4af
commit bd87853b1f
2 changed files with 7 additions and 0 deletions

View file

@ -30,6 +30,7 @@ with lib;
"nextcloud"
"nginx"
"openssh"
"webblog"
];
firewall = {
allowPing = false;

View file

@ -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;