aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index 0f362dc..7e2a0b5 100644
--- a/default.nix
+++ b/default.nix
@@ -65,7 +65,7 @@ with lib;
virtualHosts.${cfg.frontend.domain} = cfg.frontend.config // {
root =
# need to do it this (long) way since a user may change this value outside of this module
- let ssl = config.services.nginx.virtualHosts.${cfg.frontend.domain}.enableSSL;
+ let ssl = with config.services.nginx.virtualHosts.${cfg.frontend.domain}; enableSSL || forceSSL || enableACME;
in (cfg.frontend.package.override ({
baseurl = (if ssl then "https://" else "http://") + cfg.frontend.domain;
} // (if cfg.frontend.proxyBackend then {