Skip to content

feat: add conditional proxy_pass to backend service in NGINX configuration#43

Closed
almog8k wants to merge 3 commits into
masterfrom
feat/condiitonal-proxy-pass
Closed

feat: add conditional proxy_pass to backend service in NGINX configuration#43
almog8k wants to merge 3 commits into
masterfrom
feat/condiitonal-proxy-pass

Conversation

@almog8k

@almog8k almog8k commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 16, 2026 06:55
@almog8k almog8k changed the title feat: add conditional proxy_pass to backend service in NGINX configur… feat: add conditional proxy_pass to backend service in NGINX configuration Apr 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a Helm value to conditionally enable/disable proxy_pass to the configured backend service in the rendered NGINX default.conf, allowing the chart to run without proxying to an upstream when desired.

Changes:

  • Add backend.enabled value (default set to false) to control whether proxy_pass is emitted.
  • Wrap the NGINX proxy_pass directive in a Helm if conditional.
  • Minor YAML quoting normalization for image.tag.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
helm/values.yaml Introduces backend.enabled (and adjusts image.tag quoting) to control backend proxying behavior.
helm/values.md Intended to document the new value in the chart’s generated values table.
helm/config/default.conf Conditionally renders proxy_pass based on backend.enabled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread helm/values.yaml

backend:
# -- Enable or disable the proxy_pass to the backend service
enabled: false
Comment thread helm/config/default.conf Outdated
Comment thread helm/values.md
Comment on lines 19 to 22
| authorization.enabled | bool | `true` | Use authroization mechanism |
| authorization.url | string | `"http://localhost:8181/v1/data/http/authz/decision"` | Authorization endpoint |
| backend.enabled | bool | `false` | Enable or disable the proxy_pass to the backend service |
| backend.host | string | `"backend-service"` | Backend service name for proxy_pass |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot apply changes based on this feedback

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in commit 285cc32: helm/values.md now includes backend.enabled, backend.host, and backend.port in the generated Values table, so the new flag is documented for chart users.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

3 participants