nixos/nginx: serve the status page on localhost servers
The status page is inaccessible by default, unless a virtual host is added with a `server_name` that's not `localhost`. This commit moves the status page configuration, so that it's matched before the main server blocks.
This commit is contained in:
@@ -256,8 +256,6 @@ let
|
|||||||
|
|
||||||
${proxyCachePathConfig}
|
${proxyCachePathConfig}
|
||||||
|
|
||||||
${vhosts}
|
|
||||||
|
|
||||||
${optionalString cfg.statusPage ''
|
${optionalString cfg.statusPage ''
|
||||||
server {
|
server {
|
||||||
listen ${toString cfg.defaultHTTPListenPort};
|
listen ${toString cfg.defaultHTTPListenPort};
|
||||||
@@ -275,6 +273,8 @@ let
|
|||||||
}
|
}
|
||||||
''}
|
''}
|
||||||
|
|
||||||
|
${vhosts}
|
||||||
|
|
||||||
${cfg.appendHttpConfig}
|
${cfg.appendHttpConfig}
|
||||||
}''}
|
}''}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user