aplbrain / aplbrain/bossphorus

Allow user to configure the DataManager stack they want to run

Aberta
#11 3 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Rust
Estrelas
1
Forks
1
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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?

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.