Skip to content

Commit

Permalink
Return 502 error on empty upstream set (#62)
Browse files Browse the repository at this point in the history
Co-authored-by: Leonid Makarov <leonid.makarov@ffwagency.com>
  • Loading branch information
sergey-zabolotny and lmakarov authored Feb 10, 2020
1 parent bb31ba3 commit d17214b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conf/nginx/conf.d/vhosts.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
{{ end }}
{{ end }}
{{ end }}
# Default disabled upstream. This prevents config errors when there are no upstreams.
server localhost:80 down;
}

{{/* Get the cert name from io.docksal.cert-name container label */}}
Expand Down

0 comments on commit d17214b

Please sign in to comment.