mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-05-01 08:41:09 +00:00
33 lines
952 B
TOML
33 lines
952 B
TOML
# The example configuration file, required options are documented as
|
|
# `(Required)`, other options are optional and the example value given here is
|
|
# the default value.
|
|
|
|
[database]
|
|
# The path to the main SQLite database.
|
|
# The file will be created and initialized if not exist, but missing directory
|
|
# will not.
|
|
path = "/var/lib/blahd/db.sqlite"
|
|
|
|
[server]
|
|
|
|
# (Required)
|
|
# The socket address to listen on.
|
|
listen = "localhost:8080"
|
|
|
|
# (Required)
|
|
# 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"
|
|
|
|
# Maximum number of items in a single response, eg. get chat items.
|
|
# More items will be paged.
|
|
max_page_len = 1024
|
|
|
|
# Maximum request body length in bytes.
|
|
max_request_len = 4096
|
|
|
|
# Maximum length of a single event queue.
|
|
event_queue_len = 1024
|
|
|
|
# The maximum timestamp tolerance in seconds for request validation.
|
|
timestamp_tolerance_secs = 90
|