Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Setup the application

Lukas edited this page Dec 28, 2018 · 3 revisions

1. Get the executable

Clone the repository and build it using GO111MODULE=on go build ./... or download a precompiled release.

2. Configuration

Because you don't want to read the whole configuration guide, here are some common configuration files:

Using DigitalOcean as provider:

{
  "web": {
    "port": 8011,
    "cors_domain": "YourDomain"
  },
  "gmod": {
    "port": 27015,
    "rcon_password": "YourRconPassword",
    "check_interval": 5,
    "shutdown_after": 60
  },
  "cloud": {
    "provider": "DigitalOcean",
    "token": "YourApiToken",
    "server_name": "ubuntu-ttt-1vcpu-1gb-fra1",
    "server_type": "s-1vcpu-1gb",
    "region": "fra1",
    "snapshot": "YourSnapshotName",
    "ssh_key": "YourSSHKey"
  }
}

Using Hetzner as provider:

{
  "web": {
    "port": 8011,
    "cors_domain": "YourDomain"
  },
  "gmod": {
    "port": 27015,
    "rcon_password": "YourRconPassword",
    "check_interval": 5,
    "shutdown_after": 60
  },
  "cloud": {
    "provider": "Hetzner",
    "token": "YourApiToken",
    "server_name": "ubuntu-ttt-2gb-fsn1",
    "server_type": "cx11",
    "region": "fsn1",
    "snapshot": "YourSnapshotName",
    "ssh_key": "YourSSHKey"
  }
}

As you can see, there some values which begin with Your.

You have to fill in these values, so here are links to the configuration guide:

  1. YourDomain: web.cors_domain
  2. YourRconPassword: gmod.rcon_password
  3. YourToken: cloud.token
  4. YourSnapshotName: cloud.snapshot
  5. YourSSHKey: cloud.ssh_key

That's it, you are ready to go!

If you want to dive deeper into the configuration, read more here.

3. Web Frontend

To start your server and take a look at the status, you can use a web interface.

I've created one: StartMyGameFront

Important: During the setup use the domain specified as web.cors_domain.

Clone this wiki locally