huggingface / chat-ui

Open source codebase powering the HuggingChat app

Home Page:https://huggingface.co/chat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error in login redirect

abdalladorrah opened this issue · comments

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