sinamics / ztnet

ZTNET - ZeroTier Web UI for Private Controllers with Multiuser and Organization Support.
https://ztnet.network
GNU General Public License v3.0
535 stars 56 forks source link

[Support]: 0.3.6 发现一个小 bug #105

Closed v808comd closed 1 year ago

v808comd commented 1 year ago

📝 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

sinamics commented 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

v808comd commented 1 year ago
v808comd commented 1 year ago

首次注册管理员后跳转到登陆界面,会卡在 http://ip:3000/auth/login 页面。

20230827021323

sinamics commented 1 year ago

Can you try to clean cache. Ctrl + Shift + R, or use incognito Did you try another browser?

v808comd commented 1 year ago

我是清理了缓存的。 http://218.60.97.186:3000/ 是开放注册的,您可以测试一下。

sinamics commented 1 year ago

Thx. Can you post your docker-compose.yml file.

v808comd commented 1 year ago

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:

networks: app-network: driver: bridge ipam: driver: default config:

sinamics commented 1 year ago

try to add these in docker-compose.yml

NEXTAUTH_URL: "http://218.60.97.186:3000"
NEXTAUTH_URL_INTERNAL: "http://localhost:3000"
v808comd commented 1 year ago

Thx,Added NEXTAUTH_URL_INTERNAL: "http://localhost:3000" ,Perfect solution to the problem!

v808comd commented 1 year ago

创建 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.

sinamics commented 1 year ago

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.