mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-07-05 13:55:33 +00:00
Use configuration file to simplify CLI
This commit is contained in:
parent
4937502d4c
commit
abdc32b51f
6 changed files with 123 additions and 35 deletions
13
blahd/config.example.toml
Normal file
13
blahd/config.example.toml
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue