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

Common environment variables

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

Last updated Jan 20, 2026

These environment variables can be set for Docker or other deployments. Most are optional unless marked required.

Full reference: https://github.com/error311/FileRise/wiki/Environment-Variables-Full-Reference

Core

VariableRequiredExampleWhat it does
TIMEZONEyesAmerica/New_YorkPHP / container timezone.
TOTAL_UPLOAD_SIZEyes10GMax total upload size per request; also sets PHP upload limits and Apache LimitRequestBody in the container.
SECUREyesfalseSet true when behind HTTPS / a reverse proxy so cookies/links use HTTPS.
PERSISTENT_TOKENS_KEYyeschange_me_super_secretEncrypts stored secrets (tokens, permissions, admin config). Do not leave default.
DATE_TIME_FORMATnoY-m-d H:iUI date/time format override.
FR_IGNORE_REGEXno^snapshot/Newline-separated regex patterns to ignore entries in listings/indexing.
SCAN_ON_STARTnotrueRun scan_uploads.php once at container start to index existing files.
CHOWN_ON_STARTnotrueRecursively normalizes ownership/permissions on uploads/ + metadata/ at startup.
PUIDno99Remap www-data user to this UID (e.g. Unraid).
PGIDno100Remap www-data group to this GID.

URLs, proxy, and subpaths

VariableRequiredExampleWhat it does
FR_PUBLISHED_URLnohttps://example.com/filesCanonical public URL for share links, portals, redirects.
FR_BASE_PATHno/filesForce subpath when proxy strips prefixes (overrides auto-detect).
FR_TRUSTED_PROXIESno127.0.0.1,10.0.0.0/8Comma-separated proxy IPs/CIDRs allowed to supply client IP headers.
FR_IP_HEADERnoX-Forwarded-ForHeader to trust for real client IP.
SHARE_URLnohttps://example.com/api/file/share.phpOverride share endpoint (use FR_PUBLISHED_URL if possible).

WebDAV and limits

VariableRequiredExampleWhat it does
FR_WEBDAV_MAX_UPLOAD_BYTESno0WebDAV upload cap in bytes (0 = unlimited).

Integrations and services

VariableRequiredExampleWhat it does
VIRUS_SCAN_ENABLEDnotrueEnable ClamAV upload scanning.
VIRUS_SCAN_CMDnoclamscanScanner command (clamscan, clamdscan, or wrapper).
VIRUS_SCAN_EXCLUDE_DIRSnosnapshot, tmpExclude upload paths relative to the source root (use s3:/snapshot for a specific source id).
CLAMAV_AUTO_UPDATEnotrueRun freshclam on startup (root only).
FR_FFMPEG_PATHno/usr/bin/ffmpegFFmpeg path for video thumbnails.
FR_ENCRYPTION_MASTER_KEYnobase64:...32-byte key for encryption-at-rest (hex or base64:...).

Runtime / container

VariableRequiredExampleWhat it does
HTTP_PORTno8080Override Apache Listen 80 inside the container.
HTTPS_PORTno8443Override Apache Listen 443 inside the container.
SERVER_NAMEnofiles.example.comSet Apache ServerName.
LOG_STREAMnobothStream logs to stdout: error, access, both, or none.

Pro (optional)

VariableRequiredExampleWhat it does
FR_PRO_LICENSEnofrp_...Inline Pro license string (optional).
FR_PRO_LICENSE_FILEno/var/www/users/proLicense.txtPlain-text license file path.
FR_PRO_BUNDLE_DIRno/var/www/users/proPro bundle directory (default under users).
FR_PRO_SEARCH_ENABLEDnotrueForce Search Everywhere on/off (Pro only).