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

role nginx_reverse_proxy: refactor into generic nginx role #230

Open
dometto opened this issue Dec 19, 2024 · 1 comment
Open

role nginx_reverse_proxy: refactor into generic nginx role #230

dometto opened this issue Dec 19, 2024 · 1 comment

Comments

@dometto
Copy link
Member

dometto commented Dec 19, 2024

The role is basically usable for configuring nginx location blocks of any kind, not just reverse proxies. However, at present some reverse proxy directives are added out of the box that are not needed and create noise when using the role to create a normal location block.

@dometto
Copy link
Member Author

dometto commented Jan 8, 2025

Currently set_proxy_header and add_headers are special keywords that are mapped into many different set_proxy_header and add_header directives. We could generalize this so that you can pass in arbitrary dicts into the settings, so that a dict named foo would generate a directive foo first_key first_val; for each of its key/value pairs.

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