Proper configuration options #3

Closed
opened 2025-03-04 19:26:25 +00:00 by Jef Roosens · 0 comments

Otter should be configurable using a config TOML file, environment variables and CLI arguments.

Using the figment library,
we can define a hierarchical configuration system. Environment variables should
overwrite config file variables, and CLI arguments should overwrite both.

The Dockerfile should be configured using environment variables to run a
standard SQLite server running on 0.0.0.0:8000. This would make it
plug-n-play without needing configuration.

Otter should be configurable using a config TOML file, environment variables and CLI arguments. Using the [figment](https://docs.rs/figment/latest/figment/index.html) library, we can define a hierarchical configuration system. Environment variables should overwrite config file variables, and CLI arguments should overwrite both. The Dockerfile should be configured using environment variables to run a standard SQLite server running on `0.0.0.0:8000`. This would make it plug-n-play without needing configuration.
Jef Roosens added the
enhancement
label 2025-03-04 19:26:25 +00:00
Jef Roosens self-assigned this 2025-03-04 19:26:25 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Chewing_Bever/otter#3
There is no content yet.