aplbrain / aplbrain/bossphorus

Allow user to configure the DataManager stack they want to run

Ouverte
#11 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Rust
Étoiles
1
Forks
1
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

I'm thinking we should make the binary configurable in a file, but with sane defaults. Something like:

`config.yml`
```yml
port: 8090
cache: "LRU"

usage_manager: "console"

data_managers:

- ChunkedFileDataManager:
upload_path: "uploads/"

- BossDBRelayDataManager:
host: "bossdb.io"
protocol: "https"
token: "public"
```

And callable with `bossphorus --config config.yml`

In particular, I think being able to specify which data managers are used and in which order is something users may want to be able to do at runtime, which is perhaps a bit more complicated than the current env-variable technique allows.

@movestill thoughts?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.