# Configuring NextCloud

## 📌 Purpose

This document outlines key configuration insights for the \*\*Nextcloud All-in-One (AIO)\*\* instance running at `cloud.mslspartners.com`. &gt; ⚠️ **Note:** *This instance is managed by Nextcloud AIO. Most settings shown here are auto-generated and should **not** be edited manually via `config.php`. Instead, use:* &gt; - The Nextcloud AIO web interface &gt; - Environment variables when launching the AIO container &gt; - The admin UI in Nextcloud for app and email configurations ---

## 🌐 Domain and Protocol

```
"overwritehost": "cloud.mslspartners.com",
"overwriteprotocol": "https",
"trusted_domains": [
    "localhost",
    "cloud.mslspartners.com"
],
"overwrite.cli.url": "https://cloud.mslspartners.com/"

```

\- These are set automatically based on AIO setup and HTTPS configuration - Trusted domains should be managed via the AIO panel or container setup ---

## 🧠 Caching (Managed by AIO)

```
"memcache.local": "\OC\Memcache\APCu",
"memcache.distributed": "\OC\Memcache\Redis",
"memcache.locking": "\OC\Memcache\Redis"

```

\- Redis and APCu are preconfigured in AIO - No manual configuration is required unless for advanced troubleshooting ---

## 📝 Logging

```
"loglevel": 2,
"log_type": "file",
"logfile": "/var/www/html/data/nextcloud.log",
"log_rotate_size": 10485760

```

\- Logs are written inside the Nextcloud container - You can access logs via the AIO logs interface or docker logs command ---

## 🔧 Maintenance &amp; Updates

```
"maintenance": false,
"upgrade.disable-web": true,
"updatedirectory": "/nc-updater"

```

\- Updates are handled automatically or via the AIO web UI - Do not perform upgrades using the traditional CLI or web updater ---

## 👥 User Limits &amp; AIO Flags

```
"one-click-instance": true,
"one-click-instance.user-limit": 100,
"one-click-instance.link": "https://nextcloud.com/all-in-one/"

```

\- Indicates this is an AIO deployment - The user limit can be adjusted via environment or licensing ---

## 💾 Storage

```
"datadirectory": "/mnt/ncdata"

```

\- 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 - Manual 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 (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 - Imaginary preview providers may be enabled for better performance ---

## 🧾 Notes

&gt; ✅ Last reviewed: **May 2025**  
&gt; 📍 Deployed at: `cloud.mslspartners.com`  
&gt; ⚠️ Use the AIO interface or container environment variables for changes  
&gt; 🛑 Do **not** manually edit `config.php` in production ---