This repository was archived by the owner on Mar 24, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathexample.env
More file actions
52 lines (44 loc) · 2.31 KB
/
example.env
File metadata and controls
52 lines (44 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# =============================================================================
# KYTHIA DASHBOARD CONFIGURATION
# =============================================================================
# Instructions:
# 1. Copy this file to .env
# 2. Fill in the values below
# 3. Do not commit your .env file to version control
# =============================================================================
# -----------------------------------------------------------------------------
# 1. APP CONFIGURATION
# -----------------------------------------------------------------------------
# The public URL where your dashboard is hosted (e.g., http://localhost:3001)
NEXT_PUBLIC_APP_URL="http://localhost:3001"
PORT=3001
# -----------------------------------------------------------------------------
# 2. BOT CONNECTION (BACKEND)
# -----------------------------------------------------------------------------
# The API URL of your Kythia Bot instance
# If running locally, usually http://localhost:3000/api
KYTHIA_BOT_API_URL="http://localhost:3000/api"
# Secret token for securing communication between Dashboard and Bot
# MUST MATCH the API_SECRET in your bot's .env file
API_SECRET="change_this_to_a_secure_random_string"
# -----------------------------------------------------------------------------
# 3. AUTHENTICATION (NEXTAUTH + DISCORD)
# -----------------------------------------------------------------------------
# The URL where NextAuth processes requests (same as NEXT_PUBLIC_APP_URL)
NEXTAUTH_URL="http://localhost:3001"
# A random string used to hash tokens and sign cookies.
# Generate one using: openssl rand -base64 32
NEXTAUTH_SECRET="change_this_to_a_secure_random_string"
# Discord OAuth Credentials
# Create an application at https://discord.com/developers/applications
# 1. Go to OAuth2
# 2. Add Redirect: http://localhost:3001/api/auth/callback/discord
# 3. Copy Client ID and Client Secret below
DISCORD_CLIENT_ID="YOUR_DISCORD_CLIENT_ID"
DISCORD_CLIENT_SECRET="YOUR_DISCORD_CLIENT_SECRET"
# -----------------------------------------------------------------------------
# 4. DATABASE CONFIGURATION
# -----------------------------------------------------------------------------
# Connection string for your database
# Format: mysql://USER:PASSWORD@HOST:PORT/DATABASE
DATABASE_URL="mysql://root:password@localhost:3306/kythia_dashboard"