aplbrain / bossphorus

A BossDB-like volumetric datastore in Rust
Apache License 2.0
1 stars 1 forks source link

Add config module. #2

Closed movestill closed 4 years ago

movestill commented 4 years ago

Move config code out of main.rs and add support for configuring bossphorust custom values via environment variables.

First check BOSSHOST environment variable before looking in Rocket.toml. This will let users run bossphorust in a Docker container and still be able to change the Boss DB w/o rebuilding the Docker image.