mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
nginx module: redirect to same protocol
This commit is contained in:
parent
e18f8e8b66
commit
ff12ee35b7
|
@ -111,7 +111,7 @@ let
|
|||
${acmeLocation}
|
||||
${optionalString (vhost.root != null) "root ${vhost.root};"}
|
||||
${optionalString (vhost.globalRedirect != null) ''
|
||||
return 301 https://${vhost.globalRedirect}$request_uri;
|
||||
return 301 http${optionalString ssl "s"}://${vhost.globalRedirect}$request_uri;
|
||||
''}
|
||||
${optionalString ssl ''
|
||||
ssl_certificate ${vhost.sslCertificate};
|
||||
|
|
Loading…
Reference in a new issue