how to setup cookie if access refly with domain
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 729
- PR merge metrics
- No merged PRs in 30d
Description
I prepare 3 domain for refly:
- refly.example.com
- reflyapi.example.com
- reflyws.example.com
environments configuration:
api:
- ORIGIN=refly.example.com
- STATIC_PUBLIC_ENDPOINT=https://reflyapi.example.com/v1/misc/public
- STATIC_PRIVATE_ENDPOINThttps://reflyapi.example.com/v1/misc
web: - API_URL: https://reflyapi.example.com
- COLLAB_URL: https://reflyws.example.com
- STATIC_PUBLIC_ENDPOINT: https://reflyapi.example.com/v1/misc/public
- STATIC_PRIVATE_ENDPOINT: https://reflyapi.example.com/v1/misc
remove the /api and /collab location in the nginx.conf file
How to setup below environemnts?
- AUTH_SKIP_VERIFICATION: ${AUTH_SKIP_VERIFICATION:-false}
- REFLY_COOKIE_DOMAIN: ${REFLY_COOKIE_DOMAIN:-refly.example.com}
- REFLY_COOKIE_SECURE: ${REFLY_COOKIE_SECURE:-true}
- REFLY_COOKIE_SAME_SITE: ${REFLY_COOKIE_SAME_SITE:-}
- LOGIN_REDIRECT_URL: ${LOGIN_REDIRECT_URL:-}
The current issue is the refly failed to access the /convas after login.
Please kindly advice, thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the nginx.conf changes and the API/web environment settings listed in the issue, especially the cookie, redirect, and endpoint variables. Reproduce the login flow with the three domains and inspect why /convas is unavailable after login. Done means the documented configuration allows access to /convas after authentication.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nginx
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100