forge
Explore
Log in

Don't you dare go Hollow

im

Clone
★ 0

0 watching0 forksRustAGPL-3.0542.8 KiBb9f0726Tahinli27 days ago34 commits

im.example.toml64 lines, 2.5 KiBHistoryRawDownload
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.
6database = "data/im.db"
7
8# Holds the instance key (im.key), photos and backups. Created with mode 0700 when missing.
9data_dir = "data"
10
11# Address the HTTP server binds to. Put a TLS-terminating reverse proxy in front of it in production.
12listen = "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.
15base_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.
20trusted_proxies = []
21
22[mail]
23# Reserved. Has no effect yet: mail is always queued and sent through [smtp].
24log_only = true
25
26[backup]
27# Directory for scheduled backups. Empty turns them off.
28dir = ""
29# Hours between two scheduled backups. At least 1.
30interval_hours = 24
31# Snapshot sets kept. At least 1.
32keep = 7
33# Dead-man URL pinged after each run. Empty for none.
34healthcheck_url = ""
35
36[policy]
37# An administrator without two-factor sign-in is sent to enrol it after signing in.
38require_2fa_for_admins = true
39# Sessions one person may hold at once. The oldest is ended when a new sign-in would exceed it.
40max_sessions = 10
41# Hard cap of a browser session, in days from sign-in. Sessions are extended while they are used, up to this.
42session_max_days = 30
43# Days an invitation stays usable. Between 1 and 30.
44invite_days = 7
45# Minutes a password-reset link stays usable. Between 5 and 1440.
46reset_minutes = 60
47# Hours both halves of an email change stay usable. Between 1 and 168.
48email_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.
52host = ""
53# 465 for implicit TLS, 587 for STARTTLS.
54port = 465
55# "implicit", "starttls", or "none" (none is refused unless host is localhost).
56tls = "implicit"
57# Login name. Empty for a relay that needs no login.
58username = ""
59# File with the password, first line only. Must not be readable by group or others.
60password_file = ""
61# Address mail is sent from.
62from = ""
63# Display name of the sender.
64from_name = "im"