An open API service indexing awesome lists of open source software.

https://github.com/cinderblock/factorio-stats

A Simple Factorio Server Status Webpage
https://github.com/cinderblock/factorio-stats

Last synced: 2 months ago
JSON representation

A Simple Factorio Server Status Webpage

Awesome Lists containing this project

README

          

# A Simple Factorio Server Status Webpage

This is a simple webpage that displays the status of a Factorio server.

It uses the Factorio server's RCON interface to get the server status and exposes it over an HTTP interface.

You must serve the compiled version of the ui folder with a web server.

The backend server must be started and configured with the correct RCON settings.

## Setup

```bash
git clone https://github.com/cinderblock/factorio-stats.git
cd factorio-stats

npm install

# Serve the contents of the ui/dist folder with a web server

cp backend/.env.example backend/.env
# Edit backend/.env to match your server's RCON settings

npm start
```

### Example Nginx Config

```nginx
server {
listen 80;
server_name factorio.example.com;

root /path/to/factorio-stats/ui/dist;

location / {
try_files $uri $uri/ /index.html @backend;
}

location @backend {
proxy_pass http://localhost:3000; # Change this to the port the backend server is running on
proxy_set_header Host factorio.example.com;
proxy_set_header X-Real-IP $remote_addr;
}
}
```

## Update

```bash
npm run update
```

### Update and Run

```bash
npm run update && npm start
```