-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.env.example
More file actions
41 lines (34 loc) · 1.44 KB
/
Copy path.env.example
File metadata and controls
41 lines (34 loc) · 1.44 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
# ============================================================
# Tip4Serv API key
# ============================================================
# Optional. If set, the server reads this key directly.
# If empty, the key can be saved from the /admin page into MySQL.
TIP4SERV_API_KEY=
# ============================================================
# Frontend API
# ============================================================
VITE_API_BASE_URL=
VITE_API_PROXY_TARGET=http://localhost:8787
# ============================================================
# MySQL backend
# ============================================================
PORT=8787
CORS_ORIGIN=http://localhost:5173
ADMIN_JWT_SECRET=change-this-long-random-secret
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=shadow
MYSQL_PASSWORD=change-me
MYSQL_DATABASE=shadow
# ============================================================
# Discord OAuth (optional - to let buyers fetch their Discord ID
# automatically on the checkout page)
# ============================================================
# 1. Create an application at https://discord.com/developers/applications
# 2. In OAuth2 settings, add a redirect URL pointing to:
# https://your-domain.com/auth/discord/callback
# 3. Paste the Client ID below (public, safe to expose).
# 4. Add the Client Secret to the backend environment as
# DISCORD_CLIENT_SECRET (NEVER expose this in public frontend code).
VITE_DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=