initial version
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
// Adventure Land - local Docker configuration (keys)
|
||||
//
|
||||
// Replaces secretsandconfig/keys.js from the upstream repository. Values are
|
||||
// development defaults: change them before exposing this stack to anyone but
|
||||
// yourself. Unlike the upstream template, the values here are stable across
|
||||
// restarts, so sessions and server records survive a `docker compose restart`.
|
||||
//
|
||||
// MongoDB connection settings can be overridden per container through the
|
||||
// MONGODB_URI / MONGODB_NAME environment variables (see docker-compose.yml).
|
||||
const path = require("node:path");
|
||||
|
||||
const env = (name, fallback) => process.env[name] || fallback;
|
||||
|
||||
module.exports = {
|
||||
server_keyword: env("SERVER_KEYWORD", "local-server-keyword-change-me"),
|
||||
|
||||
mongodb_uri: env("MONGODB_URI", "mongodb://al-mongo:27017/adventureland?replicaSet=rs0"),
|
||||
mongodb_name: env("MONGODB_NAME", "adventureland"),
|
||||
// e.g. { tlsCAFile: path.resolve(__dirname, "ca.crt") }
|
||||
mongodb_config: {},
|
||||
|
||||
stripe_test_api_key: "",
|
||||
stripe_test_pkey: "",
|
||||
stripe_api_key: "",
|
||||
stripe_pkey: "",
|
||||
steam_web_apikey: "",
|
||||
steam_publisher_web_apikey: "",
|
||||
sdk_password: env("SDK_PASSWORD", "local-sdk-password-change-me"),
|
||||
amazon_ses_user: "",
|
||||
amazon_ses_key: "",
|
||||
|
||||
// Admin / server-to-server keys, only meaningful for local play.
|
||||
ACCESS_MASTER: env("ACCESS_MASTER", "local-access-master-change-me"),
|
||||
BOT_MASTER: env("BOT_MASTER", "local-bot-master-change-me"),
|
||||
SERVER_MASTER: env("SERVER_MASTER", "local-server-master-change-me"),
|
||||
|
||||
discord_token: env("DISCORD_TOKEN", ""),
|
||||
apple_token: "",
|
||||
steam_key: "",
|
||||
};
|
||||
@@ -0,0 +1,62 @@
|
||||
// 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:<backend port>
|
||||
// servers.local.address -> localhost:<game server port>
|
||||
const path = require("node:path");
|
||||
|
||||
machines = {
|
||||
local: {
|
||||
key: "",
|
||||
ip: "0.0.0.0",
|
||||
user: "",
|
||||
},
|
||||
};
|
||||
|
||||
servers = {
|
||||
local: {
|
||||
region: "DE",
|
||||
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,
|
||||
ip_limit: 3,
|
||||
character_limit: 3,
|
||||
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: true,
|
||||
};
|
||||
Reference in New Issue
Block a user