aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-24 00:51:04 -0800
committerclarkzjw <[email protected]>2023-02-24 00:51:04 -0800
commit4bb5cbdc16ecf5f6e5961373816d4c741d54ee51 (patch)
treeea85f216881bacb54f579cae9814e2f85aa1abe5 /config.py
parenta9fb6f252553ae49a2ba372434073824babe31e4 (diff)
parent391abe42adf3bf065d9543ada068b696b00efdcd (diff)
downloadswarm2fediverse-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.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/config.py b/config.py
index 0fae9b1..fe69bd9 100644
--- a/config.py
+++ b/config.py
@@ -10,6 +10,12 @@ BOT_TOKEN = config["DEFAULT"]["BOT_TOKEN"]
10FSQ_API_KEY = config["DEFAULT"]["FOURSQUARE_API_KEY"] 10FSQ_API_KEY = config["DEFAULT"]["FOURSQUARE_API_KEY"]
11ENCRYPT_KEY = config["DEFAULT"]["ENCRYPT_KEY"] 11ENCRYPT_KEY = config["DEFAULT"]["ENCRYPT_KEY"]
12 12
13TELEGRAM_WEBHOOK_URL = config["API"]["TELEGRAM_WEBHOOK_URL"]
14HEALTHCHECK_URL = config["API"]["HEALTHCHECK_URL"]
15FEDI_LOGIN_CALLBACK_URL = config["API"]["FEDI_LOGIN_CALLBACK_URL"]
16BOT_DOMAIN = config["API"]["BOT_DOMAIN"]
17BOT_PORT = int(config["API"]["BOT_PORT"])
18
13MEDIA_GROUP_TIMEOUT = 3 19MEDIA_GROUP_TIMEOUT = 3
14 20
15FEDI_LOGIN, WAIT_VISIBILITY, WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, ADD_MEDIA, ADD_COMMENT = range(7) 21FEDI_LOGIN, WAIT_VISIBILITY, WAIT_LOCATION, LOCATION_SEARCH_KEYWORD, LOCATION_CONFIRMATION, ADD_MEDIA, ADD_COMMENT = range(7)
@@ -41,9 +47,4 @@ class MsgDict(TypedDict):
41KEY_TOOT_STATUS_ID = "toot_status_id" 47KEY_TOOT_STATUS_ID = "toot_status_id"
42KEY_TOOT_STATUS_CONTENT = "toot_status_content" 48KEY_TOOT_STATUS_CONTENT = "toot_status_content"
43 49
44TELEGRAM_WEBHOOK_URL = "/checkinbot/webhook"
45HEALTHCHECK_URL = "/checkinbot/healthcheck"
46FEDI_LOGIN_CALLBACK_URL = "/checkinbot/fedi_login_callback"
47BOT_DOMAIN = "https://zjw.social"
48BOT_PORT = 30010
49BOT_SCOPE = ['read:accounts', 'write:media', 'write:statuses'] 50BOT_SCOPE = ['read:accounts', 'write:media', 'write:statuses']
Powered by cgit v1.2.3 (git 2.41.0)