-
-
Notifications
You must be signed in to change notification settings - Fork 36
Encryption at Rest
Ryan edited this page Jan 16, 2026
·
1 revision
FileRise supports folder-level encryption at rest using libsodium secretstream. It encrypts files on disk while allowing normal access through the app.
- PHP with libsodium (
sodiumextension) enabled. - A master key configured via environment variable or key file.
Option A (recommended for containers):
FR_ENCRYPTION_MASTER_KEY=base64:... # 32-byte key
Accepted formats:
- 64 hex characters (32 bytes)
-
base64:...(32 bytes after decode)
Option B (admin-generated key file):
- File:
/var/www/metadata/encryption_master.key - If
FR_ENCRYPTION_MASTER_KEYis set, the key file is ignored.
Encrypted folders disable:
- WebDAV
- Sharing
- ZIP create/extract
- ONLYOFFICE editing
Encrypted files are decrypted on download. Range requests are intentionally disabled for encrypted files.
- Back up
/var/www/uploadsand/var/www/metadatatogether. - Keep the master key safe. Losing it makes encrypted data unrecoverable.