alexnd / terrAdmin

Terraria server web admin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terrAdmin

This application expose Terraria/tShock things to user allowing control game server over web GUI

Setup

  • Get nodejs with npm
  • Clone this repo
  • npm install
  • npm run install-terraria-server or npm run install-tshock
  • Review and make corrections to config.js and server.cfg, you may need to change default credentials (admin, 123456), set ports, world file, etc
  • You should place existsing .wld files in Worlds directory or set configfile autocreate directive to generate new world

Run

  • Type in terminal npm start
  • Open in web browser 127.0.0.1:7878
  • Login credentials stored in config.js file in users[] array

Links

Barebone scenario to run Terraria server

Linux

Setup .net runtime:

sudo apt install mono-runtime -y

Crearte shell script server.sh:

#!/bin/sh
mono ./TerrariaServer/1411/Linux/TerrariaServer.exe -config ./server.cfg

Add execute privilegies to script:

chmod +x ./server.sh

Mac

Install Mono for Mac

Shell script server.sh

#!/bin/sh
mono ./TerrariaServer/1405/Mac/Terraria\ Server.app/Contents/MacOS/TerrariaServer.exe -config ./server.cfg

Windows

Create runnable .bat file with next content:

TerrariaServer\1411\Windows\TerrariaServer.exe -config server.cfg

Docker way (under construction)

docker build -t terradmin .
docker run terradmin

TODO

  • Separate dockers for terrAdmin and game server, resolve admin-server control

About

Terraria server web admin

License:Other


Languages

Language:JavaScript 63.3%Language:HTML 27.5%Language:CSS 7.8%Language:Shell 1.0%Language:Dockerfile 0.4%