mirror of
https://github.com/wassname/nginx-proxy-letsencrypt.git
synced 2026-10-28 13:10:34 +08:00
define a default virtual host
which replies with HTTP code `503 Service Temporarily Unavailable`
This commit is contained in:
1 parent
a794d6db46
commit
2d8d15d606
1 file changed
+5
@@ -1,3 +1,8 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
server_name _; # This is just an invalid value which will never trigger on a real hostname.
|
||||
return 503;
|
||||
}
|
||||
{{ range $host, $containers := groupBy $ "Env.VIRTUAL_HOST" }}
|
||||
upstream {{ $host }} {
|
||||
|
||||
|
||||
Reference in new issue
Block a user