-
Notifications
You must be signed in to change notification settings - Fork 828
Closed
Description
Hi,
I was looking for my vhost.d file and observe the /.well-known/acme-challenge/
part write on top of my config part.
I think the code making that is here :
acme-companion/app/functions.sh
Lines 126 to 136 in 013005a
else | |
# Else write the location configuration to a temp file ... | |
echo "$START_HEADER" > "${VHOST_DIR}/${domain}".new | |
cat /app/nginx_location.conf >> "${VHOST_DIR}/${domain}".new | |
echo "$END_HEADER" >> "${VHOST_DIR}/${domain}".new | |
# ... append the existing file content to the temp one ... | |
[[ -f "${VHOST_DIR}/${domain}" ]] && cat "${VHOST_DIR}/${domain}" >> "${VHOST_DIR}/${domain}".new | |
# ... and copy the temp file to the old one (if the destination file is bind mounted, you can't change | |
# its inode from within the container, so mv won't work and cp has to be used), then remove the temp file. | |
cp -f "${VHOST_DIR}/${domain}".new "${VHOST_DIR}/${domain}" && rm -f "${VHOST_DIR}/${domain}".new | |
return 1 |
But the nginx-proxy already generate this config : https://github.com/nginx-proxy/nginx-proxy/blob/main/nginx.tmpl#L605-L611
So I think this configuration is on double (you can see it with a nginx -T
).
Do have I make the good observation or did I miss something ?
Best regards,
Azlux
Metadata
Metadata
Assignees
Labels
No labels