retiolum-bootstrap: forceSSL
This commit is contained in:
parent
3c30bf0057
commit
70c41d322c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user