-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
74 lines (56 loc) · 2.2 KB
/
.env.example
File metadata and controls
74 lines (56 loc) · 2.2 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# ========================
# Backend Configuration
# ========================
# Set the environment mode:
# - dev: Enables development features like database reset and seeding
# - prod: Production mode
# - demo: Public demo mode with single-user mode and restricted functionality
ENV=dev
# Leave this unchanged if you're using docker-compose
DATABASE_URL=postgresql+psycopg2://evsy:evsy@db:5432/evsy
# Public URL of the frontend (used for CORS policy and redirects)
# For local dev use http://localhost:3000
FRONTEND_URL=http://localhost:3000
# Public URL of the backend (used for building OAuth callback URLs)
# For local dev use http://localhost:8000
# IMPORTANT: In production, this must match the actual backend domain.
BACKEND_URL=http://localhost:8000
# ========================
# Frontend Configuration
# ========================
# Should match the ENV variable above
VITE_ENV=dev
# Base URL of the backend API
# For local dev use http://localhost:8000/api/v1
VITE_API_URL=http://localhost:8000/api/v1
# Logging verbosity in browser console (e.g., debug, info, warn, error)
VITE_LOG_LEVEL=error
# If deploying behind a reverse proxy, add your public domain here
__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=demo.evsy.dev
# ========================
# Auth Configuration
# ========================
# Secret key used to sign JWTs. Must be a secure 32+ char string.
SECRET_KEY=YOUR_32_CHAR_SECRET_KEY
# === GitHub OAuth ===
# If provided, GitHub OAuth login will be enabled
# Create your app here: https://github.com/settings/developers
# Set the authorization callback URL to
# <YOUR_BACKEND_URL>/api/v1/auth/oauth/callback
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
# === Google OAuth ===
# If provided, Google OAuth login will be enabled
# Create credentials here: https://github.com/settings/developers
# Set the authorized redirect URI to
# <YOUR_BACKEND_URL>/api/v1/auth/oauth/callback
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# ========================
# Reverse Proxy Notes
# ========================
# We recommend to deploy both backend and frontend on the same domain,
# with backend served under /api. For example:
#
# - https://yourdomain.com → frontend (port 3000)
# - https://yourdomain.com/api → backend (port 8000)