Files
EpicNext-Cms/setup/emulator/config.ini
T
2026-07-20 20:54:26 +02:00

67 lines
2.5 KiB
INI

# ===========================================================================
# Polaris Emulator — reference config.ini
# Copy this to /var/www/emulator/Emulator/target/config.ini and fill in the
# values marked CHANGE_ME. The emulator reads this file on startup.
# Full guide: https://github.com/duckietm/Complete-Retro-on-Ubuntu
# ===========================================================================
# ---- Database configuration ----
db.hostname=127.0.0.1
db.port=3306
db.database=habbo # DB name (shared with the CMS)
db.username=root # Username
db.password=CHANGE_ME # Password
db.params=?characterEncoding=utf8&useSSL=false&serverTimezone=Europe/Amsterdam
db.pool.minsize=25
db.pool.maxsize=100
db.pool.connection_timeout_ms=10000
db.pool.idle_timeout_ms=600000
db.pool.max_lifetime_ms=1800000
db.pool.validation_timeout_ms=5000
db.pool.leak_detection_ms=20000 # set to 0 to disable leak detection
# ---- Game configuration ----
# Host IP. Use 0.0.0.0 in most cases. Use 127.0.0.1 for LAN only.
game.host=0.0.0.0
game.port=3000
# ---- RCON configuration ----
# Leave host at 127.0.0.1 if the CMS runs on the same server as the emulator.
rcon.host=127.0.0.1
rcon.port=3001
rcon.allowed=127.0.0.1;127.0.0.2
# ---- Nitro secure runtime assets (disabled by default) ----
nitro.secure.assets.enabled=false
nitro.secure.api.enabled=false
nitro.secure.session_ttl_sec=900
nitro.secure.config.root=
nitro.secure.gamedata.root=
# Set a persistent secret when using Cloudflare or multiple backend requests.
nitro.secure.master_key=change-me-to-a-long-random-secret
# ---- Login ----
login.remember.enabled=true
login.remember.duration.days=30
# Optional: set a persistent remember-me JWT secret here.
login.remember.jwt.secret=
login.news.limit=5
# ---- Secure runtime ECDH session TTL in seconds ----
# (kept for compatibility; unused when secure assets are disabled)
# ---- WebSockets (Nitro client) ----
ws.enabled=true
ws.host=0.0.0.0
ws.port=2096
# Header used to obtain the real client IP when behind a proxy
# (usually X-Forwarded-For, or CF-Connecting-IP behind Cloudflare).
ws.ip.header=X-Forwarded-For
# ---- Console / emulator_settings ----
# Run these SQL statements ONCE, after importing the emulator database:
# USE habbo;
# UPDATE emulator_settings SET `value` = '0' WHERE `key` = 'console.mode';
# UPDATE emulator_settings SET `value` = 'MY_DOMAIN.COM,*.MY_DOMAIN.COM,localhost,127.0.0.1' WHERE `key` = 'websockets.whitelist';
# console.mode MUST be 0 and the whitelist MUST match your domain.