Skip to content

Commit

Permalink
Chore: fix env value
Browse files Browse the repository at this point in the history
  • Loading branch information
erfjab committed Sep 2, 2024
1 parent d4e2be5 commit a287147
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .env.example
Original file line number Diff line number Diff line change
@@ -71,24 +71,24 @@ UVICORN_PORT = 8000

### Use negative values to disable auto-delete by default
# USERS_AUTODELETE_DAYS = -1
# USER_AUTODELETE_INCLUDE_LIMITED_ACCOUNTS = false
# USER_AUTODELETE_INCLUDE_LIMITED_ACCOUNTS = True

## Customize all notifications
# NOTIFY_STATUS_CHANGE = True
# NOTIFY_USER_CREATED = True
# NOTIFY_USER_UPDATED = True
# NOTIFY_USER_DELETED = True
# NOTIFY_USER_DATA_USED_RESET = True
# NOTIFY_USER_SUB_REVOKED = True
# NOTIFY_IF_DATA_USAGE_PERCENT_REACHED = True
# NOTIFY_IF_DAYS_LEF_REACHED = True
# NOTIFY_LOGIN = True
# NOTIFY_STATUS_CHANGE = False
# NOTIFY_USER_CREATED = False
# NOTIFY_USER_UPDATED = False
# NOTIFY_USER_DELETED = False
# NOTIFY_USER_DATA_USED_RESET = False
# NOTIFY_USER_SUB_REVOKED = False
# NOTIFY_IF_DATA_USAGE_PERCENT_REACHED = False
# NOTIFY_IF_DAYS_LEF_REACHED = False
# NOTIFY_LOGIN = False

## Whitelist of IPs/hosts to disable login notifications
# LOGIN_WHITE_LIST = '1.1.1.1,sub.domain.com,127.0.0.1'

## Main Server Usege Ratio
# MAIN_SERVER_USAGE_RATIO = 1
# MAIN_SERVER_USAGE_RATIO = 1.0

### for developers
# DOCS=True
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@

EXTERNAL_CONFIG = config("EXTERNAL_CONFIG", default="", cast=str)
LOGIN_WHITE_LIST = [ip.strip() for ip in config("LOGIN_WHITE_LIST", default="", cast=str).split(",") if ip.strip()]
MASTER_SERVER_USAGE_RATIO = config("MASTER_SERVER_USAGE_RATIO", default=1, cast=float)
MASTER_SERVER_USAGE_RATIO = config("MASTER_SERVER_USAGE_RATIO", default=1.0, cast=float)

USE_CUSTOM_JSON_DEFAULT = config("USE_CUSTOM_JSON_DEFAULT", default=False, cast=bool)
USE_CUSTOM_JSON_FOR_V2RAYN = config("USE_CUSTOM_JSON_FOR_V2RAYN", default=False, cast=bool)

0 comments on commit a287147

Please sign in to comment.