mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-11-23 09:12:15 +01:00
Merge pull request #711 from remogloor/standalone-config
Search in all config files for standalone config
This commit is contained in:
commit
a549a129de
@ -104,7 +104,7 @@ function add_location_configuration {
|
||||
|
||||
function add_standalone_configuration {
|
||||
local domain="${1:?}"
|
||||
if grep -q "server_name ${domain};" "/etc/nginx/conf.d/default.conf"; then
|
||||
if grep -q "server_name ${domain};" /etc/nginx/conf.d/*.conf; then
|
||||
# If the domain is already present in nginx's conf, use the location configuration.
|
||||
add_location_configuration "$domain"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user