mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-12-04 10:08:20 +01:00
1f678ed2c2
Don't need to use a regexp because the vhost.d/default configuration must be include specificaly in each server configurations by the nginx.tmpl template file. Something like: {{ if (exists (printf "/etc/nginx/vhost.d/%s" $host)) }} include {{ printf "/etc/nginx/vhost.d/%s" $host }}; {{ else if (exists "/etc/nginx/vhost.d/default") }} include /etc/nginx/vhost.d/default; {{ end }}
7 lines
125 B
Plaintext
7 lines
125 B
Plaintext
location /.well-known/acme-challenge/ {
|
|
allow all;
|
|
root /usr/share/nginx/html;
|
|
try_files $uri =404;
|
|
break;
|
|
}
|