Skip to main content
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog

Loading…

Servers Are Up

Your apps, automation and data on hardware we own. Build a private stack with predictable capacity and access through your dashboard, API or SSH.

SLA with service creditsOwned hardwareUS-based

Make room for your next idea

Explore the capacity, apps and access options that fit your workload. Check current availability and your total before you buy.

Sign up freeView Pricing

Products

  • Linux VPS
  • Windows VPS
  • Cloud & SaaS Services
  • Cloud Storage (Azure)
  • Virtual Datacenter
  • AI & Agent Hosting
  • Containers
  • Instant Apps
  • Software Platforms
  • Network builder
  • Game Servers
  • Free Game Servers
  • Pricing

Resources

  • Free Network Tools
  • 2026 Pricing Benchmark
  • Live SVG Badges
  • Latency & Speed Test
  • Guides & Tutorials
  • Documentation
  • API Reference
  • MCP Server
  • CLI & SDKs
  • OpenAPI & llms.txt
  • Use Cases
  • Free Migration
  • Uptime & Reliability
  • Datacenter
  • System Status
  • Network
  • Provider Comparisons Hub
  • Compare Providers

Company

  • About Us
  • Enterprise
  • Security Architecture
  • Trust Center
  • Blog
  • FAQ
  • Compliance
  • Startup Program
  • Open-Source Sponsorship
  • Press & Media Kit
  • Referral Program
  • Help Center
  • Contact Us
© Servers Are Up
TermsPrivacySLARefund PolicyDPAAcceptable Use
Service information
Docs
  • Documentation Hub
  • Technical Knowledge Library
    Runbooks & 187 Blueprints
  • Choose a Product
    VMs, Containers & Cloud
  • First Linux Server
    SSH, Firewall & Apps
  • Windows Server 2025
    BYOL & Remote Desktop
  • Remote Access
  • Troubleshooting
  • FAQ
  • All Product Guides
    29 Step-by-Step Guides
  • Cloud & SaaS Catalog
    112 Cloud & SaaS Offerings
  • Azure Cloud Storage
    Hot/Cool/Archive & WORM
  • Resource Manager & RBAC
    Groups, Tags & Locks
  • Multi-Model Cloud DB
    JSONB, SQL & pgvector
  • Cloud Identity & ZTNA
    OIDC, SCIM & PIM
  • Key Vault & KMS
    Secrets & Envelope Keys
  • Cloud SIEM, SOAR & DLP
    Posture & Threat Response
  • API Gateway & Cloud DNS
    Edge WAF & DNS Zones
  • Serverless, Workflows & IoT
    Functions, Queues & DAGs
  • SaaS, Governance & Vault
    Budgets & Off-Host GRS
  • Linux Systems & Kernel
    SSH, UFW, sysctl & OOM
  • Self-Hosted Apps & Stacks
    Caddy, Nextcloud & Auth
  • Build Web Apps with AI
  • Next.js and React
  • TypeScript and Node.js
  • npm and Tooling
  • Data and APIs
  • Deploy and Operate
  • Tutorials
  • Infrastructure
  • Automation & Regions
  • API Overview
  • API v1 Reference
    Endpoints & 23 Scopes
  • MCP Server
    129 AI Agent Tools
  • Swagger / OpenAPI 3.1
  • API Playground
  • Versioning & Sunset
  • API Token Security
    Authentication & Tokens
  • Instances API
    Compute Resources
  • Networking API
    Networks & Ports
  • Storage API Availability
    Volumes & Backups
  • Webhooks & Events
    Event Notifications
  • Rate Limits & Best Practices
    Throttling & Retries
  • sau CLI Reference
    34 Commands (v0.2)
  • Browser Web CLI
  • SDKs
  • Infrastructure as Code
    Terraform & Ansible
  • Code Examples
  • CLI & SDK Guides
  • Security Guides
  • Security at a Glance
  • Zero Trust Architecture
  • Live Trust Center
  • Compliance
