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

Add always-forward config to proxy server #413

Merged
merged 1 commit into from
Oct 20, 2023
Merged

Conversation

benbjohnson
Copy link
Collaborator

@benbjohnson benbjohnson commented Oct 19, 2023

This pull request adds a proxy config setting to specify regex-matching paths to always forward to the primary (even when using GET & HEAD methods). This was proposed on this Fly.io Community forum post.

Usage

proxy:
  always-forward:
    - "^/my/path$"
    - "^/my/other/path$"

@sbbu
Copy link

sbbu commented Oct 20, 2023

Hello, the Fly.io thread is locked so I'll reply here.. Tested this and it works like a charm!

Adding

proxy:
  always-forward:
    - "/api/auth/callback/*"

to my litefs.yml solved my issue flawlessly. Love this addition!! Thank you!

@benbjohnson
Copy link
Collaborator Author

Ah! Sorry about that. Thanks for following up here. Glad to hear it's working!

@benbjohnson benbjohnson merged commit 6627f54 into main Oct 20, 2023
16 checks passed
@benbjohnson benbjohnson deleted the always-forward branch October 20, 2023 00:45
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.

2 participants