secubox-deb/packages/secubox-nextcloud/conf/nextcloud.toml.example
CyberMind c454a374fc
feat(secubox-nextcloud): v1.3.2 — ship nextcloud.toml.example (closes #284) (#285)
Operators previously had to grep the FastAPI / nextcloudctl source to
find the right key names. Symptom: Connection URLs panel on the SecuBox
config UI showed `http://localhost:8080` (the default fallback) even
after the new nc.gk2.secubox.in vhost was live.

* conf/nextcloud.toml.example — flat-key template documenting all keys
  both api/main.py and sbin/nextcloudctl read. Includes the ssl_*,
  http_port, and install knobs (domain, admin_user, db_type).
* debian/rules — ships to /etc/secubox/nextcloud.toml.example.

Pure-config addition. No service code change.

Co-authored-by: CyberMind-FR <gandalf@Gk2.net>
2026-05-21 07:47:21 +02:00

31 lines
1.5 KiB
Plaintext

# /etc/secubox/nextcloud.toml — SecuBox Nextcloud module
# Copy this file to /etc/secubox/nextcloud.toml and adjust as needed.
# Both the FastAPI control plane (/api/v1/nextcloud/) and `nextcloudctl`
# read flat (un-sectioned) keys from this file.
#
# Restart `secubox-nextcloud.service` after editing for changes to take
# effect on the FastAPI side.
# ── LXC ──────────────────────────────────────────────────────────────
container_name = "nextcloud"
# v2.11.1 canonical layout — match secubox-authelia and siblings.
lxc_path = "/data/lxc"
data_path = "/data/volumes/nextcloud"
# ── Public app URL ───────────────────────────────────────────────────
# Used by /api/v1/nextcloud/connections to build WebDAV/CalDAV/CardDAV
# URLs displayed in the SecuBox config UI.
#
# When ssl_enabled = true, the UI shows https://${ssl_domain}/…
# Otherwise it shows http://localhost:${http_port}/… (dev fallback).
ssl_enabled = true
ssl_domain = "nc.gk2.secubox.in"
http_port = 80
# ── Nextcloud install knobs (used by `nextcloudctl install`) ─────────
domain = "nc.gk2.secubox.in"
admin_user = "ncadmin"
# Storage backend for Nextcloud's metadata DB. "sqlite" is the simple
# default; switch to "mariadb" or "pgsql" for multi-user deployments.
db_type = "sqlite"