Use configuration file to simplify CLI

This commit is contained in:
oxalica 2024-08-31 00:53:53 -04:00
parent 4937502d4c
commit abdc32b51f
6 changed files with 123 additions and 35 deletions

13
blahd/config.example.toml Normal file
View file

@ -0,0 +1,13 @@
[database]
# The path to the main SQLite database.
# It will be created and initialized if not exist.
path = "/path/to/db.sqlite"
[server]
# The socket address to listen on.
listen = "localhost:8080"
# The global absolute URL prefix where this service is hosted.
# It is for link generation and must not have trailing slash.
base_url = "http://localhost:8080"