Force SSL for main website instead of optional SSL

https://nixos.wiki/wiki/Nginx
Signed-off-by: Egor Savkin <es@m-labs.hk>
force-ssl-main-website
Egor Savkin 2024-01-25 15:51:33 +08:00
parent 22583c7f8e
commit 10da6a0cbb
1 changed files with 1 additions and 1 deletions

View File

@ -781,7 +781,7 @@ in
recommendedTlsSettings = true;
virtualHosts = let
mainWebsite = {
addSSL = true;
forceSSL = true;
enableACME = true;
root = "${hydraWwwOutputs}/web";
extraConfig = ''