-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add BP_WEB_SERVER_LOCATION_INCLUDES to Enable Custom Location Directives #668
Comments
@paketo-buildpacks/web-servers-maintainers |
I'd be open to a configuration that allows an |
I've also been wishing for something like this for a while. I'm not a Go developer but I'm motivated enough that I'm open to working with the tests to submit a PR. However I think it would be a good idea to discuss an approach first, @arjun024. (And in the event a discussion here prioritizes this for the Paketo team to work on it, I'd be happy to not learn Go just to contribute a PR here. 😄) My typical use case for this nginx buildpack is containerizing a client side React application. The I don't love this process because now I have to care about the whole nginx.conf file when I wish I could just rely on paketo's smart defaults and if the project updated the default config I wouldn't automatically benefit. I'd like to get back to a more proper "buildpack experience" with regards to the nginx.conf concerns. So perhaps this idea for including custom location directives could be the solution? I have a few questions and would like to hear your opinion:
|
Describe the Enhancement
Add a new optional environment variable,
BP_WEB_SERVER_LOCATION_INCLUDES
(or similar) to allow users to provide location-scoped NGINX directives while taking advantage of the generatednginx.conf
file.Motivation
Users migrating from buildpacks like Cloud Foundry's Staticfile buildpack commonly only customize server root, push state, and location directives. Currently, users can use this buildpack with a generated nginx.conf using
BP_WEB_SERVER_ENABLE_PUSH_STATE
andBP_WEB_SERVER_ROOT
for the first two features, but must maintain their own nginx.conf if they need any custom location directives. This proposed feature will remove the need for these users to eject from the generated nginx.conf.The text was updated successfully, but these errors were encountered: