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

error in login redirect #1096

Open
abdalladorrah opened this issue May 2, 2024 · 0 comments
Open

error in login redirect #1096

abdalladorrah opened this issue May 2, 2024 · 0 comments
Labels
support A request for help setting things up

Comments

@abdalladorrah
Copy link

I am running chat-ui in online vps ubuntu 22
I am stuck at login redirection
I went through google authorization page and confirm my Gmail then redirect to my main domain again
The problem is simply it back with no action, not logged on and the URL been like that:
mydomain.com/login/callback?state=xxxxxxxxx
when I try again it redirect me to my main domain with 500 internal error
is there something that I missed in .env file ?

This is parts from env
COOKIE_NAME=SP-chat
HF_TOKEN=hf_xxxxxxxxxxxxxxxxxxxxxxxxx
HF_API_ROOT=https://api-inference.huggingface.co/models

OPENID_CONFIG={ "PROVIDER_URL": "https://accounts.google.com", "CLIENT_ID": "xxxxxxxxxxx.apps.googleusercontent.com", "CLIENT_SECRET": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "SCOPES": "", "NAME_CLAIM": "" }

USE_CLIENT_CERTIFICATE=false
CERT_PATH=/etc/letsencrypt/live/xxxxxxxxxx/fullchain.pem
KEY_PATH=/etc/letsencrypt/live/xxxxxxxxxx/privkey.pem
CA_PATH=#
CLIENT_KEY_PASSWORD=#
REJECT_UNAUTHORIZED=true

PUBLIC_ORIGIN=https://xxxxxxxxxx.com
PUBLIC_SHARE_PREFIX=https://xxxxxxxxx.com/
PUBLIC_GOOGLE_ANALYTICS_ID=#G-XXXXXXXX / Leave empty to disable
PUBLIC_PLAUSIBLE_SCRIPT_URL=#/js/script.js / Leave empty to disable

@nsarrazin nsarrazin added the support A request for help setting things up label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support A request for help setting things up
Projects
None yet
Development

No branches or pull requests

2 participants