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