Self-hostingReference
Settings reference
Every setting has one name, whichever way you run Fluxer. A setting without a default is off, or Fluxer works out its value from the other settings.
Where settings go
Section titled "Where settings go"| How you run Fluxer | Where settings go |
|---|---|
| Docker without rexctl | fluxer.env |
| systemd without rexctl | /etc/ |
| Kubernetes | Under config in the Helm chart |
| rexctl | rexctl config set |
Required
Section titled "Required"Only this setting is required. Fluxer makes its own passwords and keys when it first starts.
FLUXER_DOMAIN- The domain or IP address Fluxer runs on. rexctl also calls it
domain.
First admin account
Section titled "First admin account"Fluxer creates the setup token on its first start. fluxerd setup-token prints it.
FLUXER_SETUP_TOKEN- The token the setup wizard asks for before it creates the first admin account. Use 32 to 256 printable characters, such as the output of
openssl rand -hex 32. When it's empty, Fluxer creates one on its first start, andfluxerd setup-tokenprints it. Keep it secret.
Passwords and keys
Section titled "Passwords and keys"Fluxer creates these on its first start and keeps them in its data folder, so backups have them too. Set one only to replace the value Fluxer made, and treat every backup as secret.
FLUXER_ACTIVITYPUB_ SIGNING_ KEY_ BASE64 - The RSA private key the unfurl service signs ActivityPub requests with when it builds link previews for fediverse posts. Use base64 DER in PKCS#8 or PKCS#1 form. When it's empty, the unfurl service makes those requests unsigned. Keep it secret.
FLUXER_ADMIN_OAUTH_CLIENT_SECRET- The OAuth2 client secret the admin panel uses to sign in through the API. Keep it secret.
FLUXER_ADMIN_SECRET_KEY_BASE- The key the admin panel signs its sessions, CSRF tokens and OAuth state with. Changing it signs everyone out of the admin panel. Keep it secret.
FLUXER_CONNECTION_ INITIATION_ SECRET - The key that signs connection initiation tokens, data export links and admin download links. Changing it breaks tokens not yet verified and download links already sent. Keep it secret.
FLUXER_ERLANG_COOKIE- The shared secret for Erlang distribution in the gateway. Anyone who can connect to the distribution port with this value can run code in the gateway. Keep the port private. Keep it secret.
FLUXER_GATEWAY_RPC_AUTH_TOKEN- The token the api, worker, gateway and push services use to authenticate internal calls to each other. Keep it secret.
FLUXER_MEDIA_PROXY_SECRET_KEY- The key that signs the
/external/URLs for third-party media, such as link preview images and GIF results. The API also uses it to call the media proxy's internal endpoints. It doesn't sign uploaded attachments, which useFLUXER_. Changing it doesn't affect anything stored, but proxy URLs that were already handed out stop working, such as link preview images in clients that are open, until they reload. Keep the value secret.MEDIA_ PROXY_ ATTACHMENT_ URL_ SECRETS_ BASE64 FLUXER_MEDIA_ PROXY_ UPLOAD_ RELAY_ SECRET_ BASE64 - The key that signs upload relay tokens, as standard base64 that decodes to at least 32 bytes. Keep it secret.
FLUXER_PROFILE_PSEUDONYM_SECRET- The key Fluxer uses to derive the placeholder name and tag that others see while an account's profile is hidden. Changing it gives every hidden profile a new placeholder. Keep it secret.
FLUXER_S3_ACCESS_KEY- The object store access key. rexctl also calls it
storage.access_key. FLUXER_S3_SECRET_KEY- The object store secret key. For your own object store, set its secret key, and update it when you rotate the key at the store. Keep it secret. rexctl also calls it
storage.secret_key. FLUXER_SUDO_MODE_SECRET- The key Fluxer signs sudo mode tokens with and derives a few other internal signing keys from. Changing it ends every active sudo mode session, voids codes already emailed and makes every remembered device count as new. Keep it secret.
FLUXER_VAPID_PRIVATE_KEY- The private half of the VAPID key pair for browser push notifications, as unpadded base64url of the 32-byte P-256 private key. The value is 43 characters long. It must match
FLUXER_VAPID_PUBLIC_KEY. Keep it secret. FLUXER_VAPID_PUBLIC_KEY- The public half of the VAPID key pair for browser push notifications, as unpadded base64url of the 65-byte uncompressed P-256 point. The value is 87 characters long.
LIVEKIT_API_KEY- The LiveKit API key. Keep it secret.
LIVEKIT_API_SECRET- The LiveKit API secret that goes with
LIVEKIT_API_KEY, at least 32 characters. Keep it secret. MEILI_MASTER_KEY- The Meilisearch master key. Keep it secret.
POSTGRES_PASSWORD- The PostgreSQL password. Keep it secret.
Public address
Section titled "Public address"Every address comes from FLUXER_DOMAIN. Set these only for a part on another address.
FLUXER_ADMIN_ENDPOINT- The public address of the admin panel. When it's empty, Fluxer uses the public origin followed by
FLUXER_ADMIN_BASE_PATH. The admin sign-in redirect is this address followed by/oauth2_callback, the single sign-on redirect is this address followed by/sso/callback, and the admin panel uses secure cookies when the address starts withhttps. FLUXER_API_CLIENT_ENDPOINT- The API base URL Fluxer hands to clients. When it's empty, Fluxer uses the public origin followed by
/api. FLUXER_API_ DISCOVERY_ PUBLIC_ ENDPOINT - The public API base URL Fluxer lists in instance discovery as
api_public. The ActivityPub actor and its key ID use the same address, so its host must serve/.well-known/webfinger, and changing it on an instance with a signing key gives remote servers a new actor. When it's empty, Fluxer usesFLUXER_API_ENDPOINT. Webhooks, signed links and Bluesky sign-in always useFLUXER_API_ENDPOINT. FLUXER_API_ENDPOINT- The public base URL of the API. When it's empty, Fluxer uses the public origin followed by
/api. FLUXER_APP_ENDPOINT- The address of the web app, which Fluxer allows through CORS and uses in links. When it's empty, Fluxer uses the public origin.
FLUXER_APP_ORIGIN_ALIASES- More web app origins, separated by commas, for an instance that serves the web app on more than one hostname. Each must be an http or https origin. The API allows each one through CORS and accepts it for sign-in handoff. List them and the web app origin in
FLUXER_too, so passkeys work on them.PASSKEY_ ADDITIONAL_ ALLOWED_ ORIGINS FLUXER_GATEWAY_ENDPOINT- The public WebSocket URL of the gateway, starting with
wsorwss. When it's empty, Fluxer useswsson the public host followed by/gateway, orwswhen the public scheme ishttp. FLUXER_GIFT_DOMAIN- A separate hostname for gift links, with no scheme, port or path. When it's set, the default gift address uses this host.
FLUXER_GIFT_ENDPOINT- The base URL of gift links. When it's empty, Fluxer uses
FLUXER_GIFT_DOMAINor the public host, followed by/gift. FLUXER_INVITE_DOMAIN- A separate hostname for invite links, with no scheme, port or path. When it's set, the default invite address uses this host.
FLUXER_INVITE_ENDPOINT- The base URL of invite links. When it's empty, Fluxer uses
FLUXER_INVITE_DOMAIN, or the public host when that is empty, followed by/invite. FLUXER_MARKETING_ENDPOINT- The address of the marketing site, which Fluxer allows through CORS and uses in some links. When it's empty, Fluxer uses the public origin.
FLUXER_MEDIA_ENDPOINT- The public address of the media proxy. When it's empty, Fluxer uses the public origin followed by
/media. FLUXER_MEDIA_ PROXY_ PUBLIC_ ENDPOINT - The public media proxy address that the gifs, unfurl and media-proxy services use when they build media links. When it's empty, they use
FLUXER_MEDIA_ENDPOINT, or the public origin followed by/media. FLUXER_PUBLIC_ORIGIN- The origin browsers use to open the instance, as a scheme, host and optional port with no path or trailing slash, such as
https://chat.example.com:8443. When it's set, the default public addresses of the api, worker and other services come from it. KeepFLUXER_DOMAINset to the same host. The edge site address, the passkey relying party ID, the default sender and VAPID contact addresses and the gateway still useFLUXER_DOMAIN. FLUXER_PUBLIC_SCHEME- Default
https - The scheme browsers use to open the instance. Use
httpsorhttp. Fluxer builds public addresses from it andFLUXER_DOMAINwhenFLUXER_PUBLIC_ORIGINis empty. Withhttp, also setFLUXER_PUBLIC_PORT, usually to80. Without rexctl, the edge also uses it for its default site address. FLUXER_STATIC_CDN_DOMAIN- A separate hostname for static assets, with no scheme, port or path. When it's set, the default static address of the api and worker services is
https://followed by this host. FLUXER_STATIC_CDN_ENDPOINT- The origin Fluxer serves static assets such as the favicon and app icons from. When it's empty, the api and worker services derive it from
FLUXER_STATIC_CDN_DOMAINor the public origin, and the admin and gateway services use the public origin. The app-proxy service uses it only when it's set, and serves its own copies of the web app files otherwise.
Edge and HTTPS
Section titled "Edge and HTTPS"By default Fluxer listens on ports 80 and 443 and gets its own certificate for your domain. Behind your own proxy or a tunnel, turn on proxy mode.
FLUXER_ADMIN_BASE_PATH- Default
/admin - The path the admin panel is served under, with a leading slash and no trailing slash, such as
/panel. The edge serves the admin panel under this path, the admin service builds its links with it, and the defaultFLUXER_ADMIN_ENDPOINTfollows it. FLUXER_CADDY_SITE_ADDRESS- The old name for
FLUXER_EDGE_SITE_ADDRESS. FLUXER_EDGE_ACME_CA- The ACME directory the edge gets its certificate from. When it's empty, the edge uses Let's Encrypt.
FLUXER_EDGE_ACME_CA_ROOT- A PEM file with the CA certificate the edge trusts for the ACME directory. When it's empty, the edge uses the system trust store.
FLUXER_EDGE_BIND- Default
127.0.0.1:8080 - The address your reverse proxy or tunnel connects to in proxy and tunnel mode. In the Fluxer image the default is
0.0.0.0:8080, and you limit who can connect where you publish the port. rexctl also calls itedge.bind. FLUXER_EDGE_ENCODE- Default
zstd gzip - The response compression the edge offers, written as the arguments of the Caddy encode directive, such as
gzipalone. FLUXER_EDGE_GLOBAL_OPTIONS- Extra Caddy global options on one line, added to the global block of the edge Caddyfile, such as
email admin@chat.example.comfor the certificate account. An empty value adds nothing. FLUXER_EDGE_LISTEN_ADDRESS- The IP address on this machine that Fluxer listens on for HTTP and HTTPS, or empty for every address. Write an IPv6 address without brackets. rexctl also calls it
edge.listen_address. FLUXER_EDGE_MODE- Default
bundled - How web traffic gets to Fluxer.
bundledserves HTTPS on ports 80 and 443 with its own certificate.proxyandtunnelserve plain HTTP on port 8080 for your own reverse proxy or tunnel. FLUXER_EDGE_PROTOCOLS- Default
h1 h2 h3 - The HTTP versions the edge serves, as the arguments of the Caddy protocols option, such as
h1 h2to turn off HTTP/3. FLUXER_EDGE_SITE_ADDRESS- The site address the edge serves, including the scheme. When it's empty, the edge uses
FLUXER_CADDY_SITE_ADDRESS, orFLUXER_PUBLIC_SCHEMEfollowed by://andFLUXER_DOMAIN. FLUXER_EDGE_TLS- The arguments of a Caddy tls directive for the edge, such as
internalfor a certificate from Caddy's own local CA, or a certificate and key path under/etc/fluxer/certs. When it's empty, the edge adds no tls line and Caddy gets certificates on its own. FLUXER_EDGE_TRUSTED_PROXIES- Default
127.0.0.1/32 - Proxies whose client address headers Fluxer trusts, by default only this machine, or private ranges in proxy and tunnel mode. rexctl also calls it
edge.trusted_proxies. FLUXER_HTTP_PORT- Default
80 - The port Fluxer listens on for HTTP. rexctl also calls it
edge.http_port. FLUXER_HTTPS_PORT- Default
443 - The port Fluxer listens on for HTTPS. If people connect to this port directly, set
FLUXER_PUBLIC_PORTto the same port. rexctl also calls itedge.https_port. FLUXER_PUBLIC_PORT- Default
443 - The port people use in Fluxer's address, when it differs from the one Fluxer listens on. rexctl also calls it
edge.public_port.
Voice and video
Section titled "Voice and video"Calls connect to the machine on FLUXER_LIVEKIT_TCP_PORT and FLUXER_LIVEKIT_UDP_PORT, also when Fluxer is behind your own proxy.
FLUXER_LIVEKIT_BUNDLED- Default
true - Whether Fluxer runs its own LiveKit voice server on this machine. Use
trueorfalse. The bundled LiveKit is the first server in the default voice region. Withfalse, Fluxer creates the default region with no server in it, removes the server it made for the bundled LiveKit and keeps calls on the servers you add withrexctl voice add,rexctl voice joinor the admin panel. rexctl also calls itvoice.bundled. FLUXER_LIVEKIT_DEFAULT_REGION- Default
{"id":"default","name":"Default","emoji":"🌍","latitude":0,"longitude":0} - The voice region Fluxer creates when no voice regions exist yet, as a JSON object with
id,name,emoji,latitudeandlongitude. FLUXER_LIVEKIT_ENABLED- Default
true - Whether voice and video calls are turned on. Use
trueorfalse. FLUXER_LIVEKIT_INTERNAL_URL- The URL the API uses for the LiveKit control API of the bundled LiveKit, the first server in the default voice region. Servers added in the admin panel use their own address. Fluxer ignores it when
FLUXER_LIVEKIT_BUNDLEDisfalse. FLUXER_LIVEKIT_NODE_IP- The public IP address voice and video use, when Fluxer can't find it by itself. Set
FLUXER_LIVEKIT_USE_EXTERNAL_IPtofalsewith it. rexctl also calls itvoice.public_ip. FLUXER_LIVEKIT_STUN_PRIMARY- Default
stun.l.google.com:19302 - The first STUN host LiveKit asks to find its public IP address, as
host:port. Point it at another STUN host to avoid contacting Google. FLUXER_LIVEKIT_STUN_SECONDARY- Default
stun1.l.google.com:19302 - The second STUN host LiveKit asks to find its public IP address, as
host:port. FLUXER_LIVEKIT_TCP_PORT- Default
7881 - The TCP port for voice and video. rexctl also calls it
voice.tcp_port. FLUXER_LIVEKIT_TURN_SERVERS- Default
[] - TURN servers that browsers and apps get when they join a call, as a JSON array of objects with
host,portandprotocol, and eitherusernameandcredentialorsecretwith an optionalttl, such as[{"host":"turn.. Useexample.com","port":3478,"protocol":"udp","secret":"a-long-random-secret"}] udp,tcportlsforprotocol, and a hostname or an IPv4 address forhost. Withsecret, LiveKit makes short-lived credentials for each participant in the form coturn checks withuse-auth-secret, andttl, a whole number from 1, sets how many seconds they last. The bundled voice server and the servers you add withrexctl voice addgive these to clients, and rexctl restarts the added servers one at a time when the list changes. A server that joined withrexctl voice joingets the list when it joins and on eachrexctl upgradein its voice folder, unless the instance runs an older release than the rexctl there. Set it when callers can't connect to a voice server directly, such as from networks that allow only port 443. When it's empty, clients get no TURN server. The API doesn't start with a value it can't read, andrexctl config setrefuses such a value. FLUXER_LIVEKIT_UDP_PORT- Default
7882 - The UDP port for voice and video. rexctl also calls it
voice.udp_port. FLUXER_LIVEKIT_URL- The URL browsers and apps use for voice signalling. When it's empty, Fluxer uses the public origin, or
FLUXER_PUBLIC_SCHEME,FLUXER_DOMAINandFLUXER_PUBLIC_PORT, followed by/livekit. Set it only when LiveKit runs on another host. FLUXER_LIVEKIT_USE_EXTERNAL_IP- Default
true - Whether LiveKit finds its public IP address through STUN. Use
trueorfalse. Set it tofalsewhen you setFLUXER_LIVEKIT_NODE_IP. FLUXER_VOICE_HEALTH_INTERVAL_MS- How often each API node checks every active voice server, in milliseconds. A server that fails two checks in a row gets no new calls until a check passes. Set it to
0to turn the checks off. When it's empty, the API checks every 15 seconds. FLUXER_VOICE_ JOIN_ ALLOW_ PRIVATE_ ENDPOINTS - Whether the API accepts a voice server joining with an endpoint that resolves to a private address. Use
trueorfalse. Set it totrueonly for tests and private networks. FLUXER_VOICE_P2P_STUN_URLS- STUN URLs for peer-to-peer calls, separated by commas, such as
stun:stun.example.com:3478. When it's empty, peer-to-peer calls work only between devices with a direct route to each other, such as on one local network. FLUXER_VOICE_ PARTICIPANT_ SWEEP_ DRY_ RUN - Whether the voice participant check from
FLUXER_only logs the connections it would disconnect. UseVOICE_ PARTICIPANT_ SWEEP_ ENABLED trueorfalse. When it's empty, the check only logs them. FLUXER_VOICE_ PARTICIPANT_ SWEEP_ ENABLED - Whether a worker compares each voice server's call participants with the gateway's call state every minute and disconnects connections the gateway has not known for two minutes. Use
trueorfalse. When it's empty, the check runs.
Backups
Section titled "Backups"Fluxer backs up its database before every upgrade. These add regular backups, which Fluxer keeps in the backups folder of its data folder. Copy them off the machine, because they are on the same disk as the instance.
FLUXER_BACKUP_HOUR- Default
3 - The hour of the day, from 0 to 23, when Fluxer takes its own scheduled backup. It's in UTC inside a container unless the container has TZ set, and in the machine's time zone otherwise. When it's empty, Fluxer uses 3.
FLUXER_BACKUP_KEEP- Default
7 - How many of its own scheduled backups Fluxer keeps. When it's empty, Fluxer keeps 7.
FLUXER_BACKUP_ON_UPGRADE- Default
true - Set to
falseto stop Fluxer backing up its database by itself before it starts on a newer release. When it's empty, it backs up and keeps the newest 3 of these backups. rexctl backs up before every upgrade and sets this tofalse. FLUXER_BACKUP_SCHEDULE- Default
off - How often Fluxer backs itself up into its own data folder, as
daily,weeklyoroff. Fluxer shows a maintenance page while it copies uploads and the search index. On Linux,rexctl backup scheduleuses a timer on the machine instead, and it sets this one only where the machine has no timer, such as Docker Desktop.rexctl backup listcopies these backups into rexctl's backup folder, from Fluxer's volume for a container and from Fluxer's data folder for systemd.
Updates
Section titled "Updates"Fluxer doesn't look for new releases by itself until you turn the check on. Then it checks once a day and shows a newer release in the admin panel, the log and fluxerd version. The request holds no instance ID, domain, version, counts or cookies.
FLUXER_INSTALL_METHOD- How this instance was installed, which picks the upgrade command Fluxer shows and the command the setup wizard gives for the setup token. Use
compose,docker,helm,systemdorrexctl. The release'scompose.yamlsetscompose, thedocker runline in the Docker guidedocker, the Helm charthelmand rexctlrexctl. When it's empty, Fluxer in Docker or Podman shows steps that fit any way of running the image. Set it when the admin panel shows steps that don't fit, such ascomposefor acompose.yamlfrom an older release ordockerfor adocker runline without it. FLUXER_UPDATE_CHECK- Default
false - Set to
trueto have Fluxer askhttps://fluxer.dev/releases.jsononce a day whether a newer release is out, and show newer releases in the admin panel and the log. The request is plain and holds nothing about your instance. It's off unless you set it. FLUXER_UPDATE_CHECK_URL- Where Fluxer asks for the list of releases. When it's empty, it asks
https://fluxer.dev/releases.json. Any other server you set here must send JSON in the same format as that list. FLUXER_UPGRADE_COMMAND- The upgrade command Fluxer shows when a newer release is out, with
{version}where the version goes. The Helm chart and rexctl set it. Set it yourself when you upgrade some other way, such as with Quadlet or Ansible.
File storage
Section titled "File storage"A new instance keeps uploads as plain files in its data folder. To use an S3-compatible store, set its address, region and buckets, and put its access key and secret key in FLUXER_S3_ACCESS_KEY and FLUXER_S3_SECRET_KEY.
FLUXER_API_ PRESIGNED_ ATTACHMENT_ UPLOADS_ ENABLED - Default
true - Whether the API hands clients upload URLs that let them upload attachments before they send the message. Use
trueorfalse. FLUXER_API_ PRESIGNED_ HARVEST_ DOWNLOADS_ ENABLED - Default
false - Whether data export and admin download links are presigned URLs to the object store. Use
trueorfalse. Withfalse, the API serves those downloads itself. Turn it on only once browsers can connect toFLUXER_S3_PUBLIC_ENDPOINT. FLUXER_API_ STORAGE_ CHANGE_ FEED_ ENABLED - Whether the api and worker services publish a record of each object store write and delete they make to a NATS JetStream stream. Uploads written by the media proxy relay or sent directly to the store by clients are not in it. Use
trueorfalse. When it's empty, Fluxer publishes no records. FLUXER_API_ STORAGE_ CHANGE_ FEED_ SKIP_ BUCKETS - Buckets left out of these records, separated by commas, or
noneto leave out no bucket. When it's empty, Fluxer leaves out the uploads bucket. FLUXER_API_ STORAGE_ CHANGE_ FEED_ STREAM - The JetStream stream these records go to, in letters, digits, underscores or hyphens. When it's empty, Fluxer uses
STORAGE_CHANGES. FLUXER_S3_BUCKET_CDN- Default
fluxer - The bucket for processed media such as avatars and other served assets.
FLUXER_S3_BUCKET_HARVESTS- Default
fluxer-harvests - The bucket for data export archives.
FLUXER_S3_BUCKET_REPORTS- Default
fluxer-reports - The bucket for abuse report evidence.
FLUXER_S3_BUCKET_UPLOADS- Default
fluxer-uploads - The bucket for raw uploads.
FLUXER_S3_ENDPOINT- The address of the S3-compatible object store. rexctl also calls it
storage.endpoint. FLUXER_S3_FORCE_PATH_STYLE- Default
true - Whether the object store needs path-style addresses. Use
trueorfalse. rexctl also calls itstorage.path_style. FLUXER_S3_PUBLIC_ENDPOINT- The object store address browsers use, when it differs from the one Fluxer uses. When it's empty, the api and worker use
FLUXER_S3_ENDPOINT, and the web app doesn't let browsers upload to the object store. rexctl also calls itstorage.public_endpoint. FLUXER_S3_READ_BUCKET- The bucket the media proxy fetches through
FLUXER_S3_READ_ENDPOINT. When it's empty, the media proxy usesFLUXER_S3_BUCKET_CDN. FLUXER_S3_READ_BUCKET_STYLE- How the bucket appears in URLs to
FLUXER_S3_READ_ENDPOINT. Usepath,virtualorroot. When it's empty, the media proxy followsFLUXER_S3_FORCE_PATH_STYLE, withpathwhen it's on andvirtualwhen it's off. FLUXER_S3_READ_ENDPOINT- A separate http or https address, with no credentials, that the media proxy fetches objects in
FLUXER_S3_READ_BUCKETfrom. When it's empty, the media proxy fetches everything throughFLUXER_S3_ENDPOINT. FLUXER_S3_READ_SIGNED- Default
true - Whether the media proxy signs its requests to
FLUXER_S3_READ_ENDPOINT. Usetrueorfalse. Usefalseonly for a bucket that allows anonymous downloads. FLUXER_S3_REGION- Default
us-east-1 - The object store region. rexctl also calls it
storage.region. FLUXER_S3_SESSION_TOKEN- A temporary S3 session token the media proxy sends with its object store requests. When it's empty, the media proxy sends none. Keep it secret.
FLUXER_STORAGE_BACKEND- Where Fluxer keeps uploaded files.
filesystemkeeps them as plain files in theobjectsfolder of the data folder and needsFLUXER_S3_ENDPOINTto be empty. When it's empty, a new instance picksfilesystemon its first start, ors3whenFLUXER_S3_ENDPOINTis set, and keeps that choice. An older instance with no choice saved usess3. To switch an instance that already has files, userexctl migrate. rexctl also calls itstorage.backend. FLUXER_STORAGE_READ_ONLY- Whether the api and worker refuse to write or delete files. Use
trueorfalse.rexctl migrateturns it on while you check the files it moved, and turns it off when you confirm. FLUXER_STORAGE_UPLOADS_TTL- Default
1d - How long Fluxer keeps files in the uploads bucket when
FLUXER_STORAGE_BACKENDisfilesystem. Use a number followed bym,h,d,w,Mfor months ory, such as1d, oroffto keep them. When it's empty, Fluxer usesFLUXER_SEAWEEDFS_UPLOADS_TTL, and1dwhen that setting is empty as well.
Database
Section titled "Database"Fluxer runs its own PostgreSQL unless you set FLUXER_POSTGRES_URL for a database and role that already exist, on PostgreSQL 14 or later.
FLUXER_POSTGRES_DATABASE- The PostgreSQL database name. When it's empty, Fluxer uses
fluxer. FLUXER_POSTGRES_HOST- Default
postgres - The hostname or address of the PostgreSQL database.
FLUXER_POSTGRES_KV_TABLE- The PostgreSQL table for Fluxer's key-value data, a plain identifier of letters, digits and underscores that starts with a letter or an underscore. When it's empty, Fluxer uses
fluxer_kv. FLUXER_POSTGRES_PORT- The PostgreSQL port, from 1 to 65535. When it's empty, Fluxer uses
5432. FLUXER_POSTGRES_ PREPARED_ STATEMENTS - Whether Fluxer uses PostgreSQL prepared statements. Use
trueorfalse. When it's empty, Fluxer uses them. Set it tofalsebehind a transaction-pooling pooler such as PgBouncer. FLUXER_POSTGRES_SSL- Whether Fluxer connects to PostgreSQL over TLS. Use
trueorfalse. When it isn'ttrueandFLUXER_POSTGRES_URLhas nosslmode, the api and worker followPGSSLMODEand the other services connect without TLS. FLUXER_POSTGRES_SSL_CA- A CA certificate in PEM form that Fluxer trusts for the PostgreSQL TLS connection, with
\nfor line breaks. The Rust services use it whenever the connection uses TLS. The api and worker use it only whenFLUXER_POSTGRES_SSListrueandFLUXER_POSTGRES_URLhas nosslmode. FLUXER_POSTGRES_URL- A full PostgreSQL connection URL, such as
postgres://fluxer:. When it's set, Fluxer connects with it and ignores the host, port, database, username and password settings. Ansecret@db. example.com: 5432/ fluxer sslmodein the URL can turn TLS on whenFLUXER_POSTGRES_SSLisn'ttrue. For the api and worker, it also wins overFLUXER_POSTGRES_SSL. Keep it secret. FLUXER_POSTGRES_USERNAME- The PostgreSQL role Fluxer connects as. When it's empty, Fluxer uses
fluxer.
Cache, queue and search
Section titled "Cache, queue and search"FLUXER_GIF_ SERVICE_ NATS_ CLIENT_ NAME - The client name the API gives its NATS connection to the gifs service, which shows in NATS monitoring. When it's empty, the API uses
fluxer-api-gifs. FLUXER_GIF_SERVICE_TIMEOUT_MS- How long the API waits for gifs service requests such as searches, in milliseconds. When it's empty, the API uses
12000.FLUXER_sets a separate timeout for recording a share.GIF_ SERVICE_ REGISTER_ SHARE_ TIMEOUT_ MS FLUXER_KV_MODE- Where Fluxer keeps its cache, rate limits and other short-lived data. Use
standalonefor a single Valkey or Redis node atFLUXER_KV_URL,clusterfor a Redis-compatible cluster, orpostgresfor tables in Fluxer's own PostgreSQL database. When it's empty, a new instance pickspostgreson its first start, orstandalonewhenFLUXER_KV_URLis set, and keeps that choice. An older instance with no choice saved usesstandalone, which needs a Valkey or Redis node atFLUXER_KV_URL.postgresneedsFLUXER_DATABASE_BACKENDto bepostgresandFLUXER_KV_URLto be empty. A pooler such as PgBouncer in transaction mode breaks the LISTEN connectionpostgresneeds, so connect directly or through a session-mode pooler. To switch an instance that already has data, userexctl migrate. rexctl also calls itkv.mode. FLUXER_KV_URL- The Valkey or Redis URL Fluxer uses for its cache, rate limits and other short-lived data.
FLUXER_NATS_AUTH_TOKEN- The token every service sends when it connects to NATS. When it's empty, services connect without a token. Keep it secret.
FLUXER_SEARCH_ENGINE- Default
meilisearch - Which search engine Fluxer uses. Use
meilisearchorelasticsearch, ornoneto turn search off. Withelasticsearch, setMEILI_MASTER_KEYto your Elasticsearch API key. FLUXER_SEARCH_PASSWORD- The basic auth password for Elasticsearch. Fluxer uses it only when
MEILI_MASTER_KEYis empty, the same asFLUXER_SEARCH_USERNAME. Keep it secret. FLUXER_SEARCH_ TLS_ REJECT_ UNAUTHORIZED - Whether Fluxer checks the Elasticsearch TLS certificate. Use
trueorfalse. When it's empty, Fluxer checks it. Meilisearch connections don't use it. FLUXER_SEARCH_URL- The address of the search engine.
FLUXER_SEARCH_USERNAME- The basic auth username for Elasticsearch. Fluxer uses it only when
MEILI_MASTER_KEYis empty. FLUXER_SNOWFLAKE_ SERVICE_ BATCH_ SIZE - How many IDs the API fetches from the snowflakes service at a time, from 1 to 512. When it's empty, the API uses
128. FLUXER_SNOWFLAKE_ SERVICE_ LOW_ WATERMARK - The number of unused IDs at which the API fetches a new batch, from 0 to one less than the batch size. When it's empty, the API uses
32, or one less than the batch size if that's smaller. FLUXER_SNOWFLAKE_ SERVICE_ MAX_ BUFFER_ AGE_ MS - How long the API keeps a fetched batch of IDs before it throws the rest away, in milliseconds from 1 to 60000. When it's empty, the API uses
5000. FLUXER_SNOWFLAKE_ SERVICE_ NATS_ CLIENT_ NAME - The client name the API gives its NATS connection to the snowflakes service, which shows in NATS monitoring. When it's empty, the API uses
fluxer-api-snowflakes. FLUXER_SNOWFLAKE_ SERVICE_ REQUEST_ TIMEOUT_ MS - How long the API waits for the snowflakes service, in milliseconds from 1 to 60000. When it's empty, the API uses
6000. FLUXER_SVC_CACHE_MAX_ENTRIES- The most entries each internal service process keeps in its cache. When it's empty, the internal services use
100000. FLUXER_SVC_CACHE_TTL_MS- How long the internal services keep cached entries, in milliseconds. When it's empty, they use
30000. FLUXER_SVC_ MAX_ CONCURRENT_ REQUESTS - How many requests each internal service handles at once before it turns new ones away. When it's empty, the messages service uses
192, the snowflakes service320and the others64. One value you set applies to all of them. FLUXER_USERS_ SERVICE_ INFLIGHT_ MAX_ ENTRIES - How many user lookups the API tracks in flight, which lets requests for the same user share one call to the users service. Lookups past this limit go to the service on their own. When it's empty, the API uses
10000. FLUXER_USERS_ SERVICE_ NATS_ CLIENT_ NAME - The client name the API gives its NATS connection to the users service, which shows in NATS monitoring. When it's empty, the API uses
fluxer-api-users. FLUXER_USERS_SERVICE_TIMEOUT_MS- How long the API waits for the users service, in milliseconds. When it's empty, the API uses
6000.
Outgoing proxy
Section titled "Outgoing proxy"FLUXER_NODE_EXTRA_CA_CERTS- Default
/etc/ssl/ certs/ ca-certificates.crt - The path of a PEM file of CA certificates that the api and worker trust for outgoing TLS on top of Node's built-in ones. Use it when your email server has a certificate from your own CA. The path is inside their services. A file you set replaces the system bundle. Node's built-in CAs still apply, and the file can have only your own CA. The Rust services don't use it and take their CA certificates from
SSL_CERT_FILE. HTTP_PROXY- The proxy the edge and the Rust services other than the app-proxy use for outgoing HTTP requests. The edge uses it to get its certificate from Let's Encrypt. The api, worker and gateway don't use it. rexctl also calls it
network.http_proxy. HTTPS_PROXY- The proxy the edge and the Rust services other than the app-proxy use for outgoing HTTPS requests. The edge uses it to get its certificate from Let's Encrypt. The api, worker and gateway don't use it. rexctl also calls it
network.https_proxy. NO_PROXY- Hosts the edge and the Rust services other than the app-proxy connect to without the proxy, separated by commas. rexctl also calls it
network.no_proxy.
Sign-in
Section titled "Sign-in"The admin panel can also save the single sign-on settings, and a value saved there wins over the ones here. Set up single sign-on.
FLUXER_ADMIN_SSO_CLIENT_ID- The client ID of the admin panel at the provider in
FLUXER_ADMIN_SSO_ISSUER. Register the admin address followed by/sso/callbackas its redirect URL. FLUXER_ADMIN_SSO_CLIENT_SECRET- The client secret that goes with
FLUXER_ADMIN_SSO_CLIENT_ID. Only the admin service uses it. Keep it secret. FLUXER_ADMIN_SSO_DISPLAY_NAME- The provider name on the single sign-on button of the admin panel. With
Ferret, the button saysSign in with Ferret. When it's empty, the button saysSign in with single sign-on. FLUXER_ADMIN_SSO_ISSUER- The HTTPS issuer URL of an OpenID Connect provider that staff can also use to sign in to the admin panel. The issuer must not contain credentials, a query or a fragment. Discovery and token endpoints must serve responses directly without redirects. Admin single sign-on is on when
FLUXER_ADMIN_SSO_ISSUER,FLUXER_ADMIN_SSO_CLIENT_IDandFLUXER_ADMIN_SSO_CLIENT_SECRETare all set. The admin service won't start when only some of them are set. The api and admin services must have the same issuer and client ID. The provider's ID token must have afluxer_idclaim with the ID of the Fluxer account, and access still comes from the admin ACLs of that account. Only trusted provider administrators may set this claim, and users must not be able to change it. FLUXER_ADMIN_SSO_ONLY- Whether staff can sign in to the admin panel only with single sign-on. Use
trueorfalse. Withtrue, the login page hides the button for signing in with a Fluxer account, and the admin panel refuses new sign-ins that way. Staff who are already signed in stay signed in. It needsFLUXER_ADMIN_SSO_ISSUER,FLUXER_ADMIN_SSO_CLIENT_IDandFLUXER_ADMIN_SSO_CLIENT_SECRET, and the admin service won't start without them. When it's empty, it'sfalse. FLUXER_PASSKEY_ ADDITIONAL_ ALLOWED_ ORIGINS - Every origin where passkeys work, separated by commas. A list you set replaces it and must include the web app origin. Set a list when
FLUXER_APP_ENDPOINTis on another origin. Each entry is an http or https origin or an Android app, written asandroid:apk-key-hash:followed by its signing certificate's SHA-256 hash in unpadded base64url. FLUXER_PASSKEY_RP_ID- The relying party ID that passkeys are tied to, a domain such as
chat.example.com. When it's empty, Fluxer usesFLUXER_DOMAIN. Changing it makes every passkey registered against the old value stop working. FLUXER_PASSKEY_RP_NAME- The title browsers show for Fluxer when someone creates or uses a passkey. When it's empty, browsers show
Fluxer. FLUXER_SSO_ ALLOW_ PRIVATE_ ADDRESSES - Whether single sign-on can use a provider on a private or local network address. Use
trueorfalse. When it's empty, Fluxer usesfalse. rexctl also calls itsso.allow_private_addresses. FLUXER_SSO_ALLOWED_DOMAINS- Email domains that can sign in through the provider, separated by commas, such as
example.com,example.org. When it's empty, every domain can. FLUXER_SSO_AUTO_PROVISION- Whether someone new gets an account at their first sign-in through the provider. Use
trueorfalse. When it's empty, Fluxer usestrue. FLUXER_SSO_CLIENT_ID- The client ID of Fluxer at your provider. Register the redirect URI the admin panel shows with the provider.
FLUXER_SSO_CLIENT_SECRET- The client secret that goes with
FLUXER_SSO_CLIENT_ID. Keep it secret. FLUXER_SSO_DISPLAY_NAME- The provider name the sign-in page shows.
FLUXER_SSO_ENABLED- Whether people can sign in through your OpenID Connect provider. Use
trueorfalse. When it's empty, single sign-on is off. FLUXER_SSO_ENFORCED- Whether everyone has to sign in through the provider, with passwords, passkeys and local registration off. Use
trueorfalse. When it's empty, Fluxer usesfalse. Turn it on only after an admin has signed in through your provider. FLUXER_SSO_ISSUER- The issuer URL of your OpenID Connect provider, such as
https://auth.. Fluxer finds the other endpoints through its discovery document.example.com/ application/ o/ fluxer/ FLUXER_SSO_SCOPE- The scopes Fluxer asks for, separated by spaces. When it's empty, Fluxer uses
openid email profile.
The admin panel can also save the delivery mode, the sender and the SMTP server. A value saved there wins. Set up email with a mail provider.
FLUXER_EMAIL_APP_BASE_URL- The base URL Fluxer uses for links in emails, an http or https URL with no credentials, query or fragment. When it's empty, Fluxer uses
FLUXER_APP_ENDPOINT. FLUXER_EMAIL_DELIVERY- How Fluxer sends email. Use
smtporoff. When it's empty,FLUXER_EMAIL_ENABLEDandFLUXER_EMAIL_PROVIDERdecide, and email is off when those are empty too. FLUXER_EMAIL_ENABLED- The older way to turn email on. Use
FLUXER_EMAIL_DELIVERY. FLUXER_EMAIL_FALLBACK_DOMAINS- Recipient domains, separated by commas, whose mail goes through the fallback SMTP provider, such as
gmail.com,googlemail.com. Only exact domain matches count, and*alone sends all mail through the fallback provider. FLUXER_EMAIL_ FALLBACK_ SMTP_ HEADERS - Extra headers added to every message sent through the fallback provider, as a JSON object that maps header names to string values. Core headers such as From, To, Subject and Reply-To can't be set here.
FLUXER_EMAIL_FALLBACK_SMTP_HOST- The hostname of the fallback SMTP provider.
FLUXER_EMAIL_ FALLBACK_ SMTP_ PASSWORD - The password Fluxer signs in to the fallback SMTP provider with. Fluxer doesn't start when a fallback provider is set without it. Keep it secret.
FLUXER_EMAIL_FALLBACK_SMTP_PORT- The port of the fallback SMTP provider, from 1 to 65535. When it's empty, Fluxer uses
587. FLUXER_EMAIL_ FALLBACK_ SMTP_ TLS_ MODE - How Fluxer encrypts the connection to the fallback provider. Use
implicit,starttls,opportunisticornone. When it's empty, Fluxer usesimpliciton port 465 andstarttlson any other port. FLUXER_EMAIL_ FALLBACK_ SMTP_ USERNAME - The username Fluxer signs in to the fallback SMTP provider with. Fluxer doesn't start when a fallback provider is set without it.
FLUXER_EMAIL_FROM_EMAIL- The address Fluxer sends email from. When it's empty, Fluxer uses
noreply@followed byFLUXER_DOMAIN. FLUXER_EMAIL_FROM_NAME- The sender name on email from Fluxer. When it's empty, Fluxer uses the product name of the instance.
FLUXER_EMAIL_PROVIDER- The older way to pick the email transport, which takes
smtpornone. UseFLUXER_EMAIL_DELIVERY. FLUXER_EMAIL_REPLY_TO_EMAIL- The address replies go to, sent as the Reply-To header on every email, such as
support@example.com. When it's empty, Fluxer sends no Reply-To header. FLUXER_EMAIL_SMTP_HOST- The hostname of your SMTP server.
FLUXER_EMAIL_SMTP_PASSWORD- The password Fluxer signs in to your SMTP server with. Keep it secret.
FLUXER_EMAIL_SMTP_PORT- The port of your SMTP server. When it's empty, Fluxer uses
587. FLUXER_EMAIL_SMTP_SECURE- The older way to set
FLUXER_EMAIL_SMTP_TLS_MODE, used only while that is empty. Usetrueforimpliciton port 465 andstarttlson any other port, orfalseforopportunistic. FLUXER_EMAIL_SMTP_TLS_MODE- How the SMTP connection is encrypted. Use
implicitfor TLS from the start, usually on port 465,starttlsto upgrade before signing in, usually on port 587,opportunisticto upgrade when the server offers it, ornone. When it's empty,FLUXER_EMAIL_SMTP_SECUREdecides. When both are empty, Fluxer usesimpliciton port 465 andstarttlson any other port. FLUXER_EMAIL_SMTP_USERNAME- The username Fluxer signs in to your SMTP server with.
FLUXER_EMAIL_WEBHOOK_SECRET- The base64 secret Fluxer uses to check the signature on bounce and complaint webhooks from the Sweego email service. When it's empty, Fluxer turns those webhooks away. Keep it secret.
Push notifications
Section titled "Push notifications"FLUXER_PUSH_APNS_APPS- The apps the push service sends to through APNs, as a JSON array of objects. Each object has an
app_idand atopicwith the app's bundle ID, and can have anenvironmentofproductionordevelopment. APNs sends fail for an app that isn't listed or has no topic. A push relay with APNs on doesn't start until this lists at least one app. FLUXER_PUSH_ APNS_ DEFAULT_ ENVIRONMENT - The APNs environment the push service uses for a device that registered without one. Use
productionordevelopment. When it's empty, it usesproduction. FLUXER_PUSH_APNS_ENABLED- Whether the push service sends mobile notifications through Apple Push Notification service with your own credentials. Use
trueorfalse. When it's empty, APNs is off. FLUXER_PUSH_APNS_KEY_ID- The ID of your APNs signing key, from your Apple developer account.
FLUXER_PUSH_APNS_PRIVATE_KEY- Your APNs signing key as PEM text. Set this or
FLUXER_PUSH_APNS_PRIVATE_KEY_PATH, and this one wins when both are set. Keep it secret. FLUXER_PUSH_APNS_PRIVATE_KEY_PATH- The path to your APNs signing key file inside the push service. Keep it secret.
FLUXER_PUSH_APNS_TEAM_ID- Your Apple developer team ID.
FLUXER_PUSH_FCM_APPS- The apps the push service sends to through FCM, as a JSON array of objects that each have an
app_idand can have aproject_id. An app with no entry or noproject_idusesFLUXER_PUSH_FCM_PROJECT_ID. A push relay with FCM on doesn't start until this lists at least one app. FLUXER_PUSH_FCM_CLIENT_EMAIL- The client email of your Firebase service account. When it's empty, the push service reads
FLUXER_and takes the client email from the service account file it points to.PUSH_ FCM_ SERVICE_ ACCOUNT_ JSON_ PATH FLUXER_PUSH_FCM_ENABLED- Whether the push service sends mobile notifications through Firebase Cloud Messaging with your own credentials. Use
trueorfalse. When it's empty, FCM is off. FLUXER_PUSH_FCM_PRIVATE_KEY- The private key of your Firebase service account as PEM text. When it's empty, the push service uses
FLUXER_PUSH_FCM_PRIVATE_KEY_PATHor the key in the service account JSON. Keep it secret. FLUXER_PUSH_FCM_PRIVATE_KEY_PATH- The path to your Firebase service account private key inside the push service. The push service uses it when
FLUXER_PUSH_FCM_PRIVATE_KEYis empty. Keep it secret. FLUXER_PUSH_FCM_PROJECT_ID- Your Firebase project ID. When it's empty, the push service reads
FLUXER_and takes the project ID from the service account file it points to.PUSH_ FCM_ SERVICE_ ACCOUNT_ JSON_ PATH FLUXER_PUSH_ FCM_ SERVICE_ ACCOUNT_ JSON_ PATH - The path to your Firebase service account JSON file inside the push service. The push service loads the project ID, client email and private key from it when those settings are empty.
FLUXER_PUSH_FCM_TOKEN_URI- The OAuth token URL the push service uses for FCM. When it's empty, it uses
https://oauth2.. Change it only for a proxy or a test double. Keep it secret.googleapis.com/ token FLUXER_PUSH_SERVICE_APNS_BASE_URL- A URL that replaces the APNs host in both environments, for a test double only. When it's empty, the push service uses Apple's own hosts.
FLUXER_PUSH_SERVICE_FCM_BASE_URL- The FCM host the push service sends to. When it's empty, it uses
https://fcm.googleapis.com. Change it only to send through a proxy or to a test double. FLUXER_PUSH_ SERVICE_ MANAGED_ RELAY_ HOSTS - Hostnames, separated by commas, of the push relay that Fluxer runs. When it's empty, the push service uses
push.fluxer.com. It sends to these hosts only once relay consent is accepted. FLUXER_PUSH_ SERVICE_ OWN_ RELAY_ HOSTS - Hostnames, separated by commas, of a push relay your instance runs itself. The push service sends mobile app notifications addressed to these hosts directly to APNs or FCM with its own credentials.
FLUXER_PUSH_SERVICE_PRIVATE_HOSTS- Hostnames, separated by commas, that push endpoints may use even when they resolve to private or loopback addresses, such as a ntfy service on your own network. The push service refuses every other such endpoint.
FLUXER_PUSH_ SERVICE_ QUEUE_ CAPACITY - How many notification jobs the push service queues at once, from 1 to 1000000. When it's empty, it uses
10000. FLUXER_PUSH_ SERVICE_ RELAY_ CONSENT_ ACCEPTED - Whether this push service accepts the push relay privacy notice, which lets it send through the relay Fluxer runs. The push service encrypts each notification for the device it goes to, so the relay, Apple and Google can't read what it says. They can still see that a notification was sent, when, and the device it's for. Use
true,1oryesto accept. Withfalse,0,noor an empty value, the push relay setting of the instance decides. FLUXER_PUSH_ SERVICE_ SEND_ CONCURRENCY - How many provider requests the push service sends at once across all jobs, from 1 to 65536. When it's empty, it uses
256. FLUXER_VAPID_EMAIL- The contact email Fluxer sends to browser push services with its VAPID key. When it's empty, Fluxer uses
admin@followed byFLUXER_DOMAIN. Set it if that mailbox doesn't exist.
FLUXER_CACHE_PURGE_ADAPTER- How Fluxer purges cached copies of deleted or replaced media from your CDN or caching proxy. Use
none,httporcontroller. When it's empty, Fluxer usesnoneand sends no purges. FLUXER_CACHE_ PURGE_ CONTROLLER_ ENDPOINT - The purge URL of the Controller edge site that serves your media, as an absolute https URL without credentials. Fluxer uses it when
FLUXER_CACHE_PURGE_ADAPTERiscontroller. FLUXER_CACHE_ PURGE_ CONTROLLER_ TIMEOUT_ MS - How long each Controller purge request may take, in milliseconds from 1000 to 10000. When it's empty, Fluxer uses
10000. FLUXER_CACHE_ PURGE_ CONTROLLER_ TOKEN - The Controller API key Fluxer sends as a bearer token with each purge request, in visible ASCII characters with no spaces. Keep it secret.
FLUXER_CACHE_PURGE_HTTP_ENDPOINT- The URL the worker posts purge requests to when
FLUXER_CACHE_PURGE_ADAPTERishttp, as an absolute http or https URL without credentials. Your endpoint then purges the listed media URL prefixes from every cache in front of the media. FLUXER_CACHE_ PURGE_ HTTP_ TIMEOUT_ MS - How long each purge request to
FLUXER_CACHE_PURGE_HTTP_ENDPOINTmay take, in milliseconds from 1000 to 10000. When it's empty, Fluxer uses10000. FLUXER_CACHE_PURGE_HTTP_TOKEN- The bearer token Fluxer sends in the Authorization header of each purge request to
FLUXER_CACHE_PURGE_HTTP_ENDPOINT, in visible ASCII characters with no spaces. Keep it secret. FLUXER_CLAMAV_ENABLED- Whether Fluxer scans uploads for viruses with ClamAV. Use
trueorfalse. When it's empty, Fluxer usesfalse. PointFLUXER_CLAMAV_HOSTat your own. FLUXER_CLAMAV_FAIL_OPEN- Whether uploads go through when a ClamAV scan fails, such as when Fluxer can't connect to the scanner or gets no usable answer. Use
trueorfalse. When it's empty, Fluxer rejects the upload. FLUXER_CLAMAV_HOST- The hostname or address of your ClamAV scanner. When it's empty, Fluxer uses
127.0.0.1. FLUXER_CLAMAV_PORT- The port of your ClamAV scanner. When it's empty, Fluxer uses
3310. FLUXER_MEDIA_ PROXY_ ATTACHMENT_ SIGNATURE_ MODE - Whether attachment downloads need a signed link. Use
off,reportorenforce. When it's empty, it's off. Withreport, the media proxy logs downloads it would refuse, and withenforceit refuses them. Both needFLUXER_, and rexctl makes a key the first time you turn it on if that's empty. rexctl also calls itMEDIA_ PROXY_ ATTACHMENT_ URL_ SECRETS_ BASE64 media.signed_attachments. FLUXER_MEDIA_ PROXY_ ATTACHMENT_ URL_ SECRETS_ BASE64 - Keys that sign attachment URLs, separated by commas. Each is standard base64 that decodes to at least 32 bytes. The first entry signs and every entry verifies. To rotate keys, add the new key last and restart Fluxer. Then move it first and restart again. Every process can then verify the new key before any process signs with it. Remove the old key 24 hours later. Removing a key ends the data package links it signed. When it's empty, Fluxer returns unsigned attachment URLs. Keep the value secret.
FLUXER_MEDIA_ PROXY_ CORS_ ALLOWED_ ORIGINS - The web origins, separated by commas, that may load media through CORS when
FLUXER_MEDIA_PROXY_CORS_MODEisreportorenforce. When it's empty, the media proxy uses the public origin. The desktop app is always allowed. FLUXER_MEDIA_PROXY_CORS_MODE- Whether the media proxy checks the Origin of media requests. Use
off,reportorenforce. When it's empty, it's off. Withreport, the media proxy logs requests it would refuse, and withenforceit refuses them. A request with no Origin header is always served. FLUXER_MEDIA_ PROXY_ MAX_ ENCODE_ DURATION_ MS - The longest animation the media proxy encodes, in milliseconds from 100 to 600000. When it's empty, it uses
30000. FLUXER_MEDIA_ PROXY_ MAX_ ENCODE_ FRAMES - The most frames the media proxy encodes in one animation, from 1 to 100000. When it's empty, it uses
20000. FLUXER_MEDIA_ PROXY_ MAX_ NATIVE_ TRANSFORMS - How many image transforms the media proxy runs at once, from 1 to 128. When it's empty, it uses the number of CPU cores, kept between 2 and 8.
FLUXER_MEDIA_PROXY_NSFW_THRESHOLD- The NSFW classifier score, from 0.0 to 1.0, that the media proxy uses as its cutoff. When it's empty, it uses
0.85. FLUXER_MEDIA_PROXY_READ_ONLY- Whether the media proxy refuses to write to storage. Use
trueorfalse. When it's empty, it writes as usual. FLUXER_MEDIA_ PROXY_ SHUTDOWN_ GRACE_ MS - How long the media proxy waits for open requests and transforms to finish when it stops, in milliseconds from 0 to 300000. When it's empty, it uses
30000. FLUXER_MEDIA_ PROXY_ SOCKET_ IO_ TIMEOUT_ MS - How long the media proxy waits on socket input and output, in milliseconds from 1 to 300000. When it's empty, it uses
30000. FLUXER_MEDIA_ PROXY_ TRANSFORM_ CACHE_ BYTES - Default
67108864, 64 MiB - How much memory the media proxy's transform cache may use, in bytes from 0 to 4 GiB. When it's empty, it uses
268435456, which is 256 MiB. FLUXER_MEDIA_ PROXY_ TRANSFORM_ CACHE_ MAX_ ENTRY_ BYTES - The largest transform result the media proxy caches, in bytes from 0 to 512 MiB. When it's empty, it uses
67108864, which is 64 MiB. FLUXER_MEDIA_ PROXY_ TRANSFORM_ CACHE_ TTL_ MS - How long the media proxy keeps a transform result in its cache, in milliseconds from 0 to 3600000. When it's empty, it uses
120000. FLUXER_MEDIA_ PROXY_ TRANSFORM_ TIMEOUT_ MS - How long one media transform may take, in milliseconds from 1000 to 120000. When it's empty, the media proxy uses
15000. FLUXER_MEDIA_ PROXY_ UPLOAD_ RELAY_ BUFFERED_ RETRY_ BYTES - The largest upload the relay keeps in memory so it can retry the object store write, in bytes from 0 to 256 MiB. Larger uploads stream to the store without a retry. When it's empty, the relay uses
33554432, which is 32 MiB. FLUXER_MEDIA_ PROXY_ UPLOAD_ RELAY_ BUFFERED_ RETRY_ TOTAL_ BYTES - Default
67108864, 64 MiB - How much memory all buffered relay uploads may use together, in bytes from 0 to 8 GiB. An upload that would go past it streams without a retry. When it's empty, the relay uses
536870912, which is 512 MiB. FLUXER_MEDIA_ PROXY_ UPLOAD_ RELAY_ ENDPOINT - The upload relay URL the API hands to clients. When it's empty, the API uses the public origin followed by
/media. FLUXER_MEDIA_ PROXY_ UPLOAD_ RELAY_ KEEP_ DIRECT_ COUNTRIES - Two-letter country codes, separated by commas, whose clients upload to the object store directly and skip the relay. It needs the GeoIP database in
FLUXER_GEOIP_DB_PATH, and browsers can only upload directly whenFLUXER_S3_PUBLIC_ENDPOINTis set. When it's empty or there's no GeoIP database, every client uses the relay and browsers never see the internal store address. FLUXER_MEDIA_ PROXY_ UPLOAD_ RELAY_ MAX_ BODY_ BYTES - The largest single request body the relay accepts, which is one object or one part of a multipart upload, in bytes from 1 to 5 GiB. It can't be more than
FLUXER_. When it's empty, the relay usesMEDIA_ PROXY_ UPLOAD_ RELAY_ SPOOL_ MAX_ TOTAL_ BYTES 524288000, which is 500 MiB. FLUXER_MEDIA_ PROXY_ UPLOAD_ RELAY_ S3_ TIMEOUT_ MS - How long the relay waits for an upload's write to the object store, in milliseconds from 1000 to 3600000. When it's empty, it uses
900000. FLUXER_MEDIA_ PROXY_ UPLOAD_ RELAY_ SPOOL_ CHUNK_ BYTES - The chunk size the relay uses when it writes upload bodies to its spool on disk, in bytes from 64 KiB to 64 MiB. When it's empty, it uses
1048576, which is 1 MiB. FLUXER_MEDIA_ PROXY_ UPLOAD_ RELAY_ SPOOL_ DIR - The directory where the relay spools upload bodies and the media proxy keeps copies of large audio and video files it inspects. It must be writable. When it's empty, the media proxy uses the system temporary directory.
FLUXER_MEDIA_ PROXY_ UPLOAD_ RELAY_ SPOOL_ MAX_ TOTAL_ BYTES - Default
2147483648, 2 GiB - The most disk space the spool may use at once, in bytes from 0 to 256 GiB. It must be at least
FLUXER_, and relay uploads share it with copies of large audio and video files.MEDIA_ PROXY_ UPLOAD_ RELAY_ MAX_ BODY_ BYTES FLUXER_MEDIA_ PROXY_ UPLOAD_ RELAY_ TOKEN_ TTL_ SECS - How long an upload relay token stays valid, in seconds. When it's empty, the API uses
900. Keep it secret. FLUXER_MEDIA_ PROXY_ WORKER_ QUEUE_ CAPACITY - How many transforms may wait in the media proxy's queue, from 1 to 8192. When it's empty, the queue holds eight times
FLUXER_.MEDIA_ PROXY_ MAX_ NATIVE_ TRANSFORMS FLUXER_NSFW_SERVICE_ENDPOINT- The URL of an outside NSFW classifier the media proxy calls. When it's empty, the media proxy calls none.
Gateway
Section titled "Gateway"FLUXER_GATEWAY_ GUILD_ VISITOR_ SESSIONS_ FLOOR - The fewest visitor sessions one community allows, however few members it has. When it's empty, the gateway uses
500. FLUXER_GATEWAY_ GUILD_ VISITOR_ SESSIONS_ MAX - The most visitor sessions one community allows, however many members it has. A visitor views a community without joining it. When it's empty, the gateway uses
10000. FLUXER_GATEWAY_ GUILD_ VISITOR_ SESSIONS_ PER_ IP - How many visitor sessions one IPv4 address or one IPv6
/64network can have in a single community at once. When it's empty, the gateway uses20. FLUXER_GATEWAY_ GUILD_ VISITOR_ SESSIONS_ PER_ MEMBER - How many visitor sessions a community allows for each of its members, kept between the floor and the maximum. When it's empty, the gateway uses
2. FLUXER_GATEWAY_ GUILD_ VISITOR_ SESSIONS_ PER_ USER - How many visitor sessions one account can have in a single community at once. When it's empty, the gateway uses
5. FLUXER_GATEWAY_ HTTP_ FAILURE_ THRESHOLD - The fewest failed requests from the gateway to the API in 10 seconds that open its circuit breaker. The breaker also needs at least 20 requests in that time, with more than half of them failed. It then stops further requests for a while. When it's empty, the gateway uses
0, and only the other two conditions count. FLUXER_GATEWAY_ HTTP_ RECOVERY_ TIMEOUT_ MS - How long the circuit breaker for gateway requests to the API stays open before it tries again, in milliseconds. When it's empty, the gateway uses
15000. FLUXER_GATEWAY_ HTTP_ RPC_ MAX_ CONCURRENCY - How many HTTP requests the gateway can have open to the API at once. When it's empty, the gateway uses
512. FLUXER_GATEWAY_ MEDIA_ PROXY_ ENDPOINT - The public media URL the gateway uses to build avatar links in push notifications. When it's empty, the gateway uses
FLUXER_MEDIA_ENDPOINT, or the public origin followed by/media. FLUXER_GATEWAY_ NATS_ RPC_ MAX_ HANDLERS - How many NATS RPC requests the gateway works on at once. When it's empty, the gateway uses
512. FLUXER_GATEWAY_ PRESENCE_ PUSH_ BUFFER_ MAX_ BYTES - The most bytes of push notifications the gateway keeps back for one user while one of their sessions is active. A value of
0turns off this limit. When it's empty, the gateway uses1048576, which is 1 MiB. FLUXER_GATEWAY_ PRESENCE_ PUSH_ BUFFER_ MAX_ ENTRIES - The most push notifications the gateway keeps back for one user while one of their sessions is active, dropping the oldest first. A value of
0keeps none. When it's empty, the gateway uses128. FLUXER_GATEWAY_PUSH_ENABLED- Whether the gateway sends push notifications through the push service. Use
trueorfalse. When it's empty, the gateway usestrue. FLUXER_GATEWAY_ PUSH_ ENROLLED_ CLEAR_ NOTIFICATIONS_ ENABLED - Whether the gateway asks the push service to clear a channel's push notifications once the user has caught up on that channel. Use
trueorfalse. When it's empty, the gateway usestrue. FLUXER_GATEWAY_ PUSH_ OUTBOX_ REQUEST_ TIMEOUT_ MS - How long the gateway waits for the push service to respond to one push request, in milliseconds. When it's empty, the gateway uses
100000. FLUXER_GATEWAY_ STATIC_ CDN_ ENDPOINT - The public static file URL the gateway uses to build default avatar links in push notifications. When it's empty, the gateway uses
FLUXER_STATIC_CDN_ENDPOINT, and the public origin when that is empty too. FLUXER_GATEWAY_ZSTD_WINDOW_LOG- The base 2 logarithm of the zstd window the gateway compresses websocket traffic with, from 10 to 21. Values outside that range count as the nearest end. Larger values compress better and use more memory per connection. When it's empty, the gateway uses
14.
Web app
Section titled "Web app"DISCOVERY_REFRESH_INTERVAL_MS- Default
5000 - How often the app-proxy service fetches the discovery document, in milliseconds. The document has the branding saved in the admin panel, such as the product name, icons and custom CSS. Values under 1 second count as 1 second. A failed fetch is retried with a growing delay of up to five minutes.
FLUXER_APP_ PROXY_ INDEX_ UPSTREAM_ URL - An http or https URL that the app-proxy service fetches the web app's
index.htmlfrom. When it's empty, the app-proxy service serves theindex.htmlbuilt into its image. FLUXER_APP_ PROXY_ MANIFEST_ SCOPE_ EXTENSIONS - HTTPS origins with no path, separated by commas or spaces, that the app-proxy service adds to the
scope_extensionslist of the web app manifest. An installed web app keeps them inside its window. Each origin must serve/.well-known/for this web app. The service logs and drops invalid entries.web-app-origin-association FLUXER_APP_ PROXY_ SAME_ ORIGIN_ HOSTS - Extra hostnames that serve the web app, separated by commas or spaces, with no scheme, port or path. On these hostnames, the web app uses the same hostname for the API and for the gateway and media endpoints that share the API's host. Each one must route
/api,/gatewayand/medialike the main one. FLUXER_CSP_EXTRA_CONNECT_SRC- Extra sources the app-proxy service adds to the connect-src directive of the web app's Content-Security-Policy, separated by commas or spaces, such as
wss://livekit.example.com. A ws or wss source also allows the matching http or https source. FLUXER_CSP_EXTRA_DEFAULT_SRC- Extra sources the app-proxy service adds to the default-src directive of the web app's Content-Security-Policy, separated by commas or spaces. Set one only when a browser must connect to an origin the built-in policy doesn't allow.
FLUXER_CSP_EXTRA_FONT_SRC- Extra sources the app-proxy service adds to the font-src directive of the web app's Content-Security-Policy, separated by commas or spaces.
FLUXER_CSP_EXTRA_FRAME_SRC- Extra sources the app-proxy service adds to the frame-src directive of the web app's Content-Security-Policy, separated by commas or spaces.
FLUXER_CSP_EXTRA_IMG_SRC- Extra sources the app-proxy service adds to the img-src directive of the web app's Content-Security-Policy, separated by commas or spaces, such as
https://cdn.example.com. FLUXER_CSP_EXTRA_MANIFEST_SRC- Extra sources the app-proxy service adds to the manifest-src directive of the web app's Content-Security-Policy, separated by commas or spaces.
FLUXER_CSP_EXTRA_MEDIA_SRC- Extra sources the app-proxy service adds to the media-src directive of the web app's Content-Security-Policy, separated by commas or spaces.
FLUXER_CSP_EXTRA_SCRIPT_SRC- Extra sources the app-proxy service adds to the script-src directive of the web app's Content-Security-Policy, separated by commas or spaces, such as
https://analytics.example.com. FLUXER_CSP_EXTRA_STYLE_SRC- Extra sources the app-proxy service adds to the style-src directive of the web app's Content-Security-Policy, separated by commas or spaces.
FLUXER_CSP_EXTRA_WORKER_SRC- Extra sources the app-proxy service adds to the worker-src directive of the web app's Content-Security-Policy, separated by commas or spaces.
FLUXER_CSP_REPORT_URI- One http or https URL that browsers send Content-Security-Policy violation reports to. When it's empty, the policy has no report-uri.
API and worker
Section titled "API and worker"FLUXER_API_DONATION_PROXY_KEY- An older way to add one trusted caller that may pass the client address for the donation and purchase rate limits. Fluxer's marketing site uses it. It must be at least 32 characters. Your own instance can leave it empty. Keep it secret.
FLUXER_API_HEADERS_TIMEOUT_MS- How long a client may take to send the request line and headers to the API, in milliseconds from 1000 to 3600000. When it's empty, the API uses
30000. It is capped atFLUXER_API_REQUEST_TIMEOUT_MS. FLUXER_API_IP_BAN_EXEMPT_IPS- IP addresses and CIDR ranges, separated by commas, that IP bans never apply to, such as
203.0.113.7,2001:db8::/56. The API refuses to start when an entry doesn't parse. FLUXER_API_ MAX_ CONCURRENT_ FORM_ UPLOADS - How many attachment files sent as multipart form data the API streams to the object store at once, from 1 to 10000. Each one can use up to about 25 MiB of memory. A file that waits more than 10 seconds for a turn gets 503 with a Retry-After header. When it's empty, the API uses
16. FLUXER_API_MAX_INFLIGHT_REQUESTS- How many requests the API handles at once before it responds to new ones with 503 and a Retry-After header, from 1 to 100000. When it's empty, the API uses
512. FLUXER_API_REQUEST_TIMEOUT_MS- How long a client may take over a whole request to the API, in milliseconds from 1000 to 3600000. Raise it for large uploads or slow links. When it's empty, the API uses
120000. FLUXER_API_TRUSTED_CALLERS- A JSON array of trusted callers, such as a front end that calls the API for its own visitors. Each entry is an object with a
name, akeyof at least 32 characters andbuckets, a non-empty list of the rate limit buckets the caller may pass a client address for. The caller sends its key in theX-Fluxer-Internal-Keyheader and the client address in theX-Fluxer-Client-IPheader. Keep it secret. FLUXER_API_ WORKER_ LANE_ CONCURRENCY_ OVERRIDES - How many jobs each worker lane runs at once, as a JSON object that maps each lane to a whole number of at least 1. The lanes are
realtime,unfurl,lifecycle,batchandcrosspost. Lanes left out use 10, 20, 8, 12 and 8 in that order, scaled down on any machine with fewer than 4 CPU cores. FLUXER_CLIENT_IP_HEADER_NAME- The request header that has the client's IP address. When it's empty, the api, worker, admin and gateway services and the push relay use
x-forwarded-for, the header the edge sets. FLUXER_IP_BAN_REFRESH_INTERVAL_MS- How often the API reloads its IP ban list, in milliseconds. When it's empty, the API uses
300000. A value of0turns the periodic reload off. FLUXER_TRUST_CLIENT_IP_HEADER- Default
true - Whether Fluxer trusts the client address in the
FLUXER_CLIENT_IP_HEADER_NAMEheader. Usetrueorfalse. The api, worker, admin and gateway services and the push relay use it. Withfalse, they use the address of the connection, which behind the edge is the edge itself.
Instance and branding
Section titled "Instance and branding"Fluxer uses the product name, images, theme colour and status page links set here only until the setup wizard finishes or someone saves branding in the admin panel. After that it uses the values saved in the admin panel.
FLUXER_ACCOUNT_IDENTITY- How people sign in on a new instance. Use
usernameoremail. Fluxer uses it only on the first start with no saved sign-in method. When it's empty, Fluxer usesemailif email delivery is set up andusernameotherwise. WhenFLUXER_INSTANCE_SETUP_CONFIGUREDistrueor any account exists, Fluxer uses email sign-in with random tags and ignores this. Otherwise the setup wizard asks again, and its answer replaces this value. FLUXER_AGE_POLICY_ENABLED- Whether a date of birth typed in is not enough for mature content in the regions in
FLUXER_. UseAGE_ POLICY_ RESTRICTED_ REGIONS trueorfalse. When it's empty, this is on only whileFLUXER_lists at least one region, and off when that list is empty.AGE_ POLICY_ RESTRICTED_ REGIONS FLUXER_AGE_ POLICY_ RESTRICTED_ REGIONS - The regions where a date of birth typed in is not enough for mature content, separated by commas. Use a country code such as
GBor a country and region code such asUS-MS. When it's empty andFLUXER_AGE_POLICY_ENABLEDistrue, Fluxer usesGBandBR. FLUXER_APP_FAVICON_DARK_URL- The URL of the favicon for browsers in dark mode.
FLUXER_APP_FAVICON_URL- The URL of the favicon.
FLUXER_APP_ICON_URL- The URL of the app icon.
FLUXER_APP_LOGO_URL- The URL of the logo.
FLUXER_APP_PRODUCT_NAME- The product name the apps show and Fluxer uses in emails and system messages. When it's empty or set to
Fluxeron a self-hosted instance, Fluxer uses the hostname of the web app. FLUXER_APP_SIGN_IN_BACKDROP_URL- The URL of the image behind the sign-in screen.
FLUXER_APP_ STATUS_ PAGE_ INCIDENT_ HISTORY_ URL - The URL of the incident history on your status page. The apps don't use it yet.
FLUXER_APP_STATUS_PAGE_URL- The URL of your public status page. The web app links to it when loading takes a long time. Fluxer checks whether it is an Instatus page. If it is, the web app also shows its current incidents and maintenance.
FLUXER_APP_SYMBOL_URL- The URL of the symbol mark.
FLUXER_APP_THEME_COLOR- The brand colour of the web app and the browser theme colour, as a hex value such as
#4641d9. FLUXER_APP_WORDMARK_URL- The URL of the wordmark.
FLUXER_AUTO_JOIN_INVITE_CODE- One or more invite codes, separated by commas or spaces. A new account that signs up without an invite of its own joins the communities these invites lead to.
FLUXER_DELETION_ GRACE_ PERIOD_ HOURS - How many hours a deleted account can still be recovered before Fluxer removes it. When it's empty, Fluxer uses
336, which is 14 days. FLUXER_DISCOVERY_ENABLED- Whether community discovery is on. Use
trueorfalse. Withfalse, discovery search, joining from discovery and discovery applications are turned off. When it's empty, Fluxer usestrue. FLUXER_DISCOVERY_MIN_MEMBER_COUNT- How many members a community needs before it can be listed in discovery. When it's empty, Fluxer uses
1. FLUXER_INSTANCE_SETUP_CONFIGURED- Whether a new instance starts as already set up. Use
trueorfalse. Withtrue, the setup wizard is skipped and registration opens without making the first account an admin. Once a setup state is saved, this has no effect. When it's empty, Fluxer usesfalse. FLUXER_REPORT_RETENTION_DAYS- How many days the daily retention job keeps a resolved report, from 1 to 36500. It then deletes the report, its evidence copies and its search entry. A child safety report is kept for at least 365 days after it's resolved, and a report with an enforcement decision for at least 365 days after the decision. The job never deletes a pending report or a report under a legal hold. When it's empty, the worker uses
365. FLUXER_REPORT_RETENTION_DRY_RUN- Whether the report retention job only counts what it would delete and changes nothing. Use
trueorfalse. When it's empty, the worker usesfalse. FLUXER_TAG_STYLE- How usernames are tagged on a new instance that signs in by email. Use
nonefor unique usernames with no tag orrandomfor a random tag on every account. Username sign-in always usesnone. Fluxer uses this setting only on the first start. When it's empty, Fluxer usesnone. WhenFLUXER_INSTANCE_SETUP_CONFIGUREDistrueor any account exists, Fluxer uses random tags and ignores this. Otherwise the setup wizard asks again, and its answer replaces this value.
Billing
Section titled "Billing"The admin panel can also save whether billing is on, the Stripe keys and the prices. A value saved there is used first, and a saved price list replaces all of FLUXER_STRIPE_PRICES.
FLUXER_STRIPE_ENABLED- Whether Fluxer sells subscriptions through Stripe. Use
trueorfalse. When it's empty, Fluxer usesfalse. FLUXER_STRIPE_LEGACY_PRICES- Stripe price IDs you have retired, as a JSON object with the same keys as
FLUXER_STRIPE_PRICESand a list of IDs for each. Subscriptions on these prices keep renewing. FLUXER_STRIPE_PRICES- Your Stripe price IDs as one JSON object, keyed by plan and currency such as
monthly_usd. FLUXER_STRIPE_SECRET_KEY- Your Stripe secret API key. Keep it secret.
FLUXER_STRIPE_WEBHOOK_SECRET- The signing secret of your Stripe webhook. Keep it secret.
FLUXER_VISIONARIES_GUILD_ID- The ID of the community that people who buy Visionary are added to. When it's empty on a self-hosted instance, nobody is added.
FLUXER_VISIONARIES_ GUILD_ VISIONARY_ ROLE_ ID - The ID of the role Fluxer gives Visionary buyers in the community set by
FLUXER_VISIONARIES_GUILD_ID. Set it wheneverFLUXER_VISIONARIES_GUILD_IDis set.
Integrations
Section titled "Integrations"The admin panel can also save the Bluesky settings and keys, and its values win.
FLUXER_API_UNFURL_IGNORED_HOSTS- Hostnames, separated by commas, that Fluxer never makes link previews for. A link matches only when its host is exactly one of these.
FLUXER_AUTH_BLUESKY_CLIENT_NAME- The app name Bluesky shows when someone links their account. When it's empty, Bluesky shows
Fluxer, even whenFLUXER_APP_PRODUCT_NAMEis set. FLUXER_AUTH_BLUESKY_CLIENT_URI- Fluxer doesn't use this value. Bluesky shows the API address as the home page of your instance.
FLUXER_AUTH_BLUESKY_ENABLED- Whether people can link a Bluesky account to their profile. Use
trueorfalse. It needsFLUXER_AUTH_BLUESKY_KEYS. When it's empty, Fluxer usesfalse. FLUXER_AUTH_BLUESKY_KEYS- The keys Fluxer signs Bluesky account linking requests with, as a JSON array of objects with a
kidand aprivate_keyor aprivate_key_path, which is an absolute path inside the api and worker services. Keys saved in the admin panel replace these. Keep it secret. FLUXER_AUTH_BLUESKY_LOGO_URI- The logo URL Bluesky shows for your instance.
FLUXER_AUTH_BLUESKY_POLICY_URI- The privacy policy URL Bluesky shows for your instance.
FLUXER_AUTH_BLUESKY_TOS_URI- The terms of service URL Bluesky shows for your instance.
FLUXER_BLOCKLIST_FEEDS_ENABLED- Whether the worker downloads the URLhaus and PhishTank link lists every six hours and the MalwareBazaar file hashes every twelve hours, and checks posted links and uploads against them. Use
trueorfalse. When it's empty, this is off on a self-hosted instance. FLUXER_BREACHED_ PASSWORD_ CHECK_ ENABLED - Whether Fluxer rejects passwords found in known data breaches, by sending the first five characters of the password's SHA-1 hash to
api.pwnedpasswords.com. Usetrueorfalse. When it's empty, this is off on a self-hosted instance. Keep it secret. FLUXER_GEOIP_DB_PATH- Where the api and worker load the MaxMind GeoIP database from, as a file path or an
s3://bucket/keyURL. An s3 URL needs adownload_pathquery parameter with an absolute path. FLUXER_KLIPY_API_KEY- The Klipy API key for GIF search and Klipy link previews. A key saved in the admin panel is used first. GIF search is off when neither is set. Keep it secret.
FLUXER_YOUTUBE_API_KEY- The YouTube Data API key Fluxer uses for YouTube link previews. A key saved in the admin panel is used first. The unfurl service calls the API from your server. The key needs YouTube Data API v3 enabled, a daily quota above 0, and an application restriction of None or IP addresses. A key restricted to websites (HTTP referrers) always fails. When Google rejects the key, the unfurl logs show the reason it gives, such as
quotaExceededorAPI_KEY_HTTP_REFERRER_BLOCKED. Keep the value secret.
Memory and performance
Section titled "Memory and performance"rexctl sizes most of these from the memory and CPUs of the machine. Without rexctl, Fluxer sizes its threads from the CPUs it can use each time it starts and uses the defaults below for the rest. A value you set here replaces the size they work out.
FLUXER_API_NODE_HEAP_MB- Default
640 - The Node heap limit of the api service, in MB, set as
--max-old-space-size. When it's empty, Node uses 60 per cent of the memory available to the service. Keep it below the memory limit of the machine or pod that runs Fluxer. FLUXER_API_NODE_OPTIONS- Extra Node flags for the api service, added to the end of
NODE_OPTIONS, such as--dns-result-order=ipv4first. Set the heap withFLUXER_API_NODE_HEAP_MB. While that is empty, a--max-old-space-sizeflag here has no effect. FLUXER_API_ POSTGRES_ MAX_ CONNECTIONS - Default
15 - The size of the PostgreSQL connection pool of the api service, from 1 to 1000.
FLUXER_ERLANG_ DIRTY_ CPU_ SCHEDULERS - How many dirty CPU schedulers the Erlang VM of the gateway runs, a positive whole number. When it's empty, the gateway uses the normal scheduler count.
FLUXER_ERLANG_DIRTY_IO_SCHEDULERS- How many dirty I/O schedulers the Erlang VM of the gateway runs, a positive whole number. When it's empty, the gateway uses the normal scheduler count kept between 2 and 4.
FLUXER_ERLANG_SCHEDULERS- How many normal schedulers the Erlang VM of the gateway or a bouncer node runs, a positive whole number. When it's empty, the gateway uses the service's CPU count, no lower than
FLUXER_ERLANG_SCHEDULERS_MINand no higher thanFLUXER_ERLANG_SCHEDULERS_MAX. FLUXER_ERLANG_SCHEDULERS_MAX- The highest scheduler count the gateway picks from the CPU count when
FLUXER_ERLANG_SCHEDULERSis empty. When it's empty, the gateway uses16, and a bouncer node uses4. FLUXER_ERLANG_SCHEDULERS_MIN- The lowest scheduler count the gateway picks from the CPU count when
FLUXER_ERLANG_SCHEDULERSis empty. When it's empty, the gateway uses2. FLUXER_GIFS_SHARD_CACHE_MAX_BYTES- Default
67108864, 64 MiB - How many bytes the gifs service may use for its cache, at least
16777216, which is 16 MiB. FLUXER_KV_POSTGRES_MAX_BYTES- Default
536870912, 512 MiB - How many bytes the key-value tables may use when
FLUXER_KV_MODEispostgres. Above it, writes of key-value data fail until the cleanup that runs every five minutes brings the tables under it again, like Valkey does at its memory limit. FLUXER_KV_ POSTGRES_ MAX_ CONNECTIONS - Default
15 - The size of the PostgreSQL connection pool for key-value data in each api and worker process when
FLUXER_KV_MODEispostgres, at least 1. Each process also holds one more connection for LISTEN. KeepFLUXER_above the total for all processes together.POSTGRES_ SERVER_ MAX_ CONNECTIONS FLUXER_LIVEKIT_GOMEMLIMIT- Default
272MiB - The soft memory limit of the Go runtime in LiveKit, set as its
GOMEMLIMIT. FLUXER_MALLOC_ARENA_MAX- How many memory arenas the glibc allocator may create in the push, admin, snowflakes, users, gifs, messages and unfurl services, set as their
MALLOC_ARENA_MAX. Lower values use less memory. Fluxer sizes it from the CPUs it can use. FLUXER_MEDIA_ PROXY_ TOKIO_ WORKER_ THREADS - How many worker threads the async runtime of the media proxy uses, set as its
TOKIO_WORKER_THREADS. Fluxer sizes it from the CPUs it can use. FLUXER_MEILISEARCH_ MAX_ INDEXING_ MEMORY - Default
128mb - The memory Meilisearch aims to stay under while indexing, set as its
MEILI_MAX_INDEXING_MEMORY, such as512mb. Meilisearch can go a little over it. FLUXER_MEILISEARCH_ MAX_ INDEXING_ THREADS - Default
1 - The most threads Meilisearch may use for indexing, set as its
MEILI_MAX_INDEXING_THREADS. FLUXER_MESSAGES_ POSTGRES_ MAX_ CONNECTIONS - Default
4 - The size of the PostgreSQL connection pool of the messages service.
FLUXER_NATS_MAX_FILE_STORE- Default
10GB - NATS JetStream
max_file_store, the most disk space JetStream may use for its streams, such as20GB. FLUXER_NATS_MAX_MEMORY_STORE- Default
64MB - NATS JetStream
max_memory_store, the most memory JetStream may use for streams kept in memory, such as128MB. FLUXER_POSTGRES_ AUTOVACUUM_ ANALYZE_ SCALE_ FACTOR - Default
0.02 - PostgreSQL
autovacuum_analyze_scale_factor, the share of a table's rows that must change before autovacuum analyses it again, as a fraction such as0.05. FLUXER_POSTGRES_ AUTOVACUUM_ MAX_ WORKERS - Default
3 - PostgreSQL
autovacuum_max_workers, how many autovacuum processes can run at once. FLUXER_POSTGRES_ AUTOVACUUM_ VACUUM_ COST_ LIMIT - Default
2000 - PostgreSQL
autovacuum_vacuum_cost_limit, how much disk work autovacuum may do before it pauses. Higher values let it finish sooner. FLUXER_POSTGRES_ AUTOVACUUM_ VACUUM_ SCALE_ FACTOR - Default
0.05 - PostgreSQL
autovacuum_vacuum_scale_factor, the share of a table's rows that must be updated or deleted before autovacuum vacuums it, as a fraction such as0.1. FLUXER_POSTGRES_ AUTOVACUUM_ WORK_ MEM - Default
128MB - PostgreSQL
autovacuum_work_mem, the memory each autovacuum worker can use. FLUXER_POSTGRES_BGWRITER_DELAY- Default
50ms - PostgreSQL
bgwriter_delay, how long the background writer sleeps between rounds, such as200ms. FLUXER_POSTGRES_ BGWRITER_ LRU_ MAXPAGES - Default
1000 - PostgreSQL
bgwriter_lru_maxpages, the most buffers the background writer writes to disk in one round. FLUXER_POSTGRES_ CHECKPOINT_ COMPLETION_ TARGET - Default
0.9 - PostgreSQL
checkpoint_completion_target, how much of the time between checkpoints a checkpoint spreads its writes over, as a fraction. FLUXER_POSTGRES_ DEFAULT_ STATISTICS_ TARGET - Default
200 - PostgreSQL
default_statistics_target, how much detail the query planner's table statistics have. Higher values give better plans and a slower ANALYZE. FLUXER_POSTGRES_ EFFECTIVE_ CACHE_ SIZE - Default
768MB - PostgreSQL
effective_cache_size, how much disk cache the query planner assumes there is. It allocates no memory. FLUXER_POSTGRES_ EFFECTIVE_ IO_ CONCURRENCY - Default
200 - PostgreSQL
effective_io_concurrency, how many disk requests PostgreSQL may have in flight at once. High values suit SSDs. FLUXER_POSTGRES_JIT- Default
off - PostgreSQL
jit, whether PostgreSQL compiles parts of queries with JIT. Useonoroff. FLUXER_POSTGRES_ MAINTENANCE_ WORK_ MEM - Default
256MB - PostgreSQL
maintenance_work_mem, the memory one VACUUM, CREATE INDEX or ALTER TABLE can use. FLUXER_POSTGRES_ MAX_ PARALLEL_ WORKERS - Default
8 - PostgreSQL
max_parallel_workers, how many parallel query workers can run at once across the database. FLUXER_POSTGRES_ MAX_ PARALLEL_ WORKERS_ PER_ GATHER - Default
2 - PostgreSQL
max_parallel_workers_per_gather, how many parallel workers one step of a query can use. FLUXER_POSTGRES_MAX_WAL_SIZE- Default
2GB - PostgreSQL
max_wal_size, how large the write-ahead log may grow before PostgreSQL starts a checkpoint. FLUXER_POSTGRES_MIN_WAL_SIZE- Default
80MB - PostgreSQL
min_wal_size, the write-ahead log space PostgreSQL keeps for reuse after a checkpoint. FLUXER_POSTGRES_RANDOM_PAGE_COST- Default
1.1 - PostgreSQL
random_page_cost, how costly the query planner thinks fetching a random disk page is next to a sequential one. Values near 1 suit SSDs. FLUXER_POSTGRES_ SERVER_ MAX_ CONNECTIONS - Default
150 - PostgreSQL
max_connections, how many connections the database accepts in total. Keep it above the sum of all pool sizes, counting each worker replica. FLUXER_POSTGRES_TRACK_IO_TIMING- Default
on - PostgreSQL
track_io_timing, whether PostgreSQL times its disk I/O for its statistics. Useonoroff. FLUXER_POSTGRES_WAL_BUFFERS- Default
16MB - PostgreSQL
wal_buffers, the memory for write-ahead log data not yet written to disk. FLUXER_POSTGRES_WAL_COMPRESSION- Default
zstd - PostgreSQL
wal_compression, how full-page images in the write-ahead log are compressed, such aslz4,pglzoroff. PostgreSQL 14 takes onlyonoroff, and there Fluxer usesonunless you set it. FLUXER_POSTGRES_WORK_MEM- Default
4MB - PostgreSQL
work_mem, the memory each sort or hash step in a query can use before it spills to disk. FLUXER_RUST_PROCESS- How the Rust services run.
singleruns snowflakes, users, messages, gifs, unfurl, push, app-proxy and admin in one process, andper-serviceruns one process for each. When it's empty, a new instance pickssingleon its first start and keeps it. An older instance with no choice saved usesper-service. rexctl also calls itrust.process. FLUXER_RUST_ SERVER_ TOKIO_ WORKER_ THREADS - How many worker threads the async runtime uses when
FLUXER_RUST_PROCESSissingle, set asTOKIO_WORKER_THREADSof the one Rust process. Fluxer sizes it from the CPUs it can use. FLUXER_TOKIO_WORKER_THREADS- How many worker threads the async runtime uses in the app-proxy, push, admin, snowflakes, users, gifs, messages and unfurl services, set as their
TOKIO_WORKER_THREADS. Fluxer sizes it from the CPUs it can use. FLUXER_USERS_ POSTGRES_ MAX_ CONNECTIONS - Default
4 - The size of the PostgreSQL connection pool of the users service.
Older storage and cache services
Section titled "Older storage and cache services"Only installs with Valkey or SeaweedFS read these.
FLUXER_MEILISEARCH_ENV- Default
production - The Meilisearch environment, set as its
MEILI_ENV. Useproductionordevelopment. Withproduction, Meilisearch refuses to start without a master key of at least 16 bytes and turns off its search preview. FLUXER_MEILISEARCH_NO_ANALYTICS- Default
true - Whether Meilisearch stops sending usage data to the Meilisearch team, set as its
MEILI_NO_ANALYTICS. Usetrueorfalse. FLUXER_SEAWEEDFS_ GARBAGE_ THRESHOLD - Default
0.1 - The share of deleted space in a volume that makes SeaweedFS compact it, as a fraction, set as its
-master.garbageThreshold. FLUXER_SEAWEEDFS_GOMEMLIMIT- Default
380MiB - The soft memory limit of the Go runtime in SeaweedFS, set as its
GOMEMLIMIT. Go can't see how much memory the other parts use, so keep it well below the memory of the machine. FLUXER_SEAWEEDFS_INIT_ATTEMPTS- Default
60 - How many rounds, about two seconds apart, the bundled object store's setup job tries to create the buckets and set up access before it gives up.
FLUXER_SEAWEEDFS_ S3_ CONCURRENT_ UPLOADS - Default
5 - How many uploads the bundled object store writes at once, set as its
-s3.concurrentFileUploadLimit. More uploads wait for a free slot. Each upload in progress uses up to 32 MB of memory in SeaweedFS. FLUXER_SEAWEEDFS_TELEMETRY- Default
false - Whether SeaweedFS sends usage data to the SeaweedFS project, set as its
-master.telemetry. Usetrueorfalse. FLUXER_SEAWEEDFS_UPLOADS_TTL- Default
1d - How long the bundled object store keeps files in the uploads bucket before it deletes them, such as
1dor12h. Useoffto keep them. A new value applies to uploads written after the next start, and files already stored keep their old expiry. FLUXER_SEAWEEDFS_VOLUME_GROWTH- Default
1 - How many volumes SeaweedFS creates at once when a bucket has no writable volume left, set as its
WEED_MASTER_VOLUME_GROWTH_COPY_1. FLUXER_SEAWEEDFS_VOLUME_MAX- Default
10000 - The most volumes the SeaweedFS volume store may have, set as its
-volume.max. FLUXER_SEAWEEDFS_ VOLUME_ SIZE_ LIMIT_ MB - Default
1024 - The size in MB a volume can grow to before SeaweedFS stops writing to it, set as its
-master.volumeSizeLimitMB. FLUXER_VALKEY_APPENDFSYNC- Default
everysec - Valkey
appendfsync, how often Valkey flushes its append-only file to disk. Usealways,everysecorno. Witheverysec, a crash can lose the last second of writes. FLUXER_VALKEY_MAXMEMORY- Default
128mb - Valkey
maxmemory, the most memory Valkey may use for stored data. The append-only file buffer and memory fragmentation come on top. FLUXER_VALKEY_MAXMEMORY_POLICY- Default
noeviction - Valkey
maxmemory-policy, what Valkey does when its data grows toFLUXER_VALKEY_MAXMEMORY. Withnoeviction, writes fail when Valkey is full and no data is dropped. FLUXER_VALKEY_SAVE- Valkey
save, when Valkey writes RDB snapshots, as pairs of seconds and changes such as3600 1 300 100. When it's empty, snapshots are off and Valkey keeps its data in the append-only file alone.
Internal ports
Section titled "Internal ports"Every part inside the instance listens on fixed ports on one loopback address.
FLUXER_LOOPBACK_ADDRESS- Default
127.0.0.1 - The loopback address the internal parts listen on, from
127.0.0.1to127.255.255.254. rexctl gives each extra instance on a machine its own.
Logs and health checks
Section titled "Logs and health checks"FLUXER_GATEWAY_LOGGER_LEVEL- The gateway log level. Use
debug,info,notice,warning,error,critical,alertoremergency. An empty or unknown value givesinfo.LOGGER_LEVELwins over this one. FLUXER_LIVEKIT_LOG_LEVEL- Default
info - How much LiveKit logs. Use
debug,info,warnorerror. FLUXER_MEILISEARCH_LOG_LEVEL- Default
WARN - How much Meilisearch logs, set as its
MEILI_LOG_LEVEL. UseOFF,ERROR,WARN,INFO,DEBUGorTRACE. LOG_LEVEL- How much the api and worker log. Use
trace,debug,info,warn,errororfatal. An empty or unknown value givesinfo. LOGGER_LEVEL- The gateway log level, which wins over
FLUXER_GATEWAY_LOGGER_LEVELand takes the same levels. An empty or unknown value falls back toFLUXER_GATEWAY_LOGGER_LEVEL. RUST_LOG- The log filter of media-proxy, app-proxy, admin, push, snowflakes, users, gifs, messages and unfurl, in tracing EnvFilter format such as
debugoroff. An empty or invalid filter givesinfo.
Values from files
Section titled "Values from files"Every setting also takes its value from a file, such as a Docker or Kubernetes secret.
- Set
NAME_FILEto the path of the file. - Leave
NAMEunset. Fluxer refuses to start when both have a value. - Let the account Fluxer runs as read the file.