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" "nextcloud"
"nginx" "nginx"
"openssh" "openssh"
"webblog"
]; ];
firewall = { firewall = {
allowPing = false; 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 { "git.${config.machine.domain}" = mkIf config.services.gitea.enable {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;