41 lines
1.5 KiB
JavaScript
41 lines
1.5 KiB
JavaScript
// 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: "",
|
|
};
|