Merge pull request #12 from thomasleveil/patch-2
define a default virtual host
This commit is contained in:
commit
d178ef8dcd
1 changed files with 5 additions and 0 deletions
|
@ -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" }}
|
{{ range $host, $containers := groupBy $ "Env.VIRTUAL_HOST" }}
|
||||||
upstream {{ $host }} {
|
upstream {{ $host }} {
|
||||||
|
|
||||||
|
|
Reference in a new issue