// Adventure Land - local Docker configuration (options) // // Replaces secretsandconfig/options.js from the upstream repository. // // base_url must match the origin you open in the browser. If you change the // published port in docker-compose.yml, change it here as well: // base_url -> http://localhost: // servers.local.address -> localhost: const path = require("node:path"); machines = { local: { key: "", ip: "0.0.0.0", user: "", }, }; servers = { local: { region: "EU", name: "I", path: "/socket.io/", // Separate Socket.IO endpoint for the MessagePack parser; must differ // from `path` and is advertised to clients through the server record. msgpack_path: "/socket.io-msgpack/", api_path: "/server.api/", local_ip: "0.0.0.0", local_port: 7192, address: "localhost:7192", machine: "local", db: "dev", secure: false, nginx: false, Dev: true, }, }; module.exports = { project_name: "adventureland", name: "Adventure Land", base_url: "http://localhost:8090", Dev: true, Local: true, Prod: false, Staging: false, Engine: "mongodb", observer_map: "main", merchant_map: "main", port: 8090, close_timeout: 4000, // Max concurrent non-merchant characters per IP (multiplied by an IP // exception's limit) and per account. Login and the backend cron both use // these values; 9 here allows 3 accounts with 3 characters each from one IP. ip_limit: 9, character_limit: 3, // Minimum length for newly created character names. Upstream is 4; 3 lets // short names be created for free instead of only via the paid rename // (3 characters costs 24,000 shells). Valid 1-12; invalid values fall back // to 4. Rename/chat/login already accept short names either way. character_name_min_length: 3, // Max concurrent merchant characters per IP and per account. Upstream is // hard-coded to 1/1; this local build reads these options in login and in // the backend cron. 3 here means three merchant accounts may share one IP. merchant_ip_limit: 3, merchant_owner_limit: 1, // Without an email service, mark new accounts as verified at signup and // keep existing accounts verified on login. Set to false to restore the // upstream verification flow (requires AWS SES). auto_verify_email: true, // Tutorial/class rewards normally require a platform auth id (Steam/MAS) // as an anti-alt measure. Web-only accounts have no auth id; set to false // to let verified web accounts claim them too. Default is true. tutorial_reward_requires_auth_id: false, fast_sdk: 0, machines: machines, servers: servers, cookie_key: "auth", // SECURITY: with Local + unsecure_admin every visitor counts as admin, which // opens /admin/executor (arbitrary code execution). Off by default; only // enable it while the port is reachable from your machine alone. unsecure_admin: false, };