retiolum-bootstrap: forceSSL

This commit is contained in:
makefu 2018-08-29 00:49:00 +02:00
parent 3c30bf0057
commit 70c41d322c
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -31,11 +31,8 @@ in
enable = mkDefault true; enable = mkDefault true;
virtualHosts.retiolum-bootstrap = { virtualHosts.retiolum-bootstrap = {
inherit (cfg) serverName sslCertificate sslCertificateKey; inherit (cfg) serverName sslCertificate sslCertificateKey;
enableSSL = true; forceSSL = true;
extraConfig ='' extraConfig =''
if ($scheme = http){
return 301 https://$server_name$request_uri;
}
root ${pkgs.retiolum-bootstrap}; root ${pkgs.retiolum-bootstrap};
try_files $uri $uri/retiolum.sh; try_files $uri $uri/retiolum.sh;