2024-09-20 02:26:43 +00:00
|
|
|
nextcloud:
|
2024-09-28 20:10:44 +00:00
|
|
|
host: nextcloud.viktorbarzin.me
|
2024-09-20 02:26:43 +00:00
|
|
|
trustedDomains:
|
2024-09-28 20:10:44 +00:00
|
|
|
- nextcloud.viktorbarzin.me
|
|
|
|
|
# mail:
|
|
|
|
|
# enabled: true
|
|
|
|
|
# # the user we send email as
|
|
|
|
|
# fromAddress: nextcloud@viktorbarzin.me
|
|
|
|
|
# # the domain we send email from
|
|
|
|
|
# domain: viktorbarzin.me
|
|
|
|
|
# smtp:
|
|
|
|
|
# host: mail.viktorbarzin.me
|
|
|
|
|
# secure: starttls
|
|
|
|
|
# port: 587
|
|
|
|
|
# authtype: LOGIN
|
|
|
|
|
# name: nextcloud@viktorbarzin.me
|
|
|
|
|
# password:
|
2024-09-20 02:26:43 +00:00
|
|
|
extraEnv:
|
|
|
|
|
- name: TRUSTED_PROXIES
|
2024-09-28 20:10:44 +00:00
|
|
|
value: "10.0.0.0/8"
|
|
|
|
|
# - name: mail_smtpdebug
|
|
|
|
|
# value: "true"
|
|
|
|
|
# - name: loglevel
|
|
|
|
|
# value: "0"
|
|
|
|
|
|
2026-01-17 20:50:29 +00:00
|
|
|
# internalDatabase:
|
|
|
|
|
# enabled: false
|
|
|
|
|
|
|
|
|
|
externalRedis:
|
2024-09-28 20:10:44 +00:00
|
|
|
enabled: true
|
[ci skip] Infrastructure hardening: security, monitoring, reliability, maintainability
Phase 1 - Critical Security:
- Netbox: move hardcoded DB/superuser passwords to variables
- MeshCentral: disable public registration, add Authentik auth
- Traefik: disable insecure API dashboard (api.insecure=false)
- Traefik: configure forwarded headers with Cloudflare trusted IPs
Phase 2 - Security Hardening:
- Add security headers middleware (HSTS, X-Frame-Options, nosniff, etc.)
- Add Kyverno pod security policies in audit mode (privileged, host
namespaces, SYS_ADMIN, trusted registries)
- Tighten rate limiting (avg=10, burst=50)
- Add Authentik protection to grampsweb
Phase 3 - Monitoring & Alerting:
- Add critical service alerts (PostgreSQL, MySQL, Redis, Headscale,
Authentik, Loki)
- Increase Loki retention from 7 to 30 days (720h)
- Add predictive PV filling alert (predict_linear)
- Re-enable Hackmd and Privatebin down alerts
Phase 4 - Reliability:
- Add resource requests/limits to Redis, DBaaS, Technitium, Headscale,
Vaultwarden, Uptime Kuma
- Increase Alloy DaemonSet memory to 512Mi/1Gi
Phase 6 - Maintainability:
- Extract duplicated tiers locals to terragrunt.hcl generate block
(removed from 67 stacks)
- Replace hardcoded NFS IP 10.0.10.15 with var.nfs_server (114
instances across 63 files)
- Replace hardcoded Redis/PostgreSQL/MySQL/Ollama/mail host references
with variables across ~35 stacks
- Migrate xray raw ingress resources to ingress_factory modules
2026-02-23 22:05:28 +00:00
|
|
|
host: ${redis_host}
|
2026-01-17 20:50:29 +00:00
|
|
|
|
|
|
|
|
# Currently not in use; we use the nextcloud.db sqlite3
|
|
|
|
|
externalDatabase:
|
|
|
|
|
enabled: false
|
2024-09-28 20:10:44 +00:00
|
|
|
type: mysql
|
[ci skip] Infrastructure hardening: security, monitoring, reliability, maintainability
Phase 1 - Critical Security:
- Netbox: move hardcoded DB/superuser passwords to variables
- MeshCentral: disable public registration, add Authentik auth
- Traefik: disable insecure API dashboard (api.insecure=false)
- Traefik: configure forwarded headers with Cloudflare trusted IPs
Phase 2 - Security Hardening:
- Add security headers middleware (HSTS, X-Frame-Options, nosniff, etc.)
- Add Kyverno pod security policies in audit mode (privileged, host
namespaces, SYS_ADMIN, trusted registries)
- Tighten rate limiting (avg=10, burst=50)
- Add Authentik protection to grampsweb
Phase 3 - Monitoring & Alerting:
- Add critical service alerts (PostgreSQL, MySQL, Redis, Headscale,
Authentik, Loki)
- Increase Loki retention from 7 to 30 days (720h)
- Add predictive PV filling alert (predict_linear)
- Re-enable Hackmd and Privatebin down alerts
Phase 4 - Reliability:
- Add resource requests/limits to Redis, DBaaS, Technitium, Headscale,
Vaultwarden, Uptime Kuma
- Increase Alloy DaemonSet memory to 512Mi/1Gi
Phase 6 - Maintainability:
- Extract duplicated tiers locals to terragrunt.hcl generate block
(removed from 67 stacks)
- Replace hardcoded NFS IP 10.0.10.15 with var.nfs_server (114
instances across 63 files)
- Replace hardcoded Redis/PostgreSQL/MySQL/Ollama/mail host references
with variables across ~35 stacks
- Migrate xray raw ingress resources to ingress_factory modules
2026-02-23 22:05:28 +00:00
|
|
|
host: ${mysql_host}
|
2024-09-28 20:10:44 +00:00
|
|
|
user: nextcloud
|
|
|
|
|
password: ${db_password}
|
|
|
|
|
databse: nextcloud
|
|
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
|
enabled: true
|
[ci skip] complete NFS CSI migration: complex stacks + platform modules
Migrate remaining multi-volume stacks and all platform modules from
inline NFS volumes to CSI-backed PV/PVC with nfs-truenas StorageClass
(soft,timeo=30,retrans=3 mount options).
Complex stacks: openclaw (4 vols), immich (8 vols), frigate (2 vols),
nextcloud (2 vols + old PV replaced), rybbit (1 vol)
Remaining stacks: affine, ebook2audiobook, f1-stream, osm_routing,
real-estate-crawler
Platform modules: monitoring (prometheus, loki, alertmanager PVs
converted from native NFS to CSI), redis, dbaas, technitium,
headscale, vaultwarden, uptime-kuma, mailserver, infra-maintenance
2026-03-02 01:24:07 +00:00
|
|
|
existingClaim: nextcloud-data
|
2024-09-28 20:10:44 +00:00
|
|
|
|
|
|
|
|
accessMode: ReadWriteOnce
|
|
|
|
|
size: 100Gi
|
|
|
|
|
|
|
|
|
|
startupProbe:
|
|
|
|
|
enabled: true
|
2026-02-28 23:32:28 +00:00
|
|
|
initialDelaySeconds: 30
|
2024-09-28 20:10:44 +00:00
|
|
|
periodSeconds: 10
|
2026-02-28 23:32:28 +00:00
|
|
|
timeoutSeconds: 10
|
|
|
|
|
failureThreshold: 60
|
2024-09-28 20:10:44 +00:00
|
|
|
successThreshold: 1
|
2024-12-30 14:01:38 +00:00
|
|
|
|
|
|
|
|
podAnnotations:
|
|
|
|
|
diun.enable: "true"
|
|
|
|
|
diun.include_tags: "^[0-9]+(?:.[0-9]+)?(?:.[0-9]+)?.*"
|
2025-08-17 19:27:34 +00:00
|
|
|
|
|
|
|
|
collabora:
|
2026-02-15 17:20:47 +00:00
|
|
|
enabled: false # Using onlyoffice instead
|
2025-08-17 19:27:34 +00:00
|
|
|
|
2026-02-28 16:26:19 +00:00
|
|
|
resources:
|
|
|
|
|
limits:
|
2026-03-01 17:41:18 +00:00
|
|
|
cpu: "16"
|
2026-03-01 17:16:03 +00:00
|
|
|
memory: 6Gi
|
2026-02-28 16:26:19 +00:00
|
|
|
requests:
|
|
|
|
|
cpu: 100m
|
2026-02-28 23:32:28 +00:00
|
|
|
memory: 1Gi
|
2026-02-28 16:26:19 +00:00
|
|
|
|
2025-08-17 19:27:34 +00:00
|
|
|
cronjob:
|
|
|
|
|
enabled: true
|