Loading…
Loading documentation...
Configure Nextcloud trusted_proxies and OCC, Immich streaming uploads, and Vaultwarden WebSocket notifications behind HTTPS reverse proxies cleanly.
Commands checked on 2026-11-23 with Nextcloud 30, Immich v1.120+, Vaultwarden 1.32+, Docker Compose v2.
Clean, warning-free production configurations for Nextcloud, Immich, and Vaultwarden behind Caddy or Traefik—fixing HTTPS redirect loops, broken password sync WebSockets, mobile video upload timeouts, and proxy security check warnings.
443 cleanly; see Configure Caddy and Traefik reverse proxies reliably.internal_net) and shared proxy_net.Without explicit trusted_proxies, Nextcloud displays "The reverse proxy header configuration is incorrect" and breaks OAuth2/WebDAV clients over HTTPS:
docker exec -u www-data nextcloud php occ config:system:set trusted_proxies 0 --value="172.16.0.0/12"
docker exec -u www-data nextcloud php occ config:system:set trusted_proxies 1 --value="127.0.0.1"
docker exec -u www-data nextcloud php occ config:system:set overwritehost --value="cloud.YOUR_DOMAIN"
docker exec -u www-data nextcloud php occ config:system:set overwriteprotocol --value="https"
docker exec -u www-data nextcloud php occ config:system:set trusted_domains 1 --value="cloud.YOUR_DOMAIN"
Run background tasks via a sidecar container or systemd timer rather than sluggish AJAX page-load cron:
nextcloud-cron:
image: nextcloud:30-apache
restart: unless-stopped
volumes:
- nextcloud_html:/var/www/html
entrypoint: /cron.sh
networks:
- internal_net
Immich splits immich-server (API + web UI on port 2283) and immich-machine-learning (vector CLIP & facial recognition). Behind Nginx or Cloudflare tunnels, ensure unbuffered large uploads; behind Caddy, extend response_header_timeout:
photos.YOUR_DOMAIN {
reverse_proxy immich_server:2283 {
flush_interval -1
transport http {
dial_timeout 10s
response_header_timeout 300s
}
}
}
Ensure DB_HOSTNAME, REDIS_HOSTNAME, and UPLOAD_LOCATION live on a fast NVMe/ZFS dataset and use postgres:16-alpine or pgvecto-rs / vectorchord matching Immich's release compose pin rather than auto-upgrading PostgreSQL major tags unannounced.
Vaultwarden requires WEBSOCKET_ENABLED=true, DOMAIN, and a strong Argon2-hashed ADMIN_TOKEN so clients sync vault items instantly and unauthenticated signups stay disabled once your accounts exist:
docker exec -it vaultwarden /vaultwarden hash
Apply inside .env (chmod 600 .env):
DOMAIN=https://vault.YOUR_DOMAIN
WEBSOCKET_ENABLED=true
SIGNUPS_ALLOWED=false
INVITATIONS_ALLOWED=true
SHOW_PASSWORD_HINT=false
IP_HEADER=X-Forwarded-For
Modern Vaultwarden v1.30+ serves WebSockets natively on port 80 at /notifications/hub, so legacy port 3012 splitting is no longer required—only ensure your proxy allows WebSocket HTTP/1.1 Upgrade requests to pass unmodified.
Verify Nextcloud checks, Immich health endpoint, and Vaultwarden WebSocket headers:
docker exec -u www-data nextcloud php occ status
curl -fsS https://photos.YOUR_DOMAIN/api/server/ping
curl -fsS https://vault.YOUR_DOMAIN/alive
You should see installed: true, {"res":"pong"}, and HTTP 200 on /alive. Also open Nextcloud Administration settings -> Overview and confirm zero trusted-proxy or Strict-Transport-Security warnings remain.
overwriteprotocol is missing or Caddy passes http instead of https. Set overwriteprotocol to https via occ above and check curl -I https://cloud.YOUR_DOMAIN/login.413). Disable request buffering on Nginx/Traefik and verify available host disk space under UPLOAD_LOCATION.WEBSOCKET_ENABLED is false or upstream CDN/proxy kills idle WebSocket connections under 60s. Verify curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" https://vault.YOUR_DOMAIN/notifications/hub does not return 404.SIGNUPS_ALLOWED=false in Vaultwarden immediately after registering your users, and keep SIGNUPS_ALLOWED off on public servers.library/ + Postgres dumps (pg_dumpall) backed up daily.db.sqlite3 safely via sqlite3 /data/db.sqlite3 ".backup '/tmp/vw-backup.sqlite3'" before copying to S3/R2/B2 rather than copying a live WAL file directly.Every Servers Are Up virtual machine and container includes an integrated HTML5 browser-based SSH, RDP, and VNC console in your dashboard, default-off inbound firewall rules with per-IP allow-lists, and full programmatic control via REST API v1 and Model Context Protocol (MCP). Explore our Virtual Datacenter Plans or reach out to Servers Are Up Support.