Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

self-hosting docs (#607)

Brendan Allan676b7efcff45
diff --git a/apps/web/content/docs/commercial-license.mdx b/apps/web/content/docs/commercial-license.mdx
index 8d4e92b3e..8c6093cb1 100644
--- a/apps/web/content/docs/commercial-license.mdx
+++ b/apps/web/content/docs/commercial-license.mdx
@@ -4,8 +4,6 @@ summary: "Cap Desktop is free to use, but requires a commercial license to be us
tags: "Licensing"
---
-# Cap Desktop's Commercial License
-
The Cap Desktop application you can download from our [download page](/download) is free to use,
but requires a commercial license to be used for commercial purposes.
You can obtain a commercial license by purchasing them standalone,
diff --git a/apps/web/content/docs/self-hosting.mdx b/apps/web/content/docs/self-hosting.mdx
new file mode 100644
index 000000000..3d63e4a22
--- /dev/null
+++ b/apps/web/content/docs/self-hosting.mdx
@@ -0,0 +1,60 @@
+---
+title: "Self-hosting Cap Web"
+summary: "How to deploy Cap Web on your own infrastructure"
+tags: "Deployment, Self-hosting"
+---
+
+Cap Web is our web application for uploading and sharing Caps - it's what runs right here on [cap.so](https://cap.so).
+You can upload videos to it from the dashboard or from Cap Desktop.
+
+This guide describes our two supported deployment methods, how to connect Cap Desktop,
+and how to configure email login links.
+
+## Deployment Methods
+
+### Deploying with Railway
+
+One-click deployment via Railway is the easiest way to deploy Cap Web.
+The button below will take you to the Cap Web Railway template,
+which will deploy the Cap Web Docker image, a MySQL database,
+and [MinIO](https://min.io) for storing videos.
+
+[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/new/template/PwpGcf)
+
+Once deployed, login email links will be available in Railway’s Deploy Logs.
+
+<video src="https://cap.so/api/playlist/?videoId=6s8mpx2t4epkwrm" controls />
+
+### Custom Deployment with Docker
+
+The [Cap Web Docker image](https://github.com/CapSoftware/Cap/pkgs/container/cap-web)
+allows you to deploy Cap Web anywhere you like.
+You will need to connect your own MySQL database and S3-compatible storage.
+Refer to the [Docker Compose template](https://github.com/CapSoftware/Cap/blob/main/docker-compose.template.yml)
+for an example setup, including necessary environment variables.
+
+## Connecting Cap Desktop
+
+Copy the URL of your Cap Web deployment, and set the 'Cap Server URL'
+in Cap Desktop's settings page to this URL.
+Uploads from Cap Desktop will now be sent to your Cap Web deployment.
+
+<video src="https://cap.so/api/playlist/?videoId=sh5ch60pbs02eec" controls />
+
+## Email Login Links
+
+If the `RESEND_API_KEY` and `RESEND_FROM_DOMAIN` environment variables are not set,
+login links will be written to the server logs.
+To send login links via email, you'll need to configure [Resend](https://resend.com):
+
+1. Create an account at [Resend](https://resend.com)
+2. Connect a domain and set it as `RESEND_FROM_DOMAIN`
+3. Generate an API key and set it as `RESEND_API_KEY`
+
+<video src="https://cap.so/api/playlist/?videoId=xyz74j90rr4br3a" controls />
+
+## Support
+
+If you encounter a problem with the Docker image or think this documentation is lacking,
+please [open an issue](https://github.com/CapSoftware/Cap/issues/new).
+We do not offer support services for self-hosted deployments.