forked from Dushyant-rahangdale/OpsKnight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
42 lines (37 loc) · 1.93 KB
/
Copy path.env.example
File metadata and controls
42 lines (37 loc) · 1.93 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
# ====================================================
# OpsKnight Environment Configuration
# ====================================================
# Copy this file to .env and fill in your values.
# See SECURITY.md for production security guidelines.
# ====================================================
# ----------------------------------------------------
# DATABASE
# ----------------------------------------------------
# PostgreSQL connection string with recommended production settings
# Required: Yes
DATABASE_URL="postgresql://opsknight:opsknight_secure_password_change_me@localhost:5432/opsknight_db?sslmode=prefer&connection_limit=40&pool_timeout=30"
# ----------------------------------------------------
# AUTHENTICATION
# ----------------------------------------------------
# Full URL of your application (required for OAuth callbacks, links in emails)
# Required: Yes
# Server-side URL (internal container URL if applicable, otherwise same as APP_URL)
NEXTAUTH_URL="http://localhost:3000"
# Secret for signing JWTs and encrypting sessions
# Generate with: openssl rand -base64 32
# Required: Yes
NEXTAUTH_SECRET="dev-secret-key-for-development-only"
# ----------------------------------------------------
# ENCRYPTION
# ----------------------------------------------------
# 32-byte master key (hex-encoded, 64 characters) used to encrypt sensitive
# database fields such as SSO client secrets and Slack integration tokens.
# Generate with: openssl rand -hex 32
# Required: Yes (in production). A safe dev fallback is used automatically in development.
# ENCRYPTION_KEY="your-64-char-hex-key-here"
# ----------------------------------------------------
# APPLICATION URL (Client-Side)
# ----------------------------------------------------
# Public-facing application URL (used in emails, SMS, push notifications, and client-side logic)
# Required: Yes (for production and proper client-side functioning)
NEXT_PUBLIC_APP_URL="http://localhost:3000"