forked from noxious/server
Added enums, moved Mikro ORM config into server.ts, cleaned configuration and env files
This commit is contained in:
parent
8377fe6545
commit
5990b6d6ac
22
.env.example
22
.env.example
@ -1,10 +1,18 @@
|
|||||||
# Server configuration
|
# Server configuration
|
||||||
ENV=development
|
ENV=development
|
||||||
|
HOST="0.0.0.0"
|
||||||
PORT=4000
|
PORT=4000
|
||||||
DATABASE_URL="mysql://root@localhost:3306/nq"
|
|
||||||
REDIS_URL="redis://@127.0.0.1:6379/4"
|
|
||||||
JWT_SECRET="secret"
|
JWT_SECRET="secret"
|
||||||
CLIENT_URL="http://localhost:5173"
|
CLIENT_URL="http://192.168.3.4:5173"
|
||||||
|
|
||||||
|
# Database configuration
|
||||||
|
REDIS_URL="redis://@127.0.0.1:6379/4"
|
||||||
|
DATABASE_URL="mysql://root@localhost:3306/game"
|
||||||
|
DB_HOST="localhost"
|
||||||
|
DB_USER="root"
|
||||||
|
DB_PASS=""
|
||||||
|
DB_PORT="3306"
|
||||||
|
DB_NAME="game"
|
||||||
|
|
||||||
# Game configuration
|
# Game configuration
|
||||||
ALLOW_DIAGONAL_MOVEMENT=false
|
ALLOW_DIAGONAL_MOVEMENT=false
|
||||||
@ -14,8 +22,8 @@ DEFAULT_CHARACTER_ZONE="0"
|
|||||||
DEFAULT_CHARACTER_POS_X="0"
|
DEFAULT_CHARACTER_POS_X="0"
|
||||||
DEFAULT_CHARACTER_POS_Y="0"
|
DEFAULT_CHARACTER_POS_Y="0"
|
||||||
|
|
||||||
# SMTP configuration
|
# Email configuration
|
||||||
SMTP_HOST="my.directonline.io"
|
SMTP_HOST=my.directonline.io
|
||||||
SMTP_PORT="587"
|
SMTP_PORT=587
|
||||||
SMTP_USER="no-reply@sylvan.quest"
|
SMTP_USER=no-reply@noxious.gg
|
||||||
SMTP_PASSWORD=""
|
SMTP_PASSWORD=""
|
Loading…
x
Reference in New Issue
Block a user