kingmo888 / rustdesk-api-server

基于Django的RustDesk Api&Web Server,除了支持api所有功能,还支持web注册、管理、展示等。已支持到最新1.3.1版本。
940 stars 214 forks source link

It's not a bug #52

Closed Vasilis553 closed 7 months ago

Vasilis553 commented 8 months ago

What happened?

It is not a bug but how can I disable register user? I have docker installed the latest version

Operation System

Win 10

Python Version

-

Run type Python/Docker

-

kingmo888 commented 8 months ago

Please add the ALLOW-REGISTRY variable to the Docker's environment variable and set ALLOW-REGISTRY to False

docker run :

……
 -e ID_SERVER=yourdomain.com \ #Web控制端使用的ID服务器
-e ALLOW-REGISTRY=False
……

docker-compose :

    environment:
      - CSRF_TRUSTED_ORIGINS=http://yourdomain.com:21114 #防跨域信任来源,可选
      - ID_SERVER=yourdomain.com #Web控制端使用的ID服务器
      - ALLOW-REGISTRY=False
kingmo888 commented 8 months ago

If the operation can achieve the goal, please close it.

Vasilis553 commented 8 months ago

If the operation can achieve the goal, please close it. Originally posted by @kingmo888 in https://github.com/kingmo888/rustdesk-api-server/issues/52#issuecomment-2006940790 I changed the docker-compose i restarted the server the issuee exists i composed again but no fixes register works i restarted all services but again i can register account

kingmo888 commented 8 months ago

No matter how you configure (pull, restart), you need to ensure that this setting is added to the environment variable and set to False in the latest version. As long as it is set in this way, there will be no problems. So, you should check the environment variables.

image

image

close #53