1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2024-11-22 03:46:29 +00:00

Merge pull request #12 from thomasleveil/patch-2

define a default virtual host
This commit is contained in:
Jason Wilder 2014-06-03 16:01:43 -06:00
commit d178ef8dcd

View File

@ -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 }} {