Files
SupportBot/Configs/api.yml
T

34 lines
1.0 KiB
YAML
Raw Normal View History

2026-04-21 13:37:39 +01:00
# -------------------------------
# API Server Configuration
# -------------------------------
2026-05-26 20:11:22 +01:00
# Copy to api.yml and fill in your values (api.yml is not committed with real secrets).
2026-04-21 13:37:39 +01:00
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-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-05-16 15:10:27 +01:00
OAuth:
Enabled: true
2026-07-26 20:33:00 +01:00
ClientId: "1530910674551574580"
ClientSecret: "GIWdonM3bdFILhkg_1XWWeVQRlGf_npu"
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-05-26 20:11:22 +01:00
# Optional: register extra callback URLs in Discord and list them here.
# 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-07-26 20:33:00 +01:00
- "OWNER_ID"
2026-05-16 15:10:27 +01:00
AllowedUserIds: []