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"
|
2026-03-08 21:33:27 +00:00
|
|
|
- name: PHP_MEMORY_LIMIT
|
|
|
|
|
value: "512M"
|
|
|
|
|
- name: PHP_UPLOAD_LIMIT
|
|
|
|
|
value: "16G"
|
2024-09-28 20:10:44 +00:00
|
|
|
# - name: mail_smtpdebug
|
|
|
|
|
# value: "true"
|
|
|
|
|
# - name: loglevel
|
|
|
|
|
# value: "0"
|
2026-03-14 08:20:51 +00:00
|
|
|
configs:
|
|
|
|
|
performance.config.php: |
|
|
|
|
|
<?php
|
|
|
|
|
$CONFIG = array(
|
|
|
|
|
'loglevel' => 2,
|
|
|
|
|
'mail_smtpdebug' => false,
|
|
|
|
|
);
|
2026-03-08 21:33:27 +00:00
|
|
|
phpConfigs:
|
|
|
|
|
zzz-custom.ini: |
|
|
|
|
|
max_execution_time = 300
|
|
|
|
|
max_input_time = 300
|
|
|
|
|
default_socket_timeout = 300
|
2026-03-14 08:20:51 +00:00
|
|
|
opcache.enable_file_override = 1
|
|
|
|
|
apc.shm_size = 128M
|
2026-03-08 21:37:39 +00:00
|
|
|
extraVolumes:
|
|
|
|
|
- name: apache-tuning
|
|
|
|
|
configMap:
|
|
|
|
|
name: nextcloud-apache-tuning
|
|
|
|
|
extraVolumeMounts:
|
|
|
|
|
- name: apache-tuning
|
|
|
|
|
mountPath: /etc/apache2/mods-available/mpm_prefork.conf
|
|
|
|
|
subPath: mpm_prefork.conf
|
2024-09-28 20:10:44 +00:00
|
|
|
|
2026-03-12 23:27:12 +00:00
|
|
|
internalDatabase:
|
|
|
|
|
enabled: false
|
2026-01-17 20:50:29 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
externalDatabase:
|
2026-03-12 23:27:12 +00:00
|
|
|
enabled: true
|
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
|
2026-03-12 23:27:12 +00:00
|
|
|
database: nextcloud
|
2026-03-17 07:39:29 +00:00
|
|
|
existingSecret:
|
|
|
|
|
secretName: nextcloud-db-creds
|
|
|
|
|
passwordKey: DB_PASSWORD
|
2024-09-28 20:10:44 +00:00
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
|
enabled: true
|
2026-03-11 23:23:37 +00:00
|
|
|
existingClaim: nextcloud-data-iscsi
|
2024-09-28 20:10:44 +00:00
|
|
|
|
|
|
|
|
accessMode: ReadWriteOnce
|
2026-03-11 23:23:37 +00:00
|
|
|
size: 20Gi
|
2024-09-28 20:10:44 +00:00
|
|
|
|
|
|
|
|
startupProbe:
|
|
|
|
|
enabled: true
|
2026-02-28 23:32:28 +00:00
|
|
|
initialDelaySeconds: 30
|
2024-09-28 20:10:44 +00:00
|
|
|
periodSeconds: 10
|
2026-03-12 10:01:20 +00:00
|
|
|
timeoutSeconds: 30
|
2026-02-28 23:32:28 +00:00
|
|
|
failureThreshold: 60
|
2024-09-28 20:10:44 +00:00
|
|
|
successThreshold: 1
|
2024-12-30 14:01:38 +00:00
|
|
|
|
2026-03-08 21:33:27 +00:00
|
|
|
livenessProbe:
|
|
|
|
|
enabled: true
|
2026-03-12 10:01:20 +00:00
|
|
|
initialDelaySeconds: 30
|
|
|
|
|
periodSeconds: 60
|
|
|
|
|
timeoutSeconds: 30
|
|
|
|
|
failureThreshold: 10
|
2026-03-08 21:33:27 +00:00
|
|
|
successThreshold: 1
|
|
|
|
|
|
|
|
|
|
readinessProbe:
|
|
|
|
|
enabled: true
|
2026-03-12 10:01:20 +00:00
|
|
|
initialDelaySeconds: 30
|
|
|
|
|
periodSeconds: 60
|
|
|
|
|
timeoutSeconds: 30
|
|
|
|
|
failureThreshold: 5
|
2026-03-08 21:33:27 +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]+)?.*"
|
2026-03-15 19:17:44 +00:00
|
|
|
dependency.kyverno.io/wait-for: "mysql.dbaas:3306,redis.redis:6379"
|
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-14 21:46:49 +00:00
|
|
|
memory: 8Gi
|
2026-02-28 16:26:19 +00:00
|
|
|
requests:
|
2026-03-13 19:16:06 +00:00
|
|
|
cpu: 50m
|
|
|
|
|
memory: 256Mi
|
2026-02-28 16:26:19 +00:00
|
|
|
|
2025-08-17 19:27:34 +00:00
|
|
|
cronjob:
|
|
|
|
|
enabled: true
|
2026-03-14 21:46:49 +00:00
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
memory: 384Mi
|
|
|
|
|
requests:
|
|
|
|
|
cpu: 25m
|
|
|
|
|
memory: 384Mi
|