[{"data":1,"prerenderedAt":154},["ShallowReactive",2],{"seo-verification":3,"blog-host-calcom-on-your-own-vps-en":6},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"id":7,"slug":8,"slugs":9,"title":12,"excerpt":13,"readTime":14,"views":15,"isPinned":16,"publishedAt":17,"category":18,"categories":24,"featuredImage":26,"bgImage":27,"posterImage":28,"relatedSolution":29,"intro":31,"sections":32,"ctaTitle":101,"ctaBody":102,"ctaButton":103,"ctaUrl":104,"relatedPosts":105},88,"host-calcom-on-your-own-vps",{"fr":10,"en":8,"ar":11},"heberger-cal-com","استضافة-calcom-على-خادمك-الافتراضي-الخاص-vps","Host Cal.com on Your Own VPS","Cal.com on a VPS: CALENDSO_ENCRYPTION_KEY first-boot invariants, safe update procedure and troubleshooting the 3 most common errors.",8,0,false,"2026-03-24T00:00:00+00:00",{"id":19,"name":20,"slug":21,"color":22,"icon":23},7,"Self-hosting","self-hosting","bg-indigo-500\u002F10 text-indigo-400","cloud",[25],{"id":19,"name":20,"slug":21,"color":22,"icon":23},null,"\u002Fblog\u002Fcovers\u002Fbg.svg","\u002Fblog\u002Fcovers\u002Fheberger-cal-com-poster.svg",{"categorySlug":21,"appSlug":30},"cal-com","Calendly is convenient but proprietary, limited in its free plan and hungry for your meeting data. Cal.com is its open source equivalent: appointment scheduling, calendar and video integrations, all hostable on your own infrastructure. Here is how to deploy it on a VPS, database included.",[33,37,47,50,75,78,81,96,99],{"type":34,"title":35,"body":36},"h2","Why self-host Cal.com on a VPS","Cal.com is a Next.js application backed by PostgreSQL that handles appointment scheduling, event types, availability and synchronization with calendars (Google, CalDAV, Office 365). Self-hosting answers a specific need: controlling the availability and appointment-booking data of your clients, which normally passes through a third-party US service. On a VPS, you eliminate the free plan's limits (a single event type, imposed branding), you connect your own Google\u002Fvideo API keys and you embed the booking widget directly into your site under your domain. Since Cal.com is a persistent Node application with a database and a production build, it requires a VPS — shared hosting can neither run the process nor host PostgreSQL.",{"type":38,"title":39,"items":40},"ul","Concrete benefits of a self-hosted Cal.com",[41,42,43,44,45,46],"Unlimited event types: 15-min interviews, 30-min demos, group workshops, without a paywall.","Booking data on your side: no leak of clients' contact details and time slots to a third-party SaaS.","Full white-label: the booking link carries your domain, not a vendor's.","Webhooks and API: trigger automations (CRM, billing) on every appointment booked.","Google Calendar, CalDAV and video integrations (Jitsi, Google Meet) configured with your own keys.","Team bookings and round-robin to distribute appointments among several collaborators.",{"type":34,"title":48,"body":49},"Technical requirements","Cal.com is more demanding than the self-hosting average because of its Next.js foundation and the build step. Plan for 2 vCPUs, 4 GB of RAM and 20 GB of disk for a comfortable team instance; 2 GB of RAM can suffice for individual use but the initial build is tighter. You need Docker and Docker Compose, a PostgreSQL database (included in the official compose), a domain `rdv.yourdomain.com` pointed at the VPS, and several mandatory environment variables: `NEXTAUTH_SECRET`, `CALENDSO_ENCRYPTION_KEY` (randomly generated keys) and `NEXT_PUBLIC_WEBAPP_URL` set to your final HTTPS URL. For calendar sync and video, prepare the Google OAuth credentials.",{"type":51,"title":52,"steps":53},"steps","Deploy Cal.com step by step",[54,57,60,63,66,69,72],{"title":55,"body":56},"Clone the Docker deployment repository","On the VPS: `git clone https:\u002F\u002Fgithub.com\u002Fcalcom\u002Fdocker.git cal-docker && cd cal-docker`. This repository provides a `docker-compose.yml` and an `.env.example` file to adapt.",{"title":58,"body":59},"Generate the secrets and configure the environment","Copy `.env.example` to `.env`, then generate the keys: `openssl rand -base64 32` for `NEXTAUTH_SECRET` and for `CALENDSO_ENCRYPTION_KEY`. Set `NEXT_PUBLIC_WEBAPP_URL=https:\u002F\u002Frdv.yourdomain.com` and the PostgreSQL credentials. **Save these three values in a secrets manager immediately** — you will not be able to change them after the first boot without losing all your integrations.",{"title":61,"body":62},"Build and launch the stack","Start with `docker compose up -d`. The first startup builds the Next.js image and applies the Prisma migrations on PostgreSQL — this is the longest step, follow it with `docker compose logs -f`.",{"title":64,"body":65},"Place the reverse proxy and SSL","Put Cal.com (internal port 3000) behind an HTTPS reverse proxy. With Caddy: `rdv.yourdomain.com { reverse_proxy calcom:3000 }`. The certificate is obtained automatically. The URL must match `NEXT_PUBLIC_WEBAPP_URL` exactly, otherwise authentication fails.",{"title":67,"body":68},"Create the account and configure availability","Open `https:\u002F\u002Frdv.yourdomain.com`, create the owner account, set your time slots and a first event type. Test an end-to-end booking to validate the chain.",{"title":70,"body":71},"Connect calendar and video","In the integrations, add your Google OAuth credentials for bidirectional calendar sync, and enable Jitsi or Google Meet to automatically generate a video link on each booking.",{"title":73,"body":74},"Logging in for the first time","Open the URL: Cal.com redirects you to its first-run setup wizard (\u002Fauth\u002Fsetup), where you create YOUR administrator account. Do this as soon as the installation finishes: nothing protects this wizard for as long as the first account does not exist.",{"type":76,"body":77},"tip","Cal.com's memory build can fail on a 2 GB VPS during Next.js compilation. If you see a \"JavaScript heap out of memory\" error, temporarily add a 2 GB swap file (`fallocate -l 2G \u002Fswapfile && mkswap \u002Fswapfile && swapon \u002Fswapfile`) for the duration of the build, then remove it. For updates, always back up the PostgreSQL database before `docker compose pull` because the Prisma migrations are not reversible.",{"type":34,"title":79,"body":80},"Critical first-boot invariants","Three environment variables are permanently locked at Cal.com's **first boot**. Changing them afterwards silently corrupts all stored integrations: the application restarts normally, shows zero errors, but Google Calendar, Zoom and all OAuth connections stop working — their tokens were encrypted with the original key, which is now incompatible. This behaviour is documented in calcom\u002Fdocker \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fcalcom\u002Fdocker\u002Fissues\u002F333\">issue #333\u003C\u002Fa> and calcom\u002Fcal.diy \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fcalcom\u002Fcal.diy\u002Fissues\u002F13290\">issue #13290\u003C\u002Fa>: users have lost all their integrations after an update that regenerated the `.env` file.\n\n**`CALENDSO_ENCRYPTION_KEY`** — encrypts the OAuth tokens stored in the database. Any change silently invalidates all existing integrations.\n\n**`NEXTAUTH_URL`** — anchors session cookies. A change breaks authentication for all active users.\n\n**`NEXT_PUBLIC_WEBAPP_URL`** — baked into the Next.js build at compile time. Changing this value requires a full rebuild and reconnecting all integrations.\n\nBest practice: copy these three values into a secrets manager (Bitwarden, HashiCorp Vault, Ansible Vault) as soon as they are generated. If you manage your VPS as infrastructure-as-code, store them in an encrypted vault — never let the `.env` file be their only location.",{"type":51,"title":82,"steps":83},"Updating Cal.com safely",[84,87,90,93],{"title":85,"body":86},"Back up the PostgreSQL database","Before any update: `docker exec cal-docker-db-1 pg_dump -U calcom calcom | gzip > \u002Fopt\u002Fbackup\u002Fcalcom-$(date +%Y%m%d).sql.gz`. Prisma migrations are not reversible — this backup is your only safety net.",{"title":88,"body":89},"Verify that CALENDSO_ENCRYPTION_KEY is unchanged","Compare the value in your `.env` with the one stored in your secrets manager. If they differ, **stop here**: restore the original value before proceeding. A different key will silently destroy all your OAuth integrations on restart.",{"title":91,"body":92},"Pull the new image and restart","Update with `docker compose pull && docker compose up -d`. Follow the startup with `docker compose logs -f calcom` — wait for the message indicating the server is ready before testing.",{"title":94,"body":95},"Verify integrations after the update","Open Settings → Integrations and confirm that every existing connection (Google Calendar, Zoom, etc.) is still active. A \"not connected\" status means the key changed between restarts — restore the backup and the original `.env`.",{"type":34,"title":97,"body":98},"Troubleshooting","**Integrations lost after an update** — The cause is almost always a `CALENDSO_ENCRYPTION_KEY` that differs between two startups. Check that your `.env` was not overwritten by an `.env.example` during the pull. Compare the current value with the one in your secrets manager. If the values differ: restore the PostgreSQL backup, put the original key back in `.env` and restart with `docker compose up -d`.\n\n**Build \"JavaScript heap out of memory\"** — The Next.js compiler is running out of RAM. Fix: `fallocate -l 2G \u002Fswapfile && mkswap \u002Fswapfile && swapon \u002Fswapfile`, then run `docker compose build` again. On a 2 GB VPS, swap is often essential for the first build and major updates. Remove the swap file once the build is done.\n\n**Redirect loop or \"Unable to find valid origin\"** — `NEXT_PUBLIC_WEBAPP_URL` does not match the actual URL. Check that this variable is exactly `https:\u002F\u002Frdv.yourdomain.com` (no trailing slash, correct domain, HTTPS protocol), that the reverse proxy does not alter the Host header, then restart with `docker compose up -d --build` to force a rebuild with the correct URL.",{"type":76,"body":100},"Automate your PostgreSQL backup with a daily cron job. Example command to schedule: `docker exec cal-docker-db-1 pg_dump -U calcom calcom | gzip > \u002Fopt\u002Fbackup\u002Fcalcom-$(date +%Y%m%d-%H%M).sql.gz`. Keep at least 7 days of rotating backups and ship them to object storage (S3-compatible, Backblaze B2): in case of VPS loss, the PostgreSQL database is the only non-reproducible part of your Cal.com instance.","Host your appointment scheduling","The ServOrbit Cloud VPS provides the RAM and Docker required to build Cal.com, with a PostgreSQL and reverse proxy template ready to configure. Offer your clients a booking link under your own domain.","Deploy on Cloud VPS","\u002Fvps-cloud",[106,122,138],{"id":107,"slug":108,"slugs":109,"title":112,"excerpt":113,"readTime":114,"views":15,"isPinned":16,"publishedAt":115,"category":116,"categories":117,"featuredImage":26,"bgImage":27,"posterImage":119,"relatedSolution":120},71,"hosting-nextcloud-on-your-own-vps",{"fr":110,"en":108,"ar":111},"heberger-nextcloud","استضافة-nextcloud-على-خادمك-الـvps-الخاص","Self-Host Nextcloud on VPS: Complete Guide, NC 34 and Security","Deploy Nextcloud 34.0.2 on your VPS with Docker and Redis. Complete guide: missing NC 34.0.0 apps, PostgreSQL oc_filecache_extended constraint, and 2FA CVEs.",12,"2026-04-10T00:00:00+00:00",{"id":19,"name":20,"slug":21,"color":22,"icon":23},[118],{"id":19,"name":20,"slug":21,"color":22,"icon":23},"\u002Fblog\u002Fcovers\u002Fheberger-nextcloud-poster.svg",{"categorySlug":21,"appSlug":121},"nextcloud",{"id":123,"slug":124,"slugs":125,"title":128,"excerpt":129,"readTime":130,"views":15,"isPinned":16,"publishedAt":131,"category":132,"categories":133,"featuredImage":26,"bgImage":27,"posterImage":135,"relatedSolution":136},72,"hosting-ghost-on-your-own-vps",{"fr":126,"en":124,"ar":127},"heberger-ghost","استضافة-ghost-على-خادمك-الـvps-الخاص","Hosting Ghost on your own VPS: complete 2026 guide","Deploy Ghost v6 on your VPS with Caddy, MySQL, Ghost CLI and Stripe Tax: installation, TLS reverse proxy, updates and troubleshooting common startup errors.",9,"2026-04-09T00:00:00+00:00",{"id":19,"name":20,"slug":21,"color":22,"icon":23},[134],{"id":19,"name":20,"slug":21,"color":22,"icon":23},"\u002Fblog\u002Fcovers\u002Fheberger-ghost-poster.svg",{"categorySlug":21,"appSlug":137},"ghost",{"id":139,"slug":140,"slugs":141,"title":144,"excerpt":145,"readTime":146,"views":15,"isPinned":16,"publishedAt":147,"category":148,"categories":149,"featuredImage":26,"bgImage":27,"posterImage":151,"relatedSolution":152},73,"host-wordpress-on-your-own-vps",{"fr":142,"en":140,"ar":143},"heberger-wordpress","استضافة-wordpress-على-خادم-vps-الخاص-بك","Host WordPress on your own VPS","Host WordPress on your VPS for maximum performance and control: Docker, MariaDB, caching, reverse proxy and SSL.",3,"2026-04-08T00:00:00+00:00",{"id":19,"name":20,"slug":21,"color":22,"icon":23},[150],{"id":19,"name":20,"slug":21,"color":22,"icon":23},"\u002Fblog\u002Fcovers\u002Fheberger-wordpress-poster.svg",{"categorySlug":21,"appSlug":153},"wordpress",1787661716064]