Configuring NextCloud
๐ Purpose
This document outlines thekey productionconfiguration `config.php`insights for the **Nextcloud AIO*All-in-One (AIO)** instance running at `cloud.mslspartners.
. com`comIt> includesโ ๏ธ caching,Note: database,This logging,instance is managed by Nextcloud AIO. Most settings shown here are auto-generated and securityshould settingsnot necessarybe edited manually via config.php
. Instead, use: > - The Nextcloud AIO web interface > - Environment variables when launching the AIO container > - The admin UI in Nextcloud for a secureapp and performantemail deployment.configurations ---
```php๐ Domain and Protocol
"overwritehost": "cloud.mslspartners.com",
"overwriteprotocol": "https",
"trusted_domains": [
"localhost",
"cloud.mslspartners.com"
],
"overwrite.cli.url": "https://cloud.mslspartners.com/",
"instanceid":
- "installed":These trueare ```set automatically based on AIO setup and HTTPS configuration - Enforces HTTPS access - Restricts access to trustedTrusted domains -should Ensuresbe consistent URL accessmanaged via CLIthe AIO panel or container setup ---
๐ง CacheCaching Settings(Managed by AIO)
```php
"memcache.local": "\OC\Memcache\APCu",
"memcache.distributed": "\OC\Memcache\Redis",
"memcache.locking": "\OC\Memcache\Redis",
"redis":
- Redis and APCu are preconfigured in AIO - No manual configuration is usedrequired unless for distributedadvanced caching and file locking ---
๐ฆ Apps Paths
```php "apps_paths": [ { "path": "/var/www/html/apps", "url": "/apps", "writable": false }, { "path": "/var/www/html/custom_apps", "url": "/custom_apps", "writable": true } ] ``` - Separates official and custom apps - Only custom apps are writabletroubleshooting ---
๐ Logging Settings
```php
"loglevel": 2,
"log_type": "file",
"logfile": "/var/www/html/data/nextcloud.log",
"log_rotate_size": 10485760,10485760
"log.condition":
- Logs warningsare andwritten aboveinside the Nextcloud container - Auto-rotatesYou can access logs atvia 10MBthe - Enables auditAIO logs forinterface adminor activitiesdocker logs command ---
๐ ๐ง Maintenance & Updates
```php
"maintenance": false,
"upgrade.disable-web": true,
"updatedirectory": "/nc-updater",
"maintenance_window_start":
- ```Updates are handled automatically or via the AIO web UI - WebDo not perform upgrades areusing disabledthe (traditional CLI upgradeor enforced)web - Sets custom update directory and windowupdater ---
โ๏ธ๐ฅ EmailUser SettingsLimits & AIO Flags
```php "mail_smtpmode": "smtp" ``` - Uses SMTP to send emails ---
๐งน Data Retention Policies
```php "trashbin_retention_obligation": "auto, 30", "versions_retention_obligation": "auto, 30", "activity_expire_days": 30 ``` - Deletes files and version history older than 30 days automatically ---
๐ผ Preview Settings
```php "enable_previews": true, "preview_max_x": 2048, "preview_max_y": 2048, "jpeg_quality": 60, "enabledPreviewProviders": { "0": "OC\Preview\Imaginary", "1": "OC\Preview\Image", "2": "OC\Preview\MarkDown", "3": "OC\Preview\MP3", "4": "OC\Preview\TXT", "5": "OC\Preview\OpenDocument", "6": "OC\Preview\Movie", "7": "OC\Preview\Krita", "23": "OC\Preview\ImaginaryPDF" } ``` - Enables Imaginary preview backend and limits preview sizes - Reduces JPEG quality to save space ---
๐ Security Settings
```php "auth.bruteforce.protection.enabled": true, "ratelimit.protection.enabled": true, "files_external_allow_create_new_local": false ``` - Enables brute-force and rate-limiting protections - Disables creation of unsafe local external mounts ---
โก One-Click Deployment Info
```php
"one-click-instance": true,
"one-click-instance.user-limit": 100,
"one-click-instance.link": "https://nextcloud.com/all-in-one/"
```
- FlagsIndicates this asis an AIO instancedeployment - Soft-limitsThe usersuser forlimit performancecan reasonsbe adjusted via environment or licensing ---
โ๏ธ๐พ Additional SettingsStorage
```php
"allow_local_remote_servers": true, "htaccess.RewriteBase"datadirectory": "/",mnt/ncdata"
"DOMAIN":
- The data directory is mounted via Docker volume or external NFS - Ensure it has correct permissions (`www-data`) and is persistent ---
๐ Database (Internal)
"dbtype": "pgsql",
"dbtableprefix": "oc_",
"dbpersistent": false
```
- AIO uses an internal PostgreSQL container, linked automatically - EnablesManual access not required unless for debugging ---
๐ Security Settings
"auth.bruteforce.protection.enabled": true,
"ratelimit.protection.enabled": true
- Security features are enabled by default - Manage trusted proxies and TLS via your reverse proxy forwarding(e.g., HAProxy) ---
๐ผ Preview Configuration
"enable_previews": true,
"preview_max_x": 2048,
"preview_max_y": 2048,
"jpeg_quality": 60
- Preview options can be customized via admin panel - UsesImaginary PostgreSQLpreview asproviders themay databasebe engineenabled for better performance ---
๐งพ VerificationNotes
> โ
Last reviewed: **May 2025** 2025
> ๐ Environment:Deployed `at: cloud.mslspartners.
com` com
> ๐โ ๏ธ SensitiveUse fieldsthe omittedAIO interface or container environment variables for securitychanges
> ๐ Do not manually edit config.php
in production ---