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

Logout Redirects From Subdomain to http://localhost:3000/ #594

Open
juicyroots opened this issue May 6, 2024 · 1 comment
Open

Logout Redirects From Subdomain to http://localhost:3000/ #594

juicyroots opened this issue May 6, 2024 · 1 comment
Labels
question Further information is requested

Comments

@juicyroots
Copy link

Is your question related to a problem or code? Please describe.
Just curious if this can be changed.

Describe what you've tried to solve this question
Nothing yet, not sure how to fix.

Include any code or screenshots (if applicable)
When I'm on my external/public URL, and I click logout, I get redirected to http://localhost:3000.

Additional context
How do get it to simply logout and redirect back to the public domain?

@juicyroots juicyroots added the question Further information is requested label May 6, 2024
@obuno
Copy link

obuno commented May 21, 2024

Hi there,

You can avoid this by editing /opt/linkwarden/.env and reflecting these lines, edited for your environment:

NEXTAUTH_URL=https://example.com
NEXTAUTH_URL_INTERNAL=http://localhost:3000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants