Skip to content

Commit

Permalink
Change variables name prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-athome committed Aug 27, 2023
1 parent 46f7f8c commit f38cdc3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion immich_carddav_sync/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f38cdc3

Please sign in to comment.