mirror of
https://github.com/flibusta-apps/telegram_files_server.git
synced 2025-12-06 04:25:38 +01:00
Fix
This commit is contained in:
@@ -17,6 +17,8 @@ class TelethonConfig(BaseModel):
|
||||
|
||||
|
||||
class EnvConfig(BaseSettings):
|
||||
model_config = SettingsConfigDict(env_file='.env', env_file_encoding='utf-8')
|
||||
|
||||
API_KEY: str
|
||||
|
||||
TELEGRAM_CHAT_ID: int
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
/env.sh > ./.env
|
||||
. ./.env
|
||||
rm ./.env
|
||||
|
||||
cd /app
|
||||
mkdir -p prometheus
|
||||
|
||||
/env.sh > ./.env
|
||||
|
||||
granian --interface asgi --host 0.0.0.0 --port 8080 --loop uvloop main:app
|
||||
|
||||
Reference in New Issue
Block a user