Skip to content

Commit

Permalink
fix: Revoke and remove healthchecks url to move to .env
Browse files Browse the repository at this point in the history
  • Loading branch information
tjtanjin committed Jan 31, 2024
1 parent 9b652bc commit 968c9cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#######################################################################################

# token for your telegram bot (obtained from botfather)
BOT_TOKEN=YOUR_TOKEN_HERE
BOT_TOKEN=YOUR_BOT_TOKEN_HERE

# language used by the bot, supported languages can be found here:
# https://github.com/tjtanjin/simple-media-converter/tree/master/assets/lang
Expand Down Expand Up @@ -56,3 +56,11 @@ API_HEADERS={}
# body to include in the request e.g. {"counter_value": 1}
API_BODY={}

#######################################################################################
# #
# Healthchecks Settings #
# #
#######################################################################################

# endpoint for your monitoring service (e.g. healthchecks.io)
HEALTHCHECKS_ENDPOINT=YOUR_HEALTHCHECKS_ENDPOINT
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from interactions.loader import load_interactions # noqa

if os.getenv("HEALTHCHECKS_ENDPOINT"):
HealthPing(url="https://hc-ping.com/613b74f2-e71b-49de-95e5-f8b617d23525",
HealthPing(url=os.getenv("HEALTHCHECKS_ENDPOINT"),
schedule="1 * * * *",
retries=[60, 300, 720]).start()

Expand Down

0 comments on commit 968c9cf

Please sign in to comment.