Repository navigation
Bypass www redirect for API and authentication requests - #32
Closed
atalyaalon wants to merge 1 commit into
Closed
atalyaalon wants to merge 1 commit into
atalyaalon wants to merge 1 commit into
Conversation
atalyaalon
added a commit
that referenced
this pull request
Nov 30, 2026
…eplaces #32 (#33) * Bypass www redirect for API and authentication requests * www API bypass: also cover the safety-data login routes, explain the rule safety-data-client logs in with credentials via ${apiUrl}/sd-authorize/, /sd-callback/ and /sd-user/ (anyway flask_app.py), which the bypass did not cover. Adding them is harmless: same backend, only the redirect is skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XtN7GhfRRihvBTHsWxGZoV * www API bypass: also cover safety-data's data routes (/involved, /city) safety-data-client calls ${API_ANYWAY_URL}/involved, /involved/groupby and /city with a JSON content type (preflighted CORS), which a redirect breaks if that URL is www.anyway.co.il. Harmless otherwise: same backend. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XtN7GhfRRihvBTHsWxGZoV --------- Co-authored-by: tkalir <tkalir@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
Closing: replaced by #33, merged 2026-11-30 02:02 UTC (
The branch Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@tkalir: I opened this PR for your branch
fix-www-api-redirect(commit 8598b61, unchanged) so your fix gets back to production and stays there.What happened
anyway-nginxwas recreated.main.maindoesn't have this change, so the rule was removed from production again.main, so it also put dfc2's backup schedule back to daily. That's why dfc2 has daily dumps on Nov 29 and 30. Harmless, and monthly again since 00:28.Since 00:23 UTC on Nov 30,
www.anyway.co.il/api/…,/authorize/…,/callback/…,/user/…and/logoutare redirected toanyway.co.ilagain. That's the behaviour this fix was meant to avoid.The change
5 Traefik labels in
apps-dfc2/anyway/compose.yaml: a higher-priorityanyway-www-apirouter, so those paths onwww.anyway.co.ilare served directly byanyway-nginxinstead of hitting the www → apex redirect.Merging
main. The result ismainplus exactly these 5 lines; checked withgit merge-tree.10 0 1 * *), because the merge keepsmain's version.dfc2 anyway CI). That applies the router and recreatesanyway-nginx, a few seconds' blip, the same as on Nov 28.10 0 1 * *.Nothing else from this branch is pending: it has only this one commit on top of the old
main.Generated by Claude Code