docker-nginx-certbot icon indicating copy to clipboard operation
docker-nginx-certbot copied to clipboard

Config file discovery doesn't work with nested folders

Open lucsoft opened this issue 3 years ago • 8 comments

i have a nested setup in user_conf.d/

But only top level conf files are getting recognize.

lucsoft avatar Aug 03 '22 09:08 lucsoft

That is true, the loops looks like this:

for conf_file in /etc/nginx/conf.d/*.conf*; do
done

and

while   ; do
done < <(find /etc/nginx/user_conf.d/ -maxdepth 1 -type f -print0)

So it will only do one level. I have not heard of anyone doing multiple layers until now, so if possible could you please explain your usecase a bit more so I can get a better understanding of the feature request?

JonasAlfredsson avatar Aug 03 '22 20:08 JonasAlfredsson

my setup looks something like this

user_conf.d/
      group_a/
            a.conf
            b.conf
            c.conf
      group_b/
            a.conf
            b.conf
            c.conf
      group_c/
            a.conf
            b.conf
            c.conf

Its more for organization not any technical reason or something

lucsoft avatar Aug 04 '22 06:08 lucsoft

Alright, I am a little bit busy with another project right now so if you feel adventurous I do accept pull requests, otherwise I will take a look at this when I am done with the other stuff :)

JonasAlfredsson avatar Aug 04 '22 07:08 JonasAlfredsson