-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
27 lines (20 loc) · 930 Bytes
/
config.py
File metadata and controls
27 lines (20 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import os
AIRTABLE_VIEW_NAME = 'Общая таблица'
AIRTABLE_RATE_LIMIT_STATUS_CODE = 429
TELEGRAM_BOT_TOKEN = os.environ['TELEGRAM_BOT_TOKEN']
TELEGRAM_PROXY_SETTINGS = {}
if 'TELEGRAM_PROXY_URL' in os.environ:
TELEGRAM_PROXY_SETTINGS = {
'proxy_url': os.environ['TELEGRAM_PROXY_URL'],
'urllib3_proxy_kwargs': {
'username': os.environ['TELEGRAM_PROXY_LOGIN'],
'password': os.environ['TELEGRAM_PROXY_PASSWORD'],
},
}
TELEGRAM_ADMINS = os.environ.get('TELEGRAM_ADMINS', '@korneevm,@pyhoster,@SimonOsipov').split(',')
TELERGAM_ORGS_CHAT_ID = os.environ.get('TELERGAM_ORGS_CHAT_ID', '-1001204501936')
REDIS_URL = os.environ.get('CAPALDI_REDIS_URL', 'redis://localhost:6379/0')
SENTRY_URL = os.environ.get('SENTRY_URL')
AIRTABLE_API_KEY = os.environ['AIRTABLE_API_KEY']
AIRTABLE_BASE_ID = os.environ['AIRTABLE_BASE_ID']
LOG_LEVEL = os.getenv('LOG_LEVEL', 'DEBUG')