Launch week 20% off FileRise Pro Use code LAUNCH20 at checkout. Ends Jan 27, 2026 (EST). Get Pro

Environment Variables (Full Reference)

Reference guides and how-tos for FileRise core and Pro.

Last updated Jan 20, 2026

This page lists all known environment variables read by FileRise core and the Docker startup script.

Notes:

  • Defaults reflect current code. Your deployment may override them.
  • Docker sets some defaults via the image (see Dockerfile/start.sh).

Core behavior

VariableDefaultNotes
TIMEZONEAmerica/New_YorkApp timezone (used by PHP and UI).
DATE_TIME_FORMATm/d/y h:iAUI date/time format.
TOTAL_UPLOAD_SIZE5GMax total upload size per request; used to set PHP upload limits and Apache LimitRequestBody in Docker.
SECUREautoSet true when behind HTTPS to generate secure cookies/links.
PERSISTENT_TOKENS_KEYdefault_please_change_this_keyEncrypts stored secrets (tokens, permissions, admin config). Always change in production.
FR_IGNORE_REGEXemptyNewline-separated regex patterns to ignore entries in listings/indexing; env overrides admin config.

Startup / container (Docker)

VariableDefaultNotes
SCAN_ON_STARTfalseWhen true, runs scripts/scan_uploads.php on container start.
CHOWN_ON_STARTtrueNormalizes ownership/permissions on uploads/ + metadata/ at startup.
PUID99Remaps www-data UID (Dockerfile default).
PGID100Remaps www-data GID (Dockerfile default).
LOG_STREAMerrorLog streaming to stdout: error, access, both, or none.
HTTP_PORT80Override Apache Listen 80 in the container.
HTTPS_PORT443Override Apache Listen 443 in the container.
SERVER_NAMEFileRiseSets Apache ServerName.

URLs, proxy, and subpaths

VariableDefaultNotes
FR_PUBLISHED_URLemptyCanonical public URL for share links, portals, redirects. Env wins over admin config.
FR_BASE_PATHautoForce a subpath when your proxy strips prefixes (overrides auto-detect).
FR_TRUSTED_PROXIESemptyComma-separated IPs/CIDRs allowed to supply the client IP header.
FR_IP_HEADERX-Forwarded-ForHeader to trust for the real client IP.
SHARE_URLautoOverride share endpoint URL (use FR_PUBLISHED_URL if possible).

WebDAV

VariableDefaultNotes
FR_WEBDAV_MAX_UPLOAD_BYTES0WebDAV upload cap in bytes (0 = unlimited).

Antivirus / ClamAV

VariableDefaultNotes
VIRUS_SCAN_ENABLEDemptyIf set, overrides admin setting (true/false).
VIRUS_SCAN_CMDclamscanScanner command (clamscan, clamdscan, or wrapper).
VIRUS_SCAN_EXCLUDE_DIRSemptyComma or newline separated paths relative to the source root (example: snapshot, tmp). For Pro sources you can prefix with source id (s3:/snapshot).
CLAMAV_AUTO_UPDATEtrueRun freshclam on startup when root.

Encryption at rest

VariableDefaultNotes
FR_ENCRYPTION_MASTER_KEYempty32-byte master key (hex 64 chars or base64:...). If set, admin key file is ignored.

Media

VariableDefaultNotes
FR_FFMPEG_PATHemptyPath to FFmpeg for video thumbnails. Env locks the admin field.

OIDC / SSO

VariableDefaultNotes
FR_OIDC_AUTO_CREATEtrueAuto-create users on first OIDC login.
FR_OIDC_GROUP_CLAIMgroupsClaim name for IdP groups.
FR_OIDC_ADMIN_GROUPfilerise-adminsIdP group that maps to FileRise admin.
FR_OIDC_PRO_GROUP_PREFIXemptyOptional prefix for mapping IdP groups to Pro groups.
FR_OIDC_ALLOW_DEMOTEunsetIf set (1/true), allows IdP to demote admins.
FR_OIDC_DEBUGfalseEnable OIDC debug logging when set.

Pro

VariableDefaultNotes
FR_PRO_LICENSEemptyInline Pro license string.
FR_PRO_LICENSE_FILE/var/www/users/proLicense.txtPlain-text license file path.
FR_PRO_BUNDLE_DIR/var/www/users/proPro bundle directory.
FR_PRO_SEARCH_ENABLEDemptyForce Search Everywhere on/off (Pro only).

Testing / development

VariableDefaultNotes
FR_TEST_UPLOAD_DIRemptyOverride upload dir for tests/dev.
FR_TEST_USERS_DIRemptyOverride users dir for tests/dev.
FR_TEST_META_DIRemptyOverride metadata dir for tests/dev.