retiolum-bootstrap: forceSSL
This commit is contained in:
parent
3c30bf0057
commit
70c41d322c
@ -31,11 +31,8 @@ in
|
||||
enable = mkDefault true;
|
||||
virtualHosts.retiolum-bootstrap = {
|
||||
inherit (cfg) serverName sslCertificate sslCertificateKey;
|
||||
enableSSL = true;
|
||||
forceSSL = true;
|
||||
extraConfig =''
|
||||
if ($scheme = http){
|
||||
return 301 https://$server_name$request_uri;
|
||||
}
|
||||
|
||||
root ${pkgs.retiolum-bootstrap};
|
||||
try_files $uri $uri/retiolum.sh;
|
||||
|
Loading…
Reference in New Issue
Block a user