Need help?

Loading documentation...

Documentation/self hosted apps

Run Nextcloud, Immich, and Vaultwarden reliably behind proxies

Configure Nextcloud trusted_proxies and OCC, Immich streaming uploads, and Vaultwarden WebSocket notifications behind HTTPS reverse proxies cleanly.

Intermediate
30 min
Updated 2026-11-23

Deploy Ready-to-Run Infrastructure in Seconds

Linux VMs from $6/mo · Pooled Virtual Datacenters from $12/mo · Use code WELCOME20 for 20% off your first order.

Browse ServersView Pricing

Commands checked on 2026-11-23 with Nextcloud 30, Immich v1.120+, Vaultwarden 1.32+, Docker Compose v2.

What you will have at the end

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.

Before you start

  • Caddy or Traefik terminating TLS on 443 cleanly; see Configure Caddy and Traefik reverse proxies reliably.
  • Container stacks separated onto an internal database network (internal_net) and shared proxy_net.

Steps

1. Fix Nextcloud trusted_proxies, overwriteprotocol, and cron jobs

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

2. Tune Immich for large mobile uploads and GPU/CPU ML workers

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.

3. Enable Vaultwarden WebSockets and private admin hardening

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.

Check that it works

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.

What can go wrong

  • Nextcloud login screen loops endlessly over HTTPS. 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.
  • Immich mobile backup stalls on large 4K videos. Proxy request buffering or upload body size limit is capping requests (413). Disable request buffering on Nginx/Traefik and verify available host disk space under UPLOAD_LOCATION.
  • Vaultwarden live sync fails across browser extensions. 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.

Good practice

  • Lock SIGNUPS_ALLOWED=false in Vaultwarden immediately after registering your users, and keep SIGNUPS_ALLOWED off on public servers.
  • Exclude Immich encoded thumbnails and caches from expensive remote object-storage backups while keeping original library/ + Postgres dumps (pg_dumpall) backed up daily.
  • Back up Vaultwarden's 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.

Where to go next

  • Wire Authentik, Gitea, and n8n cleanly behind a reverse proxy
  • Tune Valkey, Qdrant, Meilisearch, and MinIO in Docker
  • Configure Caddy and Traefik reverse proxies reliably

Related Articles

Wire Authentik, Gitea, and n8n cleanly behind a proxy

Read more

Configure Caddy and Traefik reverse proxies reliably

Read more

Deploy Grafana, VictoriaMetrics, and Uptime Kuma cleanly

Read more

Frequently Asked Questions

What does the Run Nextcloud, Immich, and Vaultwarden reliably behind proxies documentation guide cover?
Configure Nextcloud trusted_proxies and OCC, Immich streaming uploads, and Vaultwarden WebSocket notifications behind HTTPS reverse proxies cleanly. It is rated intermediate difficulty (30 min) and applies to Servers Are Up infrastructure and workflows.
Can I manage or automate these steps through the Servers Are Up dashboard, REST API v1, or MCP server?
Yes. Every Servers Are Up server includes browser-based SSH, WebRDP, and VNC console access in the dashboard, plus programmatic control via the REST API v1 (/api/v1) and hosted Model Context Protocol server (/api/mcp/v1) using a scoped Personal Access Token.

Need hands-on help with Run Nextcloud, Immich, and Vaultwarden reliably behind proxies?

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.

Was this article helpful?

On this page

What you will have at the endBefore you startSteps1. Fix Nextcloud trusted_proxies, overwriteprotocol, and cron jobs2. Tune Immich for large mobile uploads and GPU/CPU ML workers3. Enable Vaultwarden WebSockets and private admin hardeningCheck that it worksWhat can go wrongGood practiceWhere to go next
Need Live Commands?

Open Aria in Wide Engineering Mode for distro-specific commands, compose tweaks, and isolated environment troubleshooting.

Knowledge Library