-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
94 lines (81 loc) · 3.98 KB
/
.env.example
File metadata and controls
94 lines (81 loc) · 3.98 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# =============================================================================
# DevOps Learning Platform — Environment Variables
# =============================================================================
# Copy this file to .env.local and fill in your values.
# All variables have sensible defaults for local development.
# -----------------------------------------------------------------------------
# Session
# -----------------------------------------------------------------------------
# REQUIRED in production (min 32 chars). In dev, a default is used.
SESSION_SECRET=your-secret-key-at-least-32-characters-long
# Session TTL in seconds (default: 604800 = 7 days)
# SESSION_TTL=604800
# -----------------------------------------------------------------------------
# Auth feature flags
# -----------------------------------------------------------------------------
# AUTH_ANONYMOUS_ENABLED=true
# AUTH_EMAIL_ENABLED=true
# -----------------------------------------------------------------------------
# OAuth: Google
# -----------------------------------------------------------------------------
# OAUTH_GOOGLE_CLIENT_ID=
# OAUTH_GOOGLE_CLIENT_SECRET=
# OAUTH_GOOGLE_CALLBACK=/api/auth/oauth/google/callback
# -----------------------------------------------------------------------------
# OAuth: GitHub
# -----------------------------------------------------------------------------
# OAUTH_GITHUB_CLIENT_ID=
# OAUTH_GITHUB_CLIENT_SECRET=
# OAUTH_GITHUB_CALLBACK=/api/auth/oauth/github/callback
# -----------------------------------------------------------------------------
# OAuth: Azure AD
# -----------------------------------------------------------------------------
# OAUTH_AZURE_CLIENT_ID=
# OAUTH_AZURE_CLIENT_SECRET=
# OAUTH_AZURE_TENANT=common
# OAUTH_AZURE_CALLBACK=/api/auth/oauth/azure/callback
# -----------------------------------------------------------------------------
# TOTP (2FA)
# -----------------------------------------------------------------------------
# TOTP_ISSUER=DevOps Learning Platform
# -----------------------------------------------------------------------------
# App
# -----------------------------------------------------------------------------
# BASE_URL=http://localhost:3000
# -----------------------------------------------------------------------------
# Database
# -----------------------------------------------------------------------------
# DB_TYPE=sqlite
# DB_URL=data/learning-platform.db
# -----------------------------------------------------------------------------
# Admin seed user (used by npm run db:seed)
# -----------------------------------------------------------------------------
# ADMIN_EMAIL=admin@devopslab.local
# ADMIN_PASSWORD=admin1234
# -----------------------------------------------------------------------------
# Registration
# -----------------------------------------------------------------------------
# Set to "false" to disable new user sign-ups. Existing users can still log in.
# NEXT_PUBLIC_REGISTRATION_ENABLED=true
# -----------------------------------------------------------------------------
# Demo Mode
# -----------------------------------------------------------------------------
# When set to "true", hides auth UI (login/register/profile/logout) in Navbar
# and shows a "Demo" badge. Admin panel still requires login.
NEXT_PUBLIC_DEMO_MODE=false
# -----------------------------------------------------------------------------
# CSRF Protection
# -----------------------------------------------------------------------------
# Enable CSRF token validation for state-changing requests
# WARNING: Requires frontend changes to include x-csrf-token header
# CSRF_PROTECTION_ENABLED=true
# -----------------------------------------------------------------------------
# SMTP (Email verification and password reset)
# -----------------------------------------------------------------------------
# Only enabled when SMTP_HOST is configured
# SMTP_HOST=
# SMTP_PORT=587
# SMTP_USER=
# SMTP_PASS=
# SMTP_FROM=noreply@devopslab.local
# SMTP_SECURE=false