Config TOML, CLI options

This commit is contained in:
Pascal Engélibert 2026-03-14 10:50:03 +01:00
commit da6fb1c3c8
5 changed files with 189 additions and 2 deletions

31
example_config.toml Normal file
View file

@ -0,0 +1,31 @@
# This is an example config file for blindforge.
# It contains all default values in comments.
# The server will listen to this address.
#listen_host = "127.0.0.1"
# The server will listen to this port.
#listen_port = 44617
# Server's permanent data will be stored in this directory.
#data_dir = "/var/lib/blindforge"
data_dir = "/dev/shm/blindforge"
# Client will connect to the Git forge API using this User-Agent.
#api_client_user_agent = "Blindforge"
# Client will download at most this number of pages.
#api_client_max_page = 32
# Maximum number of entries (files and directories) in a repository.
#max_entries = 1024
# Bigger files in repositories will be omitted. (bytes)
# Default: 8 MB
#max_file_size = 8388608
# Files with a longer path in a repository will be omitted. (characters)
#max_file_path_len = 8192
# Maximum length of an URL for the client. (characters)
#api_client_max_url_len = 256