# Take it with you, run it yourself

A group is never locked in: its owner can take all of it, run parts of it on their own machines, and give it its own
address.

## Download the whole group

The group's settings › **Download the whole group** (owner): a zip with `group.json` (the group, its channels, roles,
look, blocks, scripts with their code and settings, themes, and the data its scripts keep, the community's and each
member's), `page/` (the group's own page, its files as they're served) and `files/` (the pictures, fonts and tracks its
look and blocks use). Messages aren't in it: each member downloads their own in Settings › Privacy.

To bring it back, or start a copy somewhere: **Create a community › From an export…** and pick the zip. You get a new
invite-only group with its channels, roles, look, blocks, shared themes, data and your own member data (other
members' data stays out: they aren't in the new group); its scripts start switched off (read them, then
turn them on) and its page is a draft till you publish it. Anything that doesn't pass today's checks is named.

## Scripts on your own server

A private group's scripts already run on its owner's PC while their GC client is open (Settings, **Run my private
groups' scripts on this PC**, turns that off). To keep them running all the
time, on a server or a PC that's always on:

1. Install `gc-cli` there and `gc-cli login` as the group's owner.
2. Run `gc-cli host`. It runs every private group of yours that has scripts on, each run in a locked-down process, with
   ten times the time and memory GC's own hosts give. Ctrl+C stops it.

While it's connected your GC client leaves the scripts to it. When it's gone, GC's own hosts run them again. GC still
checks everything a script asks for, as always.

## Its own domain (public groups)

Free, no certificate to buy:

1. The group's settings: type the domain (`play.example.com`) and press **Use**.
2. At your domain's DNS add the **TXT** record GC shows (`_gc.play.example.com` holding `gc-domain=...`) and a
   **CNAME** from your domain to the name GC shows.
3. Press **Check**. Once GC finds the record (DNS can take an hour), the domain opens the group; its certificate comes
   at the first visit.

An open group's domain is its own address: links shared to it show the group's name and picture, and search
engines find the group there.

Only the owner sets or removes it. A domain belongs to one group, and a private group has none.

## Its own voice server and file bucket

Any group can carry its own calls and files:

- **Voice**: run [LiveKit](https://livekit.io) on your own server, then in the group's settings give its address
  (`wss://voice.example.com`), API key and secret, and press **Use**. Games Communities checks it answers; the group's
  new calls go there (calls already going finish where they are).
- **Files**: any S3-compatible bucket (MinIO, SeaweedFS, Backblaze B2, Wasabi and the like). Give its address, the
  bucket's name, an access key and secret. The group's files move there, and new ones go straight to it.

Both must be on the open internet on the usual port (443). Games Communities keeps the secret sealed and never shows it
again; it still checks every file for known illegal pictures. **Back to GC's** takes either off (a bucket's files come
back first).
