# weimar configuration — all fields have sensible defaults. # Config file is optional; every value can also be set via WEIMAR_* env vars. # # weimar serve --config weimar.toml # WEIMAR_SERVER_PORT=9090 weimar serve [server] # Address and port to listen on. host = "0.0.0.0" port = 8080 # Set to true when weimar is behind a TLS-terminating reverse proxy # (e.g. Caddy, nginx). Enables the Secure flag on session cookies. behind_proxy = false # Site title shown in the navigation bar and browser tab. site_title = "weimar" # Path to a custom favicon file (.svg, .png, .jpg, .ico — any format works). # If not set, the default "w" favicon is used. # favicon_path = "/path/to/favicon.png" # Path to a logo image displayed in the top-left nav bar. # If not set, the site_title is shown as text instead. # logo_path = "/path/to/logo.png" [database] # Path to the SQLite database file (created automatically). path = "./data/weimar.db" [storage] # Directory where uploaded files and thumbnails are stored. path = "./data/images" [upload] # Maximum file size in megabytes for uploads. max_size_mb = 50 # Rate limit for uploads per minute (0 = unlimited). rate_limit_per_minute = 0 [auth] # Allow anyone to register an account via the web form. allow_registration = true # Require authentication to browse the gallery. require_auth_for_browse = false