Skip to content

Type a word or two, like firewall or rollback.

Open Coresmith
Browse the docs
Self-hosting Checked against Coresmith 0.8.20.

Install Coresmith

Open as Markdown

Self-hosting is for teams who want to run Coresmith themselves and look after its server, updates and backups. If you'd rather not, Coresmith Cloud runs it for you.

What you need

  • A Linux server you have root on. Ubuntu 22.04 and 24.04 are tested. The installer also accepts Debian 11 and 12, Rocky Linux and AlmaLinux 8 and 9, Fedora and Amazon Linux.
  • At least 5 GB of free disk, and 10 GB or more is better. 2 GB of memory or more. Coresmith runs on less, but slowly.
  • Ports 80 and 443 reachable by the people who'll use Coresmith. The installer opens them on the server, and keeps your SSH port open.
  • For HTTPS on a name, a domain whose DNS points at the server. Without one, Coresmith answers on the server's IP address, and you can add a domain later.

1. Point a domain at it

Add an A record for the domain, and an AAAA record too if the server has IPv6. Skip this to start on the IP address.

2. Check and run the installer

Import the release key and check its fingerprint:

Terminal
curl -fsSL https://get.coresmith.io/release-key.asc | gpg --import
gpg --fingerprint [email protected]

The fingerprint must read 10AD 393D 01B6 2CA5 524F AEAB AF8B BF43 12DD D022. Then download the installer and its signature, check the signature, and run it:

Terminal
curl -fsSLO https://github.com/monoventech/coresmith/releases/latest/download/install.sh
curl -fsSLO https://github.com/monoventech/coresmith/releases/latest/download/install.sh.asc
gpg --verify install.sh.asc install.sh
sudo bash install.sh --domain coresmith.example.com --email [email protected]

Go on only if gpg --verify reports a good signature from Coresmith releases. Leave out --domain to use the IP address. Add --db pgsql or --db mysql to keep Coresmith's data in PostgreSQL or MySQL. Run the installer with --help for its other options.

curl -fsSL https://get.coresmith.io/install | sudo bash runs the same installer in one line, without the checks.

3. Create the owner account

The installer ends with a one-time link to create the owner account. If you lose it, run this on the server and open the new link it prints:

Terminal
cd /opt/coresmith/app && sudo -u coresmith php artisan coresmith:setup-token --force

4. Finish setup

Coresmith's Finish setup list takes you through the rest: connect GitHub, add a server or this machine, and deploy your first app.

Set up email

Coresmith emails invitations, password resets and alerts, but sends nothing until you give it a mail server. On Coresmith's server, add the settings to /opt/coresmith/shared/.env, for example:

Terminal
MAIL_MAILER=smtp
MAIL_HOST=smtp.example.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=your-password
[email protected]

Then load them:

Terminal
cd /opt/coresmith/app && sudo -u coresmith php artisan config:cache && sudo -u coresmith php artisan horizon:terminate

Until email works, inviting someone gives you a link to send them yourself.

Bring a team from Coresmith Cloud

A team on Coresmith Cloud can move here with its servers, apps and databases, without setting the servers up again. Its apps keep serving the whole time.

  1. Under Settings, General, choose Create a move code, and copy it.
  2. On Coresmith Cloud, the team's Owner pastes it under Settings, Billing, Move to self-host, and downloads the move file.
  3. Back here, upload the move file and follow the steps it shows.

Move Coresmith to another address

Settings, General can move Coresmith to a domain or a Tailscale name. Point the name at the server first. Coresmith checks it from outside and shows any DNS record it still needs. Once the new address has its certificate, Coresmith switches over, and the old address sends people to the new one.