Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.04 KB

README.md

File metadata and controls

48 lines (32 loc) · 1.04 KB

factorio-status

Build Status

The mini server status for the Factorio server factorio.ilot.sh, based on rcon-ts.

Usage

git clone [email protected]:lovethebomb/factorio-status.git

Create a .env file with KEY=value as decribed:

RCON_HOST="your-server-hostname" | default factorio.domain.tld
RCON_PORT=your-server-port | default 27015
RCON_PASSWORD=your-server-port
RCON_TIMEOUT=your-server-timeout | default 5000

Development

npm run dev

Testing

npm run test

Production

A Dockerfile is provided.

The build-and-run step is:

npm run build && npm run start

You can provide the .env file through a Docker volume and override the port envvar if needed.

docker run -v -e "PORT=3000" /path/to/.env:/app/.env factorio-status