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: RabbitMq__Uri=amqp://....
Full example link
{
"Logging": {
"LogLevel": {
"Default": "Information"
}
},
"ConnectionStrings": {
"Postgres": "Host=localhost;Port=26257;Database=photostand;Username=root;SSL Mode=Disable"
},
"RabbitMq": {
"Uri": "amqp://guest:guest@localhost:5672"
},
"MinIO": {
"Endpoint": "localhost:9000",
"AccessKey": "minioadmin",
"SecretKey": "minioadmin",
"UseSSL": false,
"Bucket": "photostand"
},
"Watchdog": {
"IntervalMinutes": 5,
"StaleThresholdMinutes": 5,
"MaxRetries": 3
}
}
Reference link
ConnectionStrings link
| Key | Type | Default | Description |
|---|
Postgres | string | required | PostgreSQL / CockroachDB connection string |
RabbitMq link
| Key | Type | Default | Description |
|---|
Uri | string | required | RabbitMQ connection URI (e.g. amqp://guest:guest@localhost:5672) |
| 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 | Bucket that holds the photos |
Watchdog link
| Key | Type | Default | Description |
|---|
IntervalMinutes | int | 5 | How often the watchdog runs (in minutes) |
StaleThresholdMinutes | int | 5 | A job in printing state for longer than this is considered stuck |
MaxRetries | int | 3 | Number of requeue attempts before a stuck job is marked as error |
| Key | Values | Default | Description |
|---|
LogLevel.Default | Debug, Information, Warning, Error | Information | Minimum log level |