diff options
author | Soispha <soispha@vhack.eu> | 2023-11-03 19:55:55 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-11-03 19:55:55 +0100 |
commit | 366587ac5b085f2fcd971a546ef2fbda1f76fd96 (patch) | |
tree | e80b77938b5d7facf42caaf4ed1c8cbd1675e841 | |
parent | chore(version): v0.17.0 (diff) | |
download | nixos-server-366587ac5b085f2fcd971a546ef2fbda1f76fd96.tar.gz nixos-server-366587ac5b085f2fcd971a546ef2fbda1f76fd96.zip |
fix(system/services/nginx/redirects): Enable ssl for the domains
Although the page does not actually serve any content, many browsers will still refuse to access it at all, if they have the 'https-only' mode activated.
-rw-r--r-- | system/services/nginx/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/services/nginx/default.nix b/system/services/nginx/default.nix index cc633ed..3a0496d 100644 --- a/system/services/nginx/default.nix +++ b/system/services/nginx/default.nix @@ -7,8 +7,8 @@ }: { name = key; value = { - forceSSL = false; - enableACME = false; + forceSSL = true; + enableACME = true; locations."/".return = "301 ${value}"; }; }; |