# Taper server settings. Copy to /etc/taper/taper.env and edit. deploy/README.md # installs it as mode 0640, owner root, group taper (the service account), so # the server can read it and other users can't. # Everything here is a secret or identifies your server: don't publish it. # Your server name: the part after the colon in user IDs (@alice:example.org). # It can't be changed later. TAPER_SERVER_NAME=example.org HOST=0.0.0.0 PORT=443 # The gateway path is a secret: users get it in their invite link, and # without it the server looks like an ordinary website. Generate one with # echo /$(head -c 24 /dev/urandom | base64 | tr '+/' '-_') TAPER_GATEWAY_PATH=/REPLACE-WITH-A-RANDOM-PATH # Optional: your own website, shown to everyone without the path. #TAPER_COVER_DIR=/srv/www # Optional: federation with servers you have agreed to federate with # (comma-separated name=wss://host/their-federation-path). With it, set a # secret federation path of your own and give it only to those servers. #TAPER_FEDERATION_PEERS=other.example=wss://other.example/THEIR-SECRET-PATH #TAPER_FEDERATION_PATH=/REPLACE-WITH-ANOTHER-RANDOM-PATH # Proof-of-work difficulty for registration (default 20 bits, about a second). #TAPER_REGISTER_POW_BITS=20 # Require a single-use invite token (created via `admin.js invite`) to register. # The server stores only the SHA-256 hash and expiry of each unused token. #TAPER_INVITE_ONLY=0 # Anti-OTK-exhaustion caps per 5-minute window: per requester/target device # (default 4) and total across all requesters/peers per target device (default 16). #TAPER_OTK_CLAIM_LIMIT=4 #TAPER_OTK_DEVICE_LIMIT=16 # Pre-auth WebSocket connection cap (default 256) and global in-RAM media cap # across all users in bytes (default 256 MiB). #TAPER_MAX_UNAUTH_CONNS=256 #TAPER_MAX_MEDIA_TOTAL_BYTES=268435456 # Minimum per-room t.room.retention max_lifetime in ms (default 60000 = 1 min; # prevents instant history wipes). #TAPER_MIN_RETENTION_MS=60000 # Federation key pinning: by default a peer's signing key is pinned on first # use and may only change with a cryptographic rotation proof in old_verify_keys. # Set to 1 only for ephemeral test peers that regenerate keys on restart. #TAPER_FEDERATION_TRUST_ROTATION=0 # Serve /.well-known/taper/client, which reveals the gateway path to anyone. # Off by default with TLS; turn it on only if you don't need to hide. #TAPER_WELL_KNOWN=0 # Largest file a user can upload, in bytes (default 16 MiB). #TAPER_MAX_MEDIA_BYTES=16777216 # Federation: how long each short-lived request key is used before it is # retired and its private key published (deniability). Default 7 days. #TAPER_REQUEST_KEY_PERIOD_MS=604800000 # Operator command line (server/admin.js): the server makes a Unix socket here, # with mode 0600. With the systemd unit, also add RuntimeDirectory=taper (see # deploy/README.md). Unset: no admin socket. #TAPER_ADMIN_SOCKET=/run/taper/admin.sock # Security keys. A directory of attestation root certificates (*.pem, *.crt) # that you trust. Empty by default, and the server ships none: until you set # it, every security key counts as "unattested". #TAPER_WEBAUTHN_ROOTS=/etc/taper/webauthn-roots # Optional: only these sites may use security keys (comma-separated origins). #TAPER_WEBAUTHN_ORIGINS=https://example.org # Dead man's switch (docs/dead-mans-switch.md). The command mode # (admin.js decommission) works whenever the admin socket is on. The rest # needs an operators file. Read the warnings in that document first. #TAPER_DMS_OPERATORS=/etc/taper/operators #TAPER_DMS_QUORUM=2 #TAPER_DMS_WINDOW_MS=3600000 # Dead hand: off unless set. Example: wipe after 14 days without a check-in # plus a 3-day grace period. #TAPER_DMS_DEADHAND_MS=1209600000 #TAPER_DMS_GRACE_MS=259200000 #TAPER_DMS_DURESS_DELAY_MS=900000 # Secret path for orders over the network (at least 22 random characters). #TAPER_DMS_PATH=/REPLACE-WITH-A-RANDOM-PATH # Also destroy these (TLS key, onion service directory), separated by ':'. # taper.service makes /etc/taper read-only (ReadOnlyPaths=/etc/taper), so a # TLS key there cannot be shredded: keep it elsewhere, or relax that line. #TAPER_DMS_WIPE_PATHS=/etc/taper/tls/privkey.pem:/var/lib/tor/taper