-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Allow including custom nginx conf files #178
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
Conversation
Give advanced users more flexibility by allowing them to include custom config files at differents locations in the nginx configuration. `/data/nginx/custom/root.conf`: Included at the very end of nginx.conf `/data/nginx/custom/http.conf`: Included at the end of the main `http` block `/data/nginx/custom/server_proxy.conf`: Included at the end of every proxy `server` block `/data/nginx/custom/server_redirect.conf`: Included at the end of every redirection `server` block `/data/nginx/custom/server_stream.conf`: Included at the end of every stream `server` block `/data/nginx/custom/server_stream_tcp.conf`: Included at the end of every TCP stream `server` block `/data/nginx/custom/server_stream_udp.conf`: Included at the end of every UDP stream `server` block
Docker Image for build 1 is available on DockerHub as |
Docker Image for build 2 is available on DockerHub as |
Is there any interest in this @jc21? Seems like a sensible thing to add for power users? TIA! |
Yeah it wouldn't hurt. Might need some documentation, could you make a new markdown file in |
I added some docs. LMK if this is what you had in mind or not. |
Awesome. Pull the CI docker image here and give it a real world test. If you're happy with it I'll merge. |
Docker Image for build 3 is available on DockerHub as |
Works for me... and doesn't cause issues if custom snippet files are not present. |
If you want to do more patches in future, can you please push them to the |
Give advanced users more flexibility by allowing them to include custom config files at differents locations in the nginx configuration.
/data/nginx/custom/root.conf
: Included at the very end of nginx.conf/data/nginx/custom/http.conf
: Included at the end of the mainhttp
block/data/nginx/custom/server_proxy.conf
: Included at the end of every proxyserver
block/data/nginx/custom/server_redirect.conf
: Included at the end of every redirectionserver
block/data/nginx/custom/server_stream.conf
: Included at the end of every streamserver
block/data/nginx/custom/server_stream_tcp.conf
: Included at the end of every TCP streamserver
block/data/nginx/custom/server_stream_udp.conf
: Included at the end of every UDP streamserver
block