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