4 more would fail quietly.. 2 are worth tidying..
| variable | why | declared for | first read at |
|---|---|---|---|
| IMMICH_MEDIA_LOCATION | the read raises when unset | — — nowhere | server/src/commands/media-location.command.ts:80 |
| IMMICH_PLUGINS_INSTALL_FOLDER | the read raises when unset | — — nowhere | server/src/dtos/env.dto.ts:56 |
| DB_DATA_LOCATION | substituted into docker/docker-compose.yml with no default | example | docker/docker-compose.yml |
| UPLOAD_LOCATION | substituted into docker/docker-compose.yml with no default | example | docker/docker-compose.yml |
| variable | declared for | read at |
|---|---|---|
| BUILD_STATS | — — nowhere | web/vite.config.ts:172 |
| DEVICE | build, ci, local, prod | machine-learning/immich_ml/config.py:49 |
The code stops when it is absent - it is read in a form that raises rather than falls back - and no env file, compose file, workflow or manifest in this repository sets it. A clean checkout cannot start.
The code stops when it is absent - it is read in a form that raises rather than falls back - and no env file, compose file, workflow or manifest in this repository sets it. A clean checkout cannot start.
Nothing raises: the value is simply empty, so whatever depends on it is quietly inactive. This is the shape of bug that reaches production, because the process starts and the tests pass.
It is declared for local and nowhere else, so the documented setup path is incomplete: someone configuring this from the example file never learns the variable exists, and whatever it controls is quietly inactive for them.
It is declared for build, ci, local, prod and nowhere else, so the documented setup path is incomplete: someone configuring this from the example file never learns the variable exists, and whatever it controls is quietly inactive for them.
It is declared for build, local and nowhere else, so the documented setup path is incomplete: someone configuring this from the example file never learns the variable exists, and whatever it controls is quietly inactive for them.
The program behaves one way when it is started directly and another way when it is started through that file. Whichever is right, one of them is a surprise waiting for whoever changes the other.
Declared for ci. No read of this name appears anywhere in the source, so setting it has no effect - which is worse than useless, because it reads as a working control.
| variable | example | local | ci | prod | build |
|---|---|---|---|---|---|
| IMMICH_MEDIA_LOCATION | no | no | no | no | no |
| IMMICH_PLUGINS_INSTALL_FOLDER | no | no | no | no | no |
| DB_DATA_LOCATION | yes | no | no | no | no |
| UPLOAD_LOCATION | yes | no | no | no | no |
| BUILD_STATS | no | no | no | no | no |
| DEVICE | no | yes | yes | yes | yes |
| variable | default | declared for | read at |
|---|---|---|---|
| APP_STORE_CONNECT_API_KEY_ID | — | ci | mobile/ios/fastlane/Fastfile:29 |
| APP_STORE_CONNECT_API_KEY_ISSUER_ID | — | ci | mobile/ios/fastlane/Fastfile:30 |
| CPU_CORES | — | — | server/bin/start.sh:46 |
| DB_DATABASE_NAME | — | example, local | server/src/dtos/env.dto.ts:73 |
| DB_HOSTNAME | — | local | server/src/bin/sync-sql.ts:77 |
| DB_PASSWORD | — | example, local | server/src/dtos/env.dto.ts:75 |
| DB_PORT | — | — | server/src/dtos/env.dto.ts:76 |
| DB_SKIP_MIGRATIONS | — | — | server/src/dtos/env.dto.ts:77 |
| DB_SSL_MODE | — | — | server/src/dtos/env.dto.ts:78 |
| DB_USERNAME | — | example, local | server/src/dtos/env.dto.ts:80 |
| DB_VECTOR_EXTENSION | — | — | server/src/dtos/env.dto.ts:81 |
| DEV_PORT | — | — | .devcontainer/server/container-common.sh:3 |
| DEV_SERVER_PORT | — | — | .devcontainer/server/container-common.sh:2 |
| EnableDirectSubmission | 0 | — | machine-learning/immich_ml/__main__.py:19 |
| IMMICH_ALLOW_EXTERNAL_PLUGINS | — | — | server/src/dtos/env.dto.ts:55 |
| IMMICH_ALLOW_SETUP | — | — | server/src/dtos/env.dto.ts:69 |
| IMMICH_API_METRICS_PORT | — | — | server/src/dtos/env.dto.ts:39 |
| IMMICH_BUILD | — | build, local | web/vite.config.ts:153 |
| IMMICH_BUILD_DATA | — | — | server/src/dtos/env.dto.ts:40 |
| IMMICH_BUILD_IMAGE | — | build, local | server/src/dtos/env.dto.ts:43 |
| IMMICH_BUILD_IMAGE_URL | — | build, local | server/src/dtos/env.dto.ts:44 |
| IMMICH_BUILD_URL | — | build, local | server/src/dtos/env.dto.ts:42 |
| IMMICH_CONFIG_FILE | — | — | server/src/dtos/env.dto.ts:45 |
| IMMICH_CONFIG_LOGGING_LEVEL | — | — | server/src/main.ts:165 |
| IMMICH_ENV | — | build, local | server/src/dtos/env.dto.ts:48 |
| IMMICH_HELMET_FILE | — | — | server/src/dtos/env.dto.ts:47 |
| IMMICH_HOST | — | — | machine-learning/immich_ml/config.py:94 |
| IMMICH_IGNORE_MOUNT_CHECK_ERRORS | — | local | server/src/dtos/env.dto.ts:50 |
| IMMICH_LOG_FORMAT | — | — | server/src/dtos/env.dto.ts:52 |
| IMMICH_LOG_LEVEL | — | — | machine-learning/immich_ml/config.py:96 |
| IMMICH_MICROSERVICES_METRICS_PORT | — | — | server/src/dtos/env.dto.ts:54 |
| IMMICH_PORT | — | local | machine-learning/immich_ml/config.py:95 |
| IMMICH_PROCESS_INVALID_IMAGES | — | — | server/src/services/media.service.ts:275 |
| IMMICH_REPOSITORY | — | build, local | server/src/dtos/env.dto.ts:58 |
| IMMICH_REPOSITORY_URL | — | build, local | server/src/dtos/env.dto.ts:59 |
| IMMICH_SERVER_URL | http://immich-server:2283/ | local | web/vite.config.ts:107 |
| IMMICH_SOURCE_COMMIT | — | build, local | server/src/dtos/env.dto.ts:61 |
| IMMICH_SOURCE_REF | — | build, local | machine-learning/immich_ml/__main__.py:9 |
| IMMICH_SOURCE_URL | — | build, local | server/src/dtos/env.dto.ts:62 |
| IMMICH_TELEMETRY_EXCLUDE | — | — | server/src/dtos/env.dto.ts:64 |
| IMMICH_TELEMETRY_INCLUDE | — | local | server/src/dtos/env.dto.ts:63 |
| IMMICH_THIRD_PARTY_BUG_FEATURE_URL | — | local | server/src/dtos/env.dto.ts:66 |
| IMMICH_THIRD_PARTY_DOCUMENTATION_URL | — | local | server/src/dtos/env.dto.ts:67 |
| IMMICH_THIRD_PARTY_SOURCE_URL | — | local | server/src/dtos/env.dto.ts:65 |
| IMMICH_THIRD_PARTY_SUPPORT_URL | — | local | server/src/dtos/env.dto.ts:68 |
| IMMICH_TRUSTED_PROXIES | — | — | server/src/dtos/env.dto.ts:70 |
| IMMICH_WORKERS_EXCLUDE | — | — | server/src/dtos/env.dto.ts:72 |
| IMMICH_WORKERS_INCLUDE | — | — | server/src/dtos/env.dto.ts:71 |
| MACHINE_LEARNING_ANN | — | — | machine-learning/immich_ml/config.py:72 |
| MACHINE_LEARNING_ANN_FP16_TURBO | — | — | machine-learning/immich_ml/config.py:73 |
| MACHINE_LEARNING_ANN_TUNING_LEVEL | — | — | machine-learning/immich_ml/config.py:74 |
| MACHINE_LEARNING_CACHE_FOLDER | — | — | machine-learning/immich_ml/config.py:60 |
| MACHINE_LEARNING_DEVICE_ID | 0 | — | machine-learning/immich_ml/config.py:88 |
| MACHINE_LEARNING_DEVICE_IDS | 0 | — | machine-learning/immich_ml/gunicorn_conf.py:8 |
| MACHINE_LEARNING_HTTP_KEEPALIVE_TIMEOUT_S | — | — | machine-learning/immich_ml/config.py:65 |
| MACHINE_LEARNING_MAX_BATCH_SIZE | — | — | machine-learning/immich_ml/config.py:78 |
| MACHINE_LEARNING_MODEL_ARENA | — | build | machine-learning/immich_ml/config.py:71 |
| MACHINE_LEARNING_MODEL_INTER_OP_THREADS | — | — | machine-learning/immich_ml/config.py:69 |
| MACHINE_LEARNING_MODEL_INTRA_OP_THREADS | — | — | machine-learning/immich_ml/config.py:70 |
| MACHINE_LEARNING_MODEL_ORGANIZATION | — | — | machine-learning/immich_ml/config.py:79 |
| MACHINE_LEARNING_MODEL_REVISION | — | — | machine-learning/immich_ml/config.py:80 |
| MACHINE_LEARNING_MODEL_TTL | — | — | machine-learning/immich_ml/config.py:61 |
| MACHINE_LEARNING_MODEL_TTL_POLL_S | — | — | machine-learning/immich_ml/config.py:62 |
| MACHINE_LEARNING_PRELOAD | — | — | machine-learning/immich_ml/config.py:77 |
| MACHINE_LEARNING_REQUEST_THREADS | — | — | machine-learning/immich_ml/config.py:68 |
| MACHINE_LEARNING_RKNN | — | — | machine-learning/immich_ml/config.py:75 |
| MACHINE_LEARNING_RKNN_THREADS | — | — | machine-learning/immich_ml/config.py:76 |
| MACHINE_LEARNING_TEST_FULL | — | — | machine-learning/immich_ml/config.py:66 |
| MACHINE_LEARNING_TEST_PROVIDER | — | ci | machine-learning/immich_ml/config.py:67 |
| MACHINE_LEARNING_WORKERS | — | — | machine-learning/immich_ml/config.py:63 |
| MACHINE_LEARNING_WORKER_TIMEOUT | — | — | machine-learning/immich_ml/config.py:64 |
| MIMALLOC_PURGE_DELAY | — | — | server/bin/start.sh:22 |
| NEOReadDebugKeys | 1 | — | machine-learning/immich_ml/__main__.py:18 |
| ORT_DISABLE_TELEMETRY | 1 | — | machine-learning/immich_ml/__init__.py:3 |
| PUBLIC_IMMICH_BUY_HOST | https://buy.immich.app | — | web/vite.config.ts:122 |
| PUBLIC_IMMICH_PAY_HOST | https://pay.futo.org | — | web/vite.config.ts:123 |
| REDIS_DBINDEX | — | — | server/src/dtos/env.dto.ts:85 |
| REDIS_HOSTNAME | — | — | server/src/dtos/env.dto.ts:83 |
| REDIS_PORT | — | — | server/src/dtos/env.dto.ts:84 |
| REDIS_SOCKET | — | — | server/src/dtos/env.dto.ts:88 |
| REDIS_USERNAME | — | — | server/src/dtos/env.dto.ts:86 |
| SVELTE_ESLINT_PARSER_EXPERIMENTAL_TS_SYS_HOOK | — | — | web/lint-env.js:5 |
| period | — | — | server/bin/get-cpus.sh:40 |
| quota | — | — | server/bin/get-cpus.sh:40 |