tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nginx module: redirect to same protocol
Robin Gloster
9 years ago
ff12ee35
e18f8e8b
+1
-1
1 changed file
expand all
collapse all
unified
split
nixos
modules
services
web-servers
nginx
default.nix
+1
-1
nixos/modules/services/web-servers/nginx/default.nix
···
111
111
${acmeLocation}
112
112
${optionalString (vhost.root != null) "root ${vhost.root};"}
113
113
${optionalString (vhost.globalRedirect != null) ''
114
114
-
return 301 https://${vhost.globalRedirect}$request_uri;
114
114
+
return 301 http${optionalString ssl "s"}://${vhost.globalRedirect}$request_uri;
115
115
''}
116
116
${optionalString ssl ''
117
117
ssl_certificate ${vhost.sslCertificate};