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

Provide a way to add custom headers to the default nginx.conf #732

Open
Waterstraal opened this issue Apr 18, 2024 · 1 comment
Open

Provide a way to add custom headers to the default nginx.conf #732

Waterstraal opened this issue Apr 18, 2024 · 1 comment

Comments

@Waterstraal
Copy link

Waterstraal commented Apr 18, 2024

I want to use the default nginx configuration, but add some custom CSP headers. The only way I can now do it is by adding my own nginx.conf as far as I know. However, I don't want to maintain my own nginx.conf file. I want to use the default one provided by this buildpack, and extend it with some headers.

Possible Solution

A possible way is to introduce BP_NGINX_HEADERS which you can pass in, or configure in a project.toml.

@Waterstraal
Copy link
Author

Related: #668 (similar feature request, but scoped to custom location directives)

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

1 participant