all repos — weimar @ 3d9ddf2add48689bb513ed4f59a427849dfe0805

Unnamed repository; edit this file 'description' to name the repository.

configs/example.toml (view raw)

 1# weimar configuration — all fields have sensible defaults.
 2# Config file is optional; every value can also be set via WEIMAR_* env vars.
 3#
 4#   weimar serve --config weimar.toml
 5#   WEIMAR_SERVER_PORT=9090 weimar serve
 6
 7[server]
 8# Address and port to listen on.
 9host = "0.0.0.0"
10port = 8080
11
12# Set to true when weimar is behind a TLS-terminating reverse proxy
13# (e.g. Caddy, nginx). Enables the Secure flag on session cookies.
14behind_proxy = false
15
16# Site title shown in the navigation bar and browser tab.
17site_title = "weimar"
18
19# Path to a custom favicon file (.svg, .png, .jpg, .ico — any format works).
20# If not set, the default "w" favicon is used.
21# favicon_path = "/path/to/favicon.png"
22
23# Path to a logo image displayed in the top-left nav bar.
24# If not set, the site_title is shown as text instead.
25# logo_path = "/path/to/logo.png"
26
27[database]
28# Path to the SQLite database file (created automatically).
29path = "./data/weimar.db"
30
31[storage]
32# Directory where uploaded files and thumbnails are stored.
33path = "./data/images"
34
35[upload]
36# Maximum file size in megabytes for uploads.
37max_size_mb = 50
38
39# Rate limit for uploads per minute (0 = unlimited).
40rate_limit_per_minute = 0
41
42[auth]
43# Allow anyone to register an account via the web form.
44allow_registration = true
45
46# Require authentication to browse the gallery.
47require_auth_for_browse = false