Skip to content

lovethebomb/factorio-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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