diff --git a/compose.prod.override.yml b/compose.prod.override.yml index a169a13..d63ec45 100644 --- a/compose.prod.override.yml +++ b/compose.prod.override.yml @@ -35,7 +35,7 @@ services: build: {} ports: [] environment: - DHT_TORZNAB__API__KEY: ${DHT_TORZNAB__API__KEY} + API__KEY: ${API__KEY} labels: traefik.enable: "true" traefik.http.routers.api.rule: "Host(`api.${DOMAIN}`)" diff --git a/compose.yml b/compose.yml index 70f4c81..cb7950d 100644 --- a/compose.yml +++ b/compose.yml @@ -116,8 +116,8 @@ services: migrations: condition: service_completed_successfully environment: - DHT_TORZNAB__PGSQL_DSN: "postgresql+asyncpg://torznab:${POSTGRES_PASSWORD:-torznab}@postgres/" - DHT_TORZNAB__BEANSTALKD_URL: "beanstalkd://beanstalkd:11300/magneticod_tube" + PGSQL_DSN: "postgresql+asyncpg://torznab:${POSTGRES_PASSWORD:-torznab}@postgres/" + BEANSTALKD_URL: "beanstalkd://beanstalkd:11300/magneticod_tube" deploy: resources: limits: diff --git a/dht_torznab/settings.py b/dht_torznab/settings.py index dccca63..cf9573d 100644 --- a/dht_torznab/settings.py +++ b/dht_torznab/settings.py @@ -109,7 +109,9 @@ class Settings(pydantic.BaseSettings): ) class Config: - env_prefix = "DHT_TORZNAB__" + # NOTE: disabling env prefix for now due to: + # https://github.com/pydantic/pydantic/issues/3807 + # env_prefix = "DHT_TORZNAB__" # noqa: ERA001 env_nested_delimiter = "__"