On this page
Configuration
Configuration is loaded from appsettings.json, overridden by appsettings.{Environment}.json, then by appsettings.local.json (not committed), and finally by environment variables.
Environment variables use __ as the section separator: Watcher__StandId=stand-1.
Full example
{
"Logging": {
"LogLevel": {
"Default": "Information"
}
},
"Watcher": {
"Path": "/path/to/watch",
"StandId": "stand-1",
"ProcessedPath": "/path/to/processed",
"FailedPath": "/path/to/failed"
},
"Resize": {
"MaxWidth": 800,
"MaxHeight": 800
},
"Storage": {
"Endpoint": "localhost:9000",
"AccessKey": "minioadmin",
"SecretKey": "minioadmin",
"UseSSL": false,
"Bucket": "photos",
"FullPrefix": "full",
"LowPrefix": "low",
"RetryInitialDelayMs": 1000,
"RetryMaxDelayMs": 60000
}
}
Reference
Watcher
| Key | Type | Default | Description |
|---|---|---|---|
Path | string | required | Directory to watch for .jpg files |
StandId | string | required | Identifier prepended to each photo key ({StandId}-{UUID}.jpg) |
ProcessedPath | string | required | Destination folder for successfully processed files |
FailedPath | string | required | Destination folder for files that failed processing |
Resize
| Key | Type | Default | Description |
|---|---|---|---|
MaxWidth | int | 800 | Maximum width in pixels for the low-resolution version |
MaxHeight | int | 800 | Maximum height in pixels for the low-resolution version |
If the original image is smaller than the configured maximum, it is not upscaled.
Storage
| Key | Type | Default | Description |
|---|---|---|---|
Endpoint | string | required | MinIO endpoint, without scheme (e.g. localhost:9000) |
AccessKey | string | required | MinIO access key |
SecretKey | string | required | MinIO secret key |
UseSSL | bool | false | Whether to connect over HTTPS |
Bucket | string | required | Target bucket name |
FullPrefix | string | required | Object prefix for full-resolution uploads (e.g. full) |
LowPrefix | string | required | Object prefix for low-resolution uploads (e.g. low) |
RetryInitialDelayMs | int | 1000 | Initial delay in milliseconds before the first retry |
RetryMaxDelayMs | int | 60000 | Maximum delay in milliseconds between retries (exponential backoff cap) |
Logging
| Key | Values | Default | Description |
|---|---|---|---|
LogLevel.Default | Debug, Information, Warning, Error | Information | Minimum log level. Use Debug to see all processing steps |