Repository navigation
fix(docker): set FLAGSMITH_FRONTEND_URL in docker-compose.yml - #9181
Conversation
|
@shrey-Bish is attempting to deploy a commit to the Flagsmith Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
No issues found across 1 file
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Auto-approval skipped because this PR is from an external contributor.
Re-trigger cubic
Zaimwa9
left a comment
There was a problem hiding this comment.
Thanks for the contribution, with some additional documentation this would be good to go
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Auto-approval skipped because this PR is from an external contributor.
Re-trigger cubic
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Zaimwa9
left a comment
There was a problem hiding this comment.
Good to go, thanks for the contribution
Thanks for submitting a PR! Please check the boxes below:
docs/if required so people know about the feature. (Not required: no new setting, only a value in the example compose file.)Changes
The official
docker-compose.ymlserves the API and the dashboard together onlocalhost:8000, but doesn't setFLAGSMITH_FRONTEND_URL. Flagsmith then falls back tohttp://localhost:8080, so its OAuth metadata sends the command-line login to a page that doesn't exist:This sets
FLAGSMITH_FRONTEND_URLto the address the compose file already publishes, next toFLAGSMITH_DOMAIN(which only covers links in emails), with the same "Change this in production" note.How did you test this code?
Manually, on Flagsmith 2.295.2 with the official
docker-compose.yml:docker compose up -d, thencurl -s http://localhost:8000/.well-known/oauth-authorization-server:authorization_endpointishttp://localhost:8080/oauth/authorize/.docker compose up -dagain (only the Flagsmith containers are recreated).http://localhost:8000/oauth/authorize/.GET /api/v1/projects/returns 200), so nobody is signed out.