# im configuration. This file is committed as the example. The live file is config/im.toml (gitignored), # and it is created from this one on first run when it is missing. Secrets never go in this file: enter # them in the admin UI, where they are sealed in the database. # SQLite-format database. Relative paths are relative to the working directory. database = "data/im.db" # Holds the instance key (im.key), photos and backups. Created with mode 0700 when missing. data_dir = "data" # Address the HTTP server binds to. Put a TLS-terminating reverse proxy in front of it in production. listen = "127.0.0.1:7650" # Public origin, with no trailing slash. This is the OpenID issuer and the origin of links in mail. base_url = "http://localhost:7650" # Proxies whose X-Forwarded-For header is believed, as addresses or CIDR networks. Empty means the # TCP peer is always the client address. Behind a reverse proxy on the same host, set ["127.0.0.1/32"]: # left empty there, every visitor counts as 127.0.0.1, and one visitor's failed sign-ins throttle all. trusted_proxies = [] [mail] # Reserved. Has no effect yet: mail is always queued and sent through [smtp]. log_only = true [backup] # Directory for scheduled backups. Empty turns them off. dir = "" # Hours between two scheduled backups. At least 1. interval_hours = 24 # Snapshot sets kept. At least 1. keep = 7 # Dead-man URL pinged after each run. Empty for none. healthcheck_url = "" [policy] # An administrator without two-factor sign-in is sent to enrol it after signing in. require_2fa_for_admins = true # Sessions one person may hold at once. The oldest is ended when a new sign-in would exceed it. max_sessions = 10 # Hard cap of a browser session, in days from sign-in. Sessions are extended while they are used, up to this. session_max_days = 30 # Days an invitation stays usable. Between 1 and 30. invite_days = 7 # Minutes a password-reset link stays usable. Between 5 and 1440. reset_minutes = 60 # Hours both halves of an email change stay usable. Between 1 and 168. email_change_hours = 24 [smtp] # Host of the submission server. Empty means no sender: mail waits in the outbox and no attempt is spent. host = "" # 465 for implicit TLS, 587 for STARTTLS. port = 465 # "implicit", "starttls", or "none" (none is refused unless host is localhost). tls = "implicit" # Login name. Empty for a relay that needs no login. username = "" # File with the password, first line only. Must not be readable by group or others. password_file = "" # Address mail is sent from. from = "" # Display name of the sender. from_name = "im"