Files
SupportBot-Dashboard/Configs/api.yml.example
T

30 lines
998 B
Plaintext
Raw Normal View History

2026-05-16 16:44:04 +01:00
# -------------------------------
# API Server Configuration
# -------------------------------
# Copy to api.yml and fill in your values (api.yml is not committed with real secrets).
API:
Enabled: true
Port: 3000
SecretKey: "CHANGE_ME"
2026-05-19 23:22:11 +01:00
# Set to 1 when the dashboard is behind nginx, Cloudflare, Pterodactyl proxy, etc.
# so http/https is detected from X-Forwarded-Proto.
TrustProxy: false
2026-05-16 16:44:04 +01:00
OAuth:
Enabled: true
ClientId: "DISCORD_CLIENT_ID"
ClientSecret: "DISCORD_CLIENT_SECRET"
2026-05-19 23:22:11 +01:00
# Canonical callback URL (host + path). Protocol (http/https) can follow the
# browser when UseRequestOrigin is true (default).
2026-05-16 16:44:04 +01:00
RedirectUri: "http://localhost:3000/api/auth/discord/callback"
2026-05-19 23:22:11 +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-05-16 16:44:04 +01:00
OwnerUserIds:
- "YOUR_DISCORD_USER_ID"
AllowedUserIds: []