im
Clone
https://git.tahinli.com/Tahinli/im.git
0 watching0 forksRustAGPL-3.0542.8 KiBb9f0726Tahinli27 days ago34 commits
| 1 | # im configuration. This file is committed as the example. The live file is config/im.toml (gitignored), |
| 2 | # and it is created from this one on first run when it is missing. Secrets never go in this file: enter |
| 3 | # them in the admin UI, where they are sealed in the database. |
| 4 | |
| 5 | # SQLite-format database. Relative paths are relative to the working directory. |
| 6 | database = "data/im.db" |
| 7 | |
| 8 | # Holds the instance key (im.key), photos and backups. Created with mode 0700 when missing. |
| 9 | data_dir = "data" |
| 10 | |
| 11 | # Address the HTTP server binds to. Put a TLS-terminating reverse proxy in front of it in production. |
| 12 | listen = "127.0.0.1:7650" |
| 13 | |
| 14 | # Public origin, with no trailing slash. This is the OpenID issuer and the origin of links in mail. |
| 15 | base_url = "http://localhost:7650" |
| 16 | |
| 17 | # Proxies whose X-Forwarded-For header is believed, as addresses or CIDR networks. Empty means the |
| 18 | # TCP peer is always the client address. Behind a reverse proxy on the same host, set ["127.0.0.1/32"]: |
| 19 | # left empty there, every visitor counts as 127.0.0.1, and one visitor's failed sign-ins throttle all. |
| 20 | trusted_proxies = [] |
| 21 | |
| 22 | [mail] |
| 23 | # Reserved. Has no effect yet: mail is always queued and sent through [smtp]. |
| 24 | log_only = true |
| 25 | |
| 26 | [backup] |
| 27 | # Directory for scheduled backups. Empty turns them off. |
| 28 | dir = "" |
| 29 | # Hours between two scheduled backups. At least 1. |
| 30 | interval_hours = 24 |
| 31 | # Snapshot sets kept. At least 1. |
| 32 | keep = 7 |
| 33 | # Dead-man URL pinged after each run. Empty for none. |
| 34 | healthcheck_url = "" |
| 35 | |
| 36 | [policy] |
| 37 | # An administrator without two-factor sign-in is sent to enrol it after signing in. |
| 38 | require_2fa_for_admins = true |
| 39 | # Sessions one person may hold at once. The oldest is ended when a new sign-in would exceed it. |
| 40 | max_sessions = 10 |
| 41 | # Hard cap of a browser session, in days from sign-in. Sessions are extended while they are used, up to this. |
| 42 | session_max_days = 30 |
| 43 | # Days an invitation stays usable. Between 1 and 30. |
| 44 | invite_days = 7 |
| 45 | # Minutes a password-reset link stays usable. Between 5 and 1440. |
| 46 | reset_minutes = 60 |
| 47 | # Hours both halves of an email change stay usable. Between 1 and 168. |
| 48 | email_change_hours = 24 |
| 49 | |
| 50 | [smtp] |
| 51 | # Host of the submission server. Empty means no sender: mail waits in the outbox and no attempt is spent. |
| 52 | host = "" |
| 53 | # 465 for implicit TLS, 587 for STARTTLS. |
| 54 | port = 465 |
| 55 | # "implicit", "starttls", or "none" (none is refused unless host is localhost). |
| 56 | tls = "implicit" |
| 57 | # Login name. Empty for a relay that needs no login. |
| 58 | username = "" |
| 59 | # File with the password, first line only. Must not be readable by group or others. |
| 60 | password_file = "" |
| 61 | # Address mail is sent from. |
| 62 | from = "" |
| 63 | # Display name of the sender. |
| 64 | from_name = "im" |