We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在本地運行時無法透過 google oauth 登入
在本地運行的 server swarm isunfa,設定Doman之後,運行isunfa的服務無法透過Google登入,需做以下更改才能用Google登入,但會讓 AICH, FAITH 服務無法運行
更改 .env
.env
# DOMAIN=isunfa.tw DOMAIN=127.0.0.1
更改 .env.isunfa
.env.isunfa
# NEXTAUTH_URL = https://${DOMAIN} # NEXT_PUBLIC_DOMAIN = https://${DOMAIN} NEXTAUTH_URL = http://${DOMAIN} NEXT_PUBLIC_DOMAIN = http://${DOMAIN}
需要更改 server swarm 跟註冊 google oauth url 跟補充文件,讓開發者跟著文件可以選擇在本地或雲端運行 server swarm
The text was updated successfully, but these errors were encountered:
Google oauth 註冊 http://localhost/api/auth/callback/google,但是在本地運行時,/etc/hosts 註冊 IP 位置對應 localhost,並在 .env 裡將 DOMAIN 註冊為 localhost,運行docker之後,瀏覽器輸入 http://localhost 會導向 nginx 預設網頁而不是 isunfa landing page;雖然 AICH, FAITH 分別可通過 http://aich.localhost/, http://faith.localhost/ ,isunfa 可透過 docker compose exec isunfa /bin/bash 進入 docker container 輸入 curl http://isunfa:5566 access to isunfa website
http://localhost/api/auth/callback/google
/etc/hosts
http://localhost
http://aich.localhost/
http://faith.localhost/
docker compose exec isunfa /bin/bash
curl http://isunfa:5566
Sorry, something went wrong.
took 2 hrs remaining 1.5 hrs
isunfa.org
arealclimber
No branches or pull requests
Summary
在本地運行時無法透過 google oauth 登入
Details
在本地運行的 server swarm isunfa,設定Doman之後,運行isunfa的服務無法透過Google登入,需做以下更改才能用Google登入,但會讓 AICH, FAITH 服務無法運行
更改
.env
# DOMAIN=isunfa.tw DOMAIN=127.0.0.1
更改
.env.isunfa
需要更改 server swarm 跟註冊 google oauth url 跟補充文件,讓開發者跟著文件可以選擇在本地或雲端運行 server swarm
The text was updated successfully, but these errors were encountered: