Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config file discovery doesn't work with nested folders #133

Open
lucsoft opened this issue Aug 3, 2022 · 3 comments
Open

Config file discovery doesn't work with nested folders #133

lucsoft opened this issue Aug 3, 2022 · 3 comments

Comments

@lucsoft
Copy link

lucsoft commented Aug 3, 2022

i have a nested setup in user_conf.d/

But only top level conf files are getting recognize.

@JonasAlfredsson
Copy link
Owner

JonasAlfredsson commented Aug 3, 2022

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?

@lucsoft
Copy link
Author

lucsoft commented Aug 4, 2022

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

@JonasAlfredsson
Copy link
Owner

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants