Files
SupportBot/Configs/api.yml
T

63 lines
1.9 KiB
YAML
Raw Permalink Normal View History

2026-08-06 16:30:04 +01:00
# ___ _ ___ _
# / __> _ _ ___ ___ ___ _ _ _| |_ | . > ___ _| |_
# \__ \| | || . \| . \/ . \| '_> | | | . \/ . \ | |
# <___/`___|| _/| _/\___/|_| |_| |___/\___/ |_|
# |_| |_|
#
# SupportBot created by Emerald Services
# Installed with MIT License
#
# Discord Support: https://discord.gg/emeraldsrv
# Official Website & Marketplace: https://emeraldsrv.com
#
# Messages Configuration (api.yml)
2026-04-21 13:37:39 +01:00
# -------------------------------
# API Server Configuration
# -------------------------------
API:
Enabled: true
2026-05-26 20:11:22 +01:00
Port: 3000
2026-05-16 15:10:27 +01:00
2026-07-26 20:33:00 +01:00
SecretKey: "SECRET_KEY"
2026-08-06 16:30:04 +01:00
2026-05-26 20:11:22 +01:00
# Set to 1 when the dashboard is behind nginx, Cloudflare, Pterodactyl proxy, etc.
# so http/https is detected from X-Forwarded-Proto.
2026-07-26 20:33:00 +01:00
2026-05-26 20:11:22 +01:00
TrustProxy: false
2026-05-16 15:10:27 +01:00
2026-07-26 20:33:00 +01:00
EmeraldAPIKey: "EMERALDSRV_API_KEY"
2026-08-06 16:30:04 +01:00
# This is required for the one-click addon installer. Get API key from https://emeraldsrv.dev/
2026-07-26 20:33:00 +01:00
2026-05-16 15:10:27 +01:00
OAuth:
Enabled: true
2026-08-06 16:30:04 +01:00
ClientId: "CLIENT_ID"
ClientSecret: "CLIENT_SECRET"
# Get Client ID and Client Secret from https://discord.com/developers/applications
2026-05-26 20:11:22 +01:00
# Canonical callback URL (host + path). Protocol (http/https) can follow the
# browser when UseRequestOrigin is true (default).
2026-06-26 13:55:24 +01:00
2026-05-16 15:10:27 +01:00
RedirectUri: "http://localhost:3000/api/auth/discord/callback"
2026-08-06 16:30:04 +01:00
2026-05-26 20:11:22 +01:00
# Optional: register extra callback URLs in Discord and list them here.
2026-08-06 16:30:04 +01:00
2026-05-26 20:11:22 +01:00
# RedirectUris:
# - "https://bot.example.com/api/auth/discord/callback"
# UseRequestOrigin: true
# CookieSecure: false
2026-06-26 13:55:24 +01:00
2026-05-16 15:10:27 +01:00
OwnerUserIds:
2026-08-06 16:30:04 +01:00
- "OWNER_USER_ID"
2026-05-16 15:10:27 +01:00
AllowedUserIds: []
2026-08-06 16:30:04 +01:00
# Dashboard Features
LiveChat:
Mode: "webhook"
# "webhook" - Webhook to send messages with staff member's avatar and Discord username
# "bot" - Send messages as Bot account with discord username prefix.
# "bot_noprefix" - Send messages as Bot account without discord username prefix.