# 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. # Please edit this with your instance's public address. #api_client_user_agent = "Blindforge (https://git.zoai.re/tuxmain/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 # Files that are served when showing a directory (separated by colon `:`, in order of decreasing priority) #default_files = "README.md:README.MD:readme.md:README.txt:README.TXT:readme.txt:README:readme" # Maximum number of rendered webpages to keep in cache #page_cache_size = 200 # Maximum number of repository trees to keep in cache #repo_cache_size = 20 # File extensions that will be served as images (and associated MIME type) #image_extensions = {ani="image/x-icon", apng="image/apng", bmp="image/bmp", cur="image/x-icon", gif="image/gif", ico="image/x-icon", jpeg="image/jpeg", jpg="image/jpeg", jxl="image/jxl", png="image/png", qoi="image/qoi", tif="image/tiff", tiff="image/tiff", webp="image/webp"} # File extensions that will be served as videos (and associated MIME type) #video_extensions = {3gp="video/3gp", avi="video/x-msvideo", mkv="application/x-matroska", mp4="video/mp4", mpeg="video/mpeg", ogv="video/ogg", webm="video/webm"} # File extensions that will be served as audio (and associated MIME type) #audio_extensions = {aac="audio/aac", flac="audio/flac", m4a="audio/mp4", m4b="audio/mp4", m4p="audio/mp4", m4r="audio/mp4", m4v="audio/mp4", mp3="audio/mp3", oga="audio/ogg", ogg="audio/ogg", opus="audio/opus", spx="audio/x-speex", wav="audio/x-wav", wave="audio/x-wav", wma="audio/x-ms-wma"} # Authorized origin for serving inline files (CORS) # You should set your instance's address (e.g. "https://domain.tld") # to prevent people using your server as a CDN. #origin = "*"