# Self-hosting

> Run your own Klang on a server of yours with Docker Compose. It’s the same code as Klang Cloud, without billing and without plans.

## What you get

A self-hosted Klang is the whole app on one machine: servers, channels, groups and direct
messages, voice, video and screen sharing, bots compatible with Discord’s API, and the staff
panel to moderate your install. People use it in the browser, or install it as a web app.

The kit is the `selfhost/` folder of the
[klang-server](https://github.com/klang-gg/klang-server) repository. It’s a Docker Compose file
with everything Klang needs, behind Caddy, which gets the HTTPS certificates by itself.

## What it isn’t

- **Not a network.** Your install doesn’t talk to klang.gg or to other installs, and accounts
  from one don’t work on another.
- **No official support.** Whoever runs an install operates it, moderates it and answers for
  it, including under the EU Digital Services Act and the GDPR where they apply. See the
  [repository’s README](https://github.com/klang-gg/klang-server#what-it-isnt).
- **No telemetry.** An install tells us nothing.
- **No desktop app.** The official desktop app only opens klang.gg.

## How it differs from Klang Cloud

- **No billing and no plans.** Nothing is locked. By default each file can be up to 500 MB, each
  person can store 100 GB, and screens, cameras and microphones get the best quality Klang has.
  You can lower what costs you disk and bandwidth in
  [Configuration](https://docs.klang.gg/self-hosting/configuration/#limits).
- **What’s optional starts off.** That’s Discover, invite-only sign-up, bots, email, GIFs and
  game covers.
- **Your own terms.** Klang Cloud’s terms and privacy policy aren’t part of it. You can link
  yours.

## The pages

1. [Requirements](https://docs.klang.gg/self-hosting/requirements/): the server, the four hostnames and the ports.
2. [Install](https://docs.klang.gg/self-hosting/install/): from the release to your first admin.
3. [Try it on your computer](https://docs.klang.gg/self-hosting/local/), without a domain.
4. [Configuration](https://docs.klang.gg/self-hosting/configuration/): sign-up, Discover, bots, limits.
5. [Behind your own reverse proxy](https://docs.klang.gg/self-hosting/reverse-proxy/), if one already holds ports 80
   and 443.
6. [Voice and TURN](https://docs.klang.gg/self-hosting/voice/), [Email](https://docs.klang.gg/self-hosting/email/) and
   [Files](https://docs.klang.gg/self-hosting/files/).
7. [Updating](https://docs.klang.gg/self-hosting/updating/), [Backups](https://docs.klang.gg/self-hosting/backups/) and
   [Troubleshooting](https://docs.klang.gg/self-hosting/troubleshooting/).
