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_PASSWORD=Qwe123
|
||||||
DB_NAME=api_db
|
DB_NAME=api_db
|
||||||
|
|
||||||
SERVER_HOST=0.0.0.0
|
API_HOST=0.0.0.0
|
||||||
SERVER_PORT=8000
|
API_PORT=8000
|
||||||
|
|
||||||
JWT_SECRET_KEY=v9LctjUWwol4XbvczPiLFMDtZ8aal7mm
|
JWT_SECRET_KEY=v9LctjUWwol4XbvczPiLFMDtZ8aal7mm
|
||||||
|
|
|
@ -25,7 +25,7 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
entrypoint: ["/opt/app/entrypoint.sh"]
|
entrypoint: ["/opt/app/entrypoint.sh"]
|
||||||
ports:
|
ports:
|
||||||
- "${SERVER_PORT}:${SERVER_PORT}"
|
- "${API_PORT}:${API_PORT}"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
env_file:
|
env_file:
|
||||||
|
|
|
@ -10,7 +10,7 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:${DB_PORT}:${DB_PORT}"
|
- "127.0.0.1:${API_PORT}:${API_PORT}"
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data/
|
- postgres_data:/var/lib/postgresql/data/
|
||||||
restart: always
|
restart: always
|
||||||
|
|
|
@ -6,7 +6,7 @@ import lib.app.split_settings.utils as app_split_settings_utils
|
||||||
class ApiSettings(pydantic_settings.BaseSettings):
|
class ApiSettings(pydantic_settings.BaseSettings):
|
||||||
model_config = pydantic_settings.SettingsConfigDict(
|
model_config = pydantic_settings.SettingsConfigDict(
|
||||||
env_file=app_split_settings_utils.ENV_PATH,
|
env_file=app_split_settings_utils.ENV_PATH,
|
||||||
env_prefix="SERVER_",
|
env_prefix="API_",
|
||||||
env_file_encoding="utf-8",
|
env_file_encoding="utf-8",
|
||||||
extra="ignore",
|
extra="ignore",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user