mirror of
https://github.com/ijaric/voice_assistant.git
synced 2025-05-24 14:33:26 +00:00
[#10] fix rename SERVER variables to -> API
This commit is contained in:
parent
fca4d23f05
commit
bde0f0c7e1
|
@ -4,7 +4,7 @@ DB_USER=user
|
|||
DB_PASSWORD=Qwe123
|
||||
DB_NAME=api_db
|
||||
|
||||
SERVER_HOST=0.0.0.0
|
||||
SERVER_PORT=8000
|
||||
API_HOST=0.0.0.0
|
||||
API_PORT=8000
|
||||
|
||||
JWT_SECRET_KEY=v9LctjUWwol4XbvczPiLFMDtZ8aal7mm
|
||||
|
|
|
@ -25,7 +25,7 @@ services:
|
|||
restart: always
|
||||
entrypoint: ["/opt/app/entrypoint.sh"]
|
||||
ports:
|
||||
- "${SERVER_PORT}:${SERVER_PORT}"
|
||||
- "${API_PORT}:${API_PORT}"
|
||||
depends_on:
|
||||
- db
|
||||
env_file:
|
||||
|
|
|
@ -10,7 +10,7 @@ services:
|
|||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "127.0.0.1:${DB_PORT}:${DB_PORT}"
|
||||
- "127.0.0.1:${API_PORT}:${API_PORT}"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data/
|
||||
restart: always
|
||||
|
|
|
@ -6,7 +6,7 @@ import lib.app.split_settings.utils as app_split_settings_utils
|
|||
class ApiSettings(pydantic_settings.BaseSettings):
|
||||
model_config = pydantic_settings.SettingsConfigDict(
|
||||
env_file=app_split_settings_utils.ENV_PATH,
|
||||
env_prefix="SERVER_",
|
||||
env_prefix="API_",
|
||||
env_file_encoding="utf-8",
|
||||
extra="ignore",
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user