in
Clone
https://git.tahinli.com/Tahinli/in.git
0 watching0 forksRustAGPL-3.0528.7 KiB9215377Tahinli27 days ago37 commits
| 1 | # in: file configuration. Copy this to config/in.toml, or let `in` create it on first run. |
| 2 | # Secrets are never written here. The OIDC client secret and the S3 keys are read from files or |
| 3 | # entered in the admin UI. |
| 4 | |
| 5 | # Database file (Turso). Relative paths are relative to the working directory. Created with mode 0600, and |
| 6 | # outside data_dir the data-directory lock and restore do not cover it. |
| 7 | database = "data/in.db" |
| 8 | # Directory for blobs, staging files, the instance key (in.key) and caches. Created with mode 0700. |
| 9 | data_dir = "data" |
| 10 | # Address the HTTP server binds to. Put a TLS reverse proxy in front of it for public use. |
| 11 | listen = "127.0.0.1:7655" |
| 12 | # Public URL of this instance, with no trailing slash. An https URL turns on Secure cookies and HSTS. Plain |
| 13 | # http is accepted only for a loopback host (localhost, 127.0.0.0/8, ::1). |
| 14 | base_url = "http://127.0.0.1:7655" |
| 15 | # Proxies whose X-Forwarded-For header is believed for client addresses. CIDR ranges or bare addresses. |
| 16 | # Behind Ferron on the same host, set ["127.0.0.1/32"]; left empty there, every visitor counts as 127.0.0.1. |
| 17 | trusted_proxies = [] |
| 18 | |
| 19 | # Sign-in through im (OpenID Connect). Point issuer at the im instance you run (its origin, no |
| 20 | # trailing slash; http only for a loopback host). The client secret is read from client_secret_file at |
| 21 | # boot; it is never in this file, and the file must not be readable by group or world (mode 0600). |
| 22 | [oidc] |
| 23 | issuer = "http://127.0.0.1:7650" |
| 24 | client_id = "in" |
| 25 | client_secret_file = "data/oidc_client_secret" |
| 26 | |
| 27 | [storage] |
| 28 | backend = "local" |
| 29 | |
| 30 | # To store blobs in an S3-compatible bucket instead, use backend = "s3" and this table. The credential files |
| 31 | # must not be readable by group or world (mode 0600); the endpoint follows the same rules as base_url. |
| 32 | # [storage.s3] |
| 33 | # endpoint = "https://<account>.r2.cloudflarestorage.com" # omit for AWS |
| 34 | # region = "auto" |
| 35 | # bucket = "in-blobs" |
| 36 | # access_key_id_file = "/etc/in/s3_access_key_id" |
| 37 | # secret_access_key_file = "/etc/in/s3_secret_access_key" |
| 38 | |
| 39 | # Defaults the admin page may override at run time. Each value is optional; an absent one uses the built-in |
| 40 | # default. The admin page shows where each value comes from: set there, set here, or the built-in default. |
| 41 | # [limits] |
| 42 | # default_quota_bytes = 10737418240 # quota of a new person (10 GiB) |
| 43 | # default_service_quota_bytes = 10737418240 # quota of a new service (10 GiB) |
| 44 | # purge_after_days = 30 # days before trash is purged |
| 45 | # max_upload_bytes = 53687091200 # largest upload (50 GiB) |
| 46 | # link_max_days = 365 # longest share link |
| 47 | |
| 48 | # Optional scheduled backups (a snapshot plus a blob manifest). Omit this table to disable them. |
| 49 | # [backup] |
| 50 | # dir = "data/backups" |
| 51 | # interval_hours = 24 |
| 52 | # keep = 7 |
| 53 | # healthcheck_url = "https://hc-ping.example/uuid" |