Files
ToyBattlesHQ/doc/example_localhost.md
2025-06-12 00:20:29 +02:00

1.1 KiB

4.1 Config.ini setup for localhost

Assume that:

  • My local IP is 123.456.78.9
  • My client version is 1.1.1 (i.e. I did not modify it through the client tools as explained in the next chapters)
  • My database is named microvolts-db
  • My database username is root
  • My database password is stored in the environment variable named "MV_DB_PW"
  • My MariaDB runs on port 3305
  • I do not have a website running (i.e. no admin panel)

Then, here's a simple setup for a completely local server:

[AuthServer]
LocalIp = 123.456.78.9
Ip = 127.0.0.1
Port = 13000

[MainServer_1]
LocalIp = 123.456.78.9
Ip = 127.0.0.1
Port = 13005
IpcPort = 14005
IsPublic = true

[CastServer_1]
LocalIp = 123.456.78.9
Ip = 127.0.0.1
Port = 13006
IpcPort = 14006

[Database]
LocalIp = 123.456.78.9
Ip = 127.0.0.1
Port = 3305
DatabaseName = microvolts-db
Username = root
PasswordEnvironmentName = MV_DB_PW

[Website]
Ip = 127.0.0.1 # or any website IP you may have
Port = 8080

[Client]
ClientVersion = 1.1.1

Next

4.2 Config setup for VPS