Split out socket config and switch back to toml crate

basic-toml does not support externally-tagged enum yet.

See: https://github.com/dtolnay/basic-toml/issues/8
This commit is contained in:
oxalica 2024-09-09 01:26:46 -04:00
parent 4f0f1405dc
commit c5263c607c
7 changed files with 92 additions and 48 deletions

View file

@ -16,12 +16,12 @@ path = "/var/lib/blahd/db.sqlite"
# Note that parent directory will never be created and must already exist.
create = true
[server]
[listen]
# (Required)
# The socket address to listen on.
listen = "localhost:8080"
# The local address to listen on.
address = "localhost:8080"
[server]
# (Required)
# The global absolute URL prefix where this service is hosted.
# It is for link generation and must not have trailing slash.