mirror of
https://codeberg.org/Freedium-cfd/web.git
synced 2026-03-11 09:04:37 +00:00
prod: prod fixes
This commit is contained in:
parent
0af2bee054
commit
da93519351
2 changed files with 4 additions and 2 deletions
|
|
@ -14,6 +14,7 @@ services:
|
|||
- "6752:6752"
|
||||
volumes:
|
||||
- ./CaddyfileDev:/etc/caddy/Caddyfile
|
||||
# - ./CaddyfileMaintance:/etc/caddy/Caddyfile
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
networks:
|
||||
|
|
@ -82,8 +83,8 @@ services:
|
|||
context: .
|
||||
dockerfile: DockerfileHealthcare
|
||||
environment:
|
||||
- TG_TOKEN=${TG_TOKEN}
|
||||
- TG_CHAT_ID=${TG_CHAT_ID}
|
||||
- TG_TOKEN=${TELEGRAM_BOT_TOKEN}
|
||||
- TG_CHAT_ID=${TELEGRAM_ADMIN_ID}
|
||||
- PROXY_HOST=wgcf1
|
||||
- PROXY_PORT=1080
|
||||
depends_on:
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ class MessageStatus(Enum):
|
|||
|
||||
|
||||
def send_message(text: str, silent: bool = False, status: MessageStatus = "ERROR") -> None:
|
||||
return True
|
||||
if not config.TELEGRAM_BOT_TOKEN or not config.TELEGRAM_ADMIN_ID:
|
||||
logger.warning("Can't send log messages, because of lack of some informations. Ignore....")
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue