-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py.example
24 lines (21 loc) · 1.1 KB
/
config.py.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
TOKEN = "123456789:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
MIN_PASSWORD_LENGTH = 8
MAX_PASSWORD_LENGTH = 2048
DEFAULT_PASSWORD_LENGTH = 12
# Here you may specify additional non-alphanumeric characters that will be used in generated passwords.
PASSWORD_EXTRA_CHARS = ""
# Threshold value to prevent the infinite loop to occur
MAX_PASSWORD_GENERATION_TRIES = 100
PREMIUM_USERS_UID = []
# Must be consistent with the path part of the location in your front-end web server configuration.
NAME = "kozRandBot"
APP_HOST = '0.0.0.0' # '0.0.0.0' for a Docker isolated network, '127.0.0.1' for a system-wide nginx
APP_PORT = '8080' # A port for a local server, which the application establishes.
HOST = "bots.example.org"
SERVER_PORT = 8443 # A port on a front-end web server.
METRICS_PORT = 8000
UNIX_SOCKET = f"/tmp/{NAME}.sock" # A Unix domain socket to communicate with that web server.
SOCKET_TYPE = 'TCP' # TCP or UNIX
# Set to 'False' for production use.
# Besides the level of verbosity, determines whether polling or webhooks will be used.
DEBUG = True