Skip to content

Commit

Permalink
Merge pull request #49 from zp96324511/patch-1
Browse files Browse the repository at this point in the history
环境变量中的"False"会被当做字符串进行if判断,结果为True
  • Loading branch information
kingmo888 authored Mar 14, 2024
2 parents 514a5b7 + 41cbeed commit 08b4e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustdesk_server_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
ALLOWED_HOSTS = ["*"]
AUTH_USER_MODEL = 'api.UserProfile' #AppName.自定义user

ALLOW_REGISTRATION = os.environ.get("ALLOW_REGISTRATION", True) # 是否允许注册, True为允许,False为不允许
ALLOW_REGISTRATION = os.environ.get("ALLOW_REGISTRATION", "True") == "True" # 是否允许注册, True为允许,False为不允许

#==========数据库配置 开始=====================
DATABASE_TYPE = os.environ.get("DATABASE_TYPE", 'SQLITE')
Expand Down

0 comments on commit 08b4e8c

Please sign in to comment.