mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 17:28:59 +08:00
nginx: fix streamProxy rewriteHttps
This commit is contained in:
parent
286967f7fe
commit
4463cab071
@ -318,7 +318,7 @@ inputs:
|
||||
{
|
||||
serverName = site.name;
|
||||
listen = [ { addr = "0.0.0.0"; port = 80; } ];
|
||||
locations."/".return = "301 http://${site.name}$request_uri";
|
||||
locations."/".return = "301 https://${site.name}$request_uri";
|
||||
};
|
||||
})
|
||||
(filter (site: site.value.rewriteHttps or false) (attrsToList nginx.streamProxy.map)));
|
||||
|
Loading…
Reference in New Issue
Block a user