diff options
author | clarkzjw <[email protected]> | 2023-02-24 00:51:04 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-24 00:51:04 -0800 |
commit | 4bb5cbdc16ecf5f6e5961373816d4c741d54ee51 (patch) | |
tree | ea85f216881bacb54f579cae9814e2f85aa1abe5 /config.py | |
parent | a9fb6f252553ae49a2ba372434073824babe31e4 (diff) | |
parent | 391abe42adf3bf065d9543ada068b696b00efdcd (diff) | |
download | swarm2fediverse-4bb5cbdc16ecf5f6e5961373816d4c741d54ee51.tar.gz |
Merge branch 'deploy/cicd'
added Dockerfile and docker-compose.yaml with krakend api gateway and
monitoring using influxdb and grafana dashboard
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -10,6 +10,12 @@ BOT_TOKEN = config["DEFAULT"]["BOT_TOKEN"] | |||
10 | FSQ_API_KEY = config["DEFAULT"]["FOURSQUARE_API_KEY"] | 10 | FSQ_API_KEY = config["DEFAULT"]["FOURSQUARE_API_KEY"] |
11 | ENCRYPT_KEY = config["DEFAULT"]["ENCRYPT_KEY"] | 11 | ENCRYPT_KEY = config["DEFAULT"]["ENCRYPT_KEY"] |
12 | 12 | ||
13 | TELEGRAM_WEBHOOK_URL = config["API"]["TELEGRAM_WEBHOOK_URL"] | ||
14 | HEALTHCHECK_URL = config["API"]["HEALTHCHECK_URL"] | ||
15 | FEDI_LOGIN_CALLBACK_URL = config["API"]["FEDI_LOGIN_CALLBACK_URL"] | ||
16 | BOT_DOMAIN = config["API"]["BOT_DOMAIN"] | ||
17 | BOT_PORT = int(config["API"]["BOT_PORT"]) | ||
18 | |||
13 | MEDIA_GROUP_TIMEOUT = 3 | 19 | MEDIA_GROUP_TIMEOUT = 3 |
14 | 20 | ||
15 | FEDI_LOGIN, WAIT_VISIBILITY, WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, ADD_MEDIA, ADD_COMMENT = range(7) | 21 | FEDI_LOGIN, WAIT_VISIBILITY, WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, ADD_MEDIA, ADD_COMMENT = range(7) |
@@ -41,9 +47,4 @@ class MsgDict(TypedDict): | |||
41 | KEY_TOOT_STATUS_ID = "toot_status_id" | 47 | KEY_TOOT_STATUS_ID = "toot_status_id" |
42 | KEY_TOOT_STATUS_CONTENT = "toot_status_content" | 48 | KEY_TOOT_STATUS_CONTENT = "toot_status_content" |
43 | 49 | ||
44 | TELEGRAM_WEBHOOK_URL = "/checkinbot/webhook" | ||
45 | HEALTHCHECK_URL = "/checkinbot/healthcheck" | ||
46 | FEDI_LOGIN_CALLBACK_URL = "/checkinbot/fedi_login_callback" | ||
47 | BOT_DOMAIN = "https://zjw.social" | ||
48 | BOT_PORT = 30010 | ||
49 | BOT_SCOPE = ['read:accounts', 'write:media', 'write:statuses'] | 50 | BOT_SCOPE = ['read:accounts', 'write:media', 'write:statuses'] |