Node Setup
Everything for running a MeshCord node. Building a bot instead? See Bot Development.
Running a node
One command installs Docker (if needed), verifies the bundle checksum, generates secrets, and brings the stack up:
curl -fsSL https://meshcordapp.xyz/install.sh | sudo bashThe installer is non-interactive when you pass the environment variables up front:
sudo env "DOMAIN=node.example.com" "TLS_MODE=caddy" bash install.sh| Variable | Default | Meaning |
|---|---|---|
DOMAIN | — | Public hostname of the node. Required for TLS. |
TLS_MODE | caddy | caddy = bundled automatic HTTPS · external = your own reverse proxy terminates TLS |
NODE_PORT | 3000 (external) / 443 (caddy) | Host port the API publishes on in external mode. |
MESHCORD_DIR | /opt/meshcord | Install directory. |
SSL / TLS setup
MeshCord clients refuse plain http:// — every node
needs HTTPS. You have two supported paths, and any tool that gives
you a valid certificate works:
MeshCord does not offer support for SSL certificate setup and configuration. The reference setups below are provided as documentation only — follow each tool's own documentation for help.
Option A — bundled Caddy (default)
With TLS_MODE=caddy the stack runs a Caddy container
that obtains and renews a Let's Encrypt certificate for your
DOMAIN automatically. Requires ports 80 and 443 open
and pointed at the host.
sudo env "DOMAIN=node.example.com" bash install.shOption B — external TLS (TLS_MODE=external)
Use this when something else already terminates TLS on your network
— the node then serves plain HTTP on NODE_PORT and
never touches 80/443. Your proxy must forward WebSocket upgrades
too.
sudo env "DOMAIN=node.example.com" "TLS_MODE=external" "NODE_PORT=9010" bash install.shNginx Proxy Manager
- Proxy Host: your node domain →
http://<node-ip>:<NODE_PORT> - Websockets Support: ON — required for real-time chat and voice.
- SSL tab: request a Let's Encrypt certificate (or pick an existing one), Force SSL ON.
Certbot (standalone, certificate only)
certbot certonly --standalone -d node.example.com
Point your own reverse proxy at the issued certs under
/etc/letsencrypt/live/node.example.com/ and forward to
the node's HTTP port.
Traefik
# labels on the server container, external mode
- "traefik.enable=true"
- "traefik.http.routers.meshcord.rule=Host(`node.example.com`)"
- "traefik.http.routers.meshcord.entrypoints=websecure"
- "traefik.http.routers.meshcord.tls.certresolver=le"acme.sh / other ACME clients
Any ACME client that can issue a certificate (acme.sh, lego, dehydrated) works the same way: obtain the cert, terminate TLS in your proxy, forward plain HTTP to the node with WebSocket upgrade headers passed through.
Admin dashboard
Every node ships a browser admin dashboard. Point an
admin. subdomain at the same proxy target — e.g.
admin.node.example.com → same IP and port as the node —
and the server serves the dashboard UI there. It is also reachable
at https://<node-domain>/admin/. Log in with the
node's Master Admin account to manage users, servers, stats, and
the discovery switch.
Bots
Bot development has its own page — Bot Development & the MeshCord Bot Core SDK, including the mandatory Bot Contract and the Lua API reference.