Compare commits

..

No commits in common. "8ad8b1f633f6c3875032a0ead0e87255dff4ab3c" and "15cbf5d4ffe307c9b7bd84dfc162c28f8d300aaf" have entirely different histories.

View file

@ -12,6 +12,7 @@ let
inherit (lib.utils) inherit (lib.utils)
mkReverseProxyOption mkReverseProxyOption
mkVirtualHost
; ;
in in
{ {
@ -31,9 +32,8 @@ in
systemd.tmpfiles.rules = [ "d ${cfg.dataDir} 0755 ${cfg.user} ${cfg.group} -" ]; systemd.tmpfiles.rules = [ "d ${cfg.dataDir} 0755 ${cfg.user} ${cfg.group} -" ];
services.nginx.virtualHosts = mkIf cfg.reverseProxy.enable { services.nginx.virtualHosts = mkIf cfg.reverseProxy.enable {
"${fqdn}" = { "${cfg.virtualHost}" = mkVirtualHost {
enableACME = cfg.reverseProxy.forceSSL; ssl = cfg.reverseProxy.forceSSL;
forceSSL = cfg.reverseProxy.forceSSL;
}; };
}; };
}; };