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

Additional config for main nginx.conf (main.d/*.conf) #171

Closed
pauldaustin opened this issue Feb 2, 2021 · 2 comments
Closed

Additional config for main nginx.conf (main.d/*.conf) #171

pauldaustin opened this issue Feb 2, 2021 · 2 comments

Comments

@pauldaustin
Copy link

Would it be possible to add configurable config to go in the main section of the file (in addition to those in the http section).

For example include the following.

include /etc/nginx/main.d/*.conf;

This would then allow adding things like env directives which can only occur at the top level

@neomantra
Copy link
Member

Sorry I missed this. I think it makes sense and will address it this month

@neomantra
Copy link
Member

See also #259. Somehow a month turned into years. =(

This was resolved in 1.25.3.2-2 and newer (changelog) to use include /etc/nginx/conf.d/*.main. I opted to keep it in the same folder to reduce the need for multiple bind-points to nginx configuration.

Thanks again for your report and sorry for my poor stewardship here.

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