Update project configuration and codebase
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
from typing import Optional
|
||||
from pydantic_settings import BaseSettings
|
||||
from pydantic import Field
|
||||
from dotenv import load_dotenv
|
||||
from pydantic import Field
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
load_dotenv(override=True)
|
||||
|
||||
@@ -9,7 +8,7 @@ load_dotenv(override=True)
|
||||
class Settings(BaseSettings):
|
||||
bot_token: str = Field(alias="BOT_TOKEN")
|
||||
postgres_url: str = Field(alias="POSTGRES_URL")
|
||||
proxy: Optional[str] = Field(None, alias="PROXY")
|
||||
proxy: str | None = Field(None, alias="PROXY")
|
||||
admin_group_id: int = Field(alias="ADMIN_GROUP_ID")
|
||||
remnawave_url: str = Field(alias="REMNAWAVE_URL")
|
||||
subscription_url: str = Field(alias="SUBSCRIPTION_URL")
|
||||
|
||||
Reference in New Issue
Block a user