Tips for large trees, heavy usage, and stable deployments.
Storage layout
- Use a dedicated uploads directory instead of mounting the root of a huge share.
- If mounting a large share, use a subfolder so scans and permission fixes are scoped.
Scans and ownership
SCAN_ON_START=trueis meant for first run or occasional rescan.- Keep
SCAN_ON_START=falsefor normal restarts. CHOWN_ON_START=trueis helpful initially; disable once perms are correct.
PHP tuning (manual installs)
- Enable OPcache.
- Increase
realpath_cache_sizeandrealpath_cache_ttl. - Set
upload_max_filesizeandpost_max_size>=TOTAL_UPLOAD_SIZE.
Reverse proxy
- Set
client_max_body_size 0;(Nginx) if you allow very large uploads. - Set
FR_PUBLISHED_URLto avoid URL generation issues.
Encrypted folders
Encryption at rest disables range requests and some features; this is expected and can affect perceived performance for large media.