This repository contains the files to run a Protoshock game server. You can either run it directly if you clone this repo or use Docker
- socket.io
- node-gzip
- express
- dotenv
These can be installed just by typing npm install or yarn install depending on your package manager
Note
If you’re running this on Docker there is no need to install these dependencies
node index.js
Note
If you want to you can run with --expose-gc to manually clear garbage
Default port is 8880
(TCP)
You can find a website for the server's status at http://[IP_ADDRESS]:[PORT]/
or
http://your.domain.com:[PORT]/
To change the server you’re connected to, go to your Protoshock installation directory then edit /Networking/NetworkSettings.json
and after "server_ip":
add your own domain or IP and the port at the end.
For example "server.bracketproto.com:8880"
which is the default domain.
If you want to run the Protoshock server using Docker here is the simplest way to get it running
docker run -d -p 8880:8880 protoshock/protoshock-server:main
To enable expose-gc, change debug type or use https add the enviroment variables:
docker run -d -p 8880:8880 -e EXPOSE_GC=true DEBUG=full HTTPS_KEY='/path/to/ssl/private_key' HTTPS_CERT='/path/to/ssl/certificate' protoshock/protoshock-server:main
If you prefer Docker Compose you can use this
version: '3'
services:
protoshock-server:
image: protoshock/protoshock-server:main
container_name: Protoshock-Server
ports:
- "8880:8880"
restart: always
To enable expose-gc, change debug type or use https add this to the yml file
environment:
- EXPOSE_GC=true
- DEBUG=full
- HTTPS='true'
- HTTPS_KEY='/path/to/ssl/private_key'
- HTTPS_CERT='/path/to/ssl/certificate'