From f38cdc32d2e56e08d22dcd5eb204d4aaba65c2d4 Mon Sep 17 00:00:00 2001 From: Daniele Ricci Date: Sun, 27 Aug 2023 17:52:42 +0200 Subject: [PATCH] Change variables name prefix --- README.md | 18 +++++++++--------- immich_carddav_sync/config.py | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e0d4314..36a12ce 100644 --- a/README.md +++ b/README.md @@ -5,15 +5,15 @@ A tool to sync dates of birth in Immich from a CardDAV server. Configuration is provided via environment variables (`.env` file is supported). -| Name | Description | -|------------------------------------|------------------------------------------------| -| IMMICH_CARDDAV_CARDDAV_URL | URL to the CardDAV server | -| IMMICH_CARDDAV_CARDDAV_ADDRESSBOOK | Address book name or ID in the CardDAV server. | -| IMMICH_CARDDAV_CARDDAV_USERNAME | Username of CardDAV server | -| IMMICH_CARDDAV_CARDDAV_PASSWORD | Password of CardDAV server | -| IMMICH_CARDDAV_IMMICH_API_URL | Immich instance API URL (including "/api") | -| IMMICH_CARDDAV_IMMICH_API_KEY | Immich API key | -| IMMICH_CARDDAV_CRON_EXPRESSION | Cron expression (only for daemon image) | +| Name | Description | +|----------------------------------|------------------------------------------------| +| CARDDAV_SYNC_CARDDAV_URL | URL to the CardDAV server | +| CARDDAV_SYNC_CARDDAV_ADDRESSBOOK | Address book name or ID in the CardDAV server. | +| CARDDAV_SYNC_CARDDAV_USERNAME | Username of CardDAV server | +| CARDDAV_SYNC_CARDDAV_PASSWORD | Password of CardDAV server | +| CARDDAV_SYNC_IMMICH_API_URL | Immich instance API URL (including "/api") | +| CARDDAV_SYNC_IMMICH_API_KEY | Immich API key | +| CARDDAV_SYNC_CRON_EXPRESSION | Cron expression (only for daemon image) | Environment variable LOG_LEVEL will configure the logging level (standard Python logging levels: DEBUG, INFO, WARNING, ERROR, CRITICAL). diff --git a/immich_carddav_sync/config.py b/immich_carddav_sync/config.py index 993c1b6..dc158d8 100644 --- a/immich_carddav_sync/config.py +++ b/immich_carddav_sync/config.py @@ -11,7 +11,7 @@ class Settings(BaseSettings): carddav_password: str class Config: - env_prefix = "IMMICH_CARDDAV_" + env_prefix = "CARDDAV_SYNC_" env_file = ".env" case_sensitive = False