⚙️Login Server
What is Login Server:
What is Login Server
OpenTibiaBR - Login Server is a free open source login server developed in golang to enable cipclient and otclient to connect and login to canary server.
Current version supports only http login, through
/login
or/login.php
routes.The project is fully covered by tests and supports multi-platform build. Every release is available with multi-platform applications for download.
Github:
Getting Started:
Windows
Web Package - Windows:
Uniform Server (Recommended)
After configuring the database of Canary turn off Apache.
Login Server:
Extract Login Server in a folder of your preference.
Example .env file:
MYSQL_DBNAME=canary MYSQL_HOST=127.0.0.1 MYSQL_PORT=3306 MYSQL_USER=root MYSQL_PASS=root ENV_LOG_LEVEL=debug LOGIN_IP=127.0.0.1 LOGIN_HTTP_PORT=80 LOGIN_GRPC_PORT=9090 RATE_LIMITER_BURST=5 RATE_LIMITER_RATE=2 SERVER_IP=127.0.0.1 SERVER_NAME=Canary SERVER_PORT=7172 SERVER_LOCATION=BRA
How to edit the client:
Example of IP in the client:
http://127.0.0.1/login.php
How to use:
How to use
To run it, simply download the latest release and define your environment variables. You can set environment type as
dev
if you want to use a.env
file (store it in the same folder of the login server).You can also download our docker image and apply the environment variables to your container.
Enviroment Variables
NAME HOW TO USE MYSQL_DBNAME
database default database name
MYSQL_HOST
database host
MYSQL_PORT
database port
MYSQL_PASS
database password
MYSQL_USER
database username
ENV_LOG_LEVEL
logrus log level for verbose
refLOGIN_IP
login ip address
LOGIN_HTTP_PORT
login http port
LOGIN_GRPC_PORT
login grpc port
RATE_LIMITER_BURST
rate limiter same request burst
RATE_LIMITER_RATE
rate limit request per sec per user
SERVER_IP
game server IP address
SERVER_LOCATION
game server location
SERVER_NAME
game server name
SERVER_PORT
game server game port
VOCATIONS
game vocation list csv (a,b,c)
Tests
go test ./tests -v
Build
RUN go build -o TARGET_NAME ./src/
Last updated