Closed v808comd closed 1 year ago
Please try to clean browser cache.
When you logout, you should be redirected to http://ip:3000/auth/login
If you still have issues, i need to know more about your system.
Browser: Operating System:
Also, can you describe what you see in the browser when you logout?
And the docker logs would be helpfull:
docker logs ztnet
首次注册管理员后跳转到登陆界面,会卡在 http://ip:3000/auth/login 页面。
Can you try to clean cache. Ctrl + Shift + R
, or use incognito
Did you try another browser?
我是清理了缓存的。 http://218.60.97.186:3000/ 是开放注册的,您可以测试一下。
Thx. Can you post your docker-compose.yml file.
version: "3.1" services: postgres: image: postgres:15.2-alpine container_name: postgres restart: unless-stopped environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: ztnet volumes:
app-network
zerotier: image: zyclonite/zerotier:1.10.6 hostname: zerotier container_name: zerotier restart: unless-stopped volumes:
ZT_ALLOW_MANAGEMENT_FROM=172.31.255.0/29
ztnet: image: sinamics/ztnet:latest container_name: ztnet working_dir: /app volumes:
networks: app-network: driver: bridge ipam: driver: default config:
try to add these in docker-compose.yml
NEXTAUTH_URL: "http://218.60.97.186:3000"
NEXTAUTH_URL_INTERNAL: "http://localhost:3000"
Thx,Added NEXTAUTH_URL_INTERNAL: "http://localhost:3000" ,Perfect solution to the problem!
创建 planet后,查看 docker logs ztnet . 其中有这个提示: 2023/08/27 03:32:03 read world signing key failed: open previous.c25519: no such file or directory , open current.c25519: no such file or directory 2023/08/27 03:32:03 preflight check error occurred, but still can proceed.
Thx,Added NEXTAUTH_URL_INTERNAL: "http://localhost:3000/" ,Perfect solution to the problem!
Perfect. Thank you for letting me test on your server. 👍
2023/08/27 03:32:03 read world signing key failed: open previous.c25519: no such file or directory , open current.c25519: no such. 2023/08/27 03:32:03 preflight check error occurred, but still can proceed.
These are normal when you create a new planet. It willl generate new certificates previous.c25519
& current.c25519
.
If you upload a config that has these files included, you will not get this error.
📝 Describe the Problem You Are Having
docker-compose.yml 文件中,将 NEXTAUTH_URL: "http://localhost:3000" 修改为 NEXTAUTH_URL: "http://ip:3000" 后,退出登录后不能回到登录界面。 注册后也不能进入界面。
🔖 Version
0.3.6
📋 Relevant Log Output
No response
💻 Operating System
None
📚 Any Other Information That May Be Helpful
No response