mirror of
https://github.com/nginx-proxy/nginx-proxy
synced 2024-11-18 22:53:53 +01:00
Merge pull request #225 from funkygibbing/default-ssl
Fix for #188 - remove hostname from default SSL block
This commit is contained in:
commit
9e55f5382f
11
nginx.tmpl
11
nginx.tmpl
@ -54,6 +54,17 @@ server {
|
|||||||
return 503;
|
return 503;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{{ if (and (exists "/etc/nginx/certs/default.crt") (exists "/etc/nginx/certs/default.key")) }}
|
||||||
|
server {
|
||||||
|
server_name _; # This is just an invalid value which will never trigger on a real hostname.
|
||||||
|
listen 443 ssl spdy;
|
||||||
|
return 503;
|
||||||
|
|
||||||
|
ssl_certificate /etc/nginx/certs/default.crt;
|
||||||
|
ssl_certificate_key /etc/nginx/certs/default.key;
|
||||||
|
}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ range $host, $containers := groupByMulti $ "Env.VIRTUAL_HOST" "," }}
|
{{ range $host, $containers := groupByMulti $ "Env.VIRTUAL_HOST" "," }}
|
||||||
|
|
||||||
upstream {{ $host }} {
|
upstream {{ $host }} {
|
||||||
|
Loading…
Reference in New Issue
Block a user