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

Support BYPASS_VARNISH flag to route requests directly to Nginx #63

Closed
davidalger opened this issue Jan 6, 2020 · 0 comments
Closed
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@davidalger
Copy link
Collaborator

The magento2 environment type (the only one making use of Varnish currently) sends requests to varnish which passes them on to Nginx. There are use-cases where it is desired to send requests directly to Nginx (such as when the Redis backend is used for full page cache) or simply when needing to eliminate Varnish from the mix when debugging tricky issues.

In order to simplify this such that users will no longer be required to setup custom labeling on containers used by the project, a BYPASS_VARNISH flag should be set such that when BYPASS_VARNISH=true or BYPASS_VARNISH=1 is found in the project's .env file Traefik routes to the Varnish container in an environment will be disabled allowing requests to pass to directly to Nginx.

@davidalger davidalger added the enhancement New feature or request label Jan 6, 2020
@davidalger davidalger added this to the Warden 0.2.0 milestone Jan 6, 2020
@davidalger davidalger self-assigned this Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant