From 1a3dab3d17c18431fd2be56348d116750b37ba81 Mon Sep 17 00:00:00 2001 From: Blackbox Agent Date: Wed, 28 Jan 2026 16:57:45 +0000 Subject: [PATCH] SSH into my server ubuntu@15.168.154.32 and instal... --- clawdbot.config.js.template | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 clawdbot.config.js.template diff --git a/clawdbot.config.js.template b/clawdbot.config.js.template new file mode 100644 index 000000000..7f6ff4513 --- /dev/null +++ b/clawdbot.config.js.template @@ -0,0 +1,35 @@ +// Clawdbot Configuration Template +// Copy this file to clawdbot.config.js and fill in the environment variables + +module.exports = { + // Gateway configuration - bind to loopback or Tailnet only + gateway: { + host: process.env.CLAWDBOT_GATEWAY_HOST || '127.0.0.1', // or Tailnet IP + port: parseInt(process.env.CLAWDBOT_GATEWAY_PORT) || 8080, + // Ensure not public - only accessible via Tailscale or SSH tunnel + }, + + // Authentication + auth: { + mode: 'password', + password: process.env.CLAWDBOT_PASSWORD, // Strong password from environment + }, + + // Access control + channels: { + allowlist: process.env.CLAWDBOT_CHANNEL_ALLOWLIST ? process.env.CLAWDBOT_CHANNEL_ALLOWLIST.split(',') : [], // Comma-separated channel IDs + }, + + dmPolicy: 'allowlist', // Not open - only allowlisted users + + // Other configurations + // Add other Clawdbot specific settings here + discord: { + token: process.env.DISCORD_TOKEN, // Discord bot token + }, + + // Database or other services if needed + database: { + url: process.env.DATABASE_URL, + }, +}; \ No newline at end of file