forked from Dushyant-rahangdale/OpsKnight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
40 lines (36 loc) · 1.96 KB
/
env.example
File metadata and controls
40 lines (36 loc) · 1.96 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
# ==============================================
# OpsKnight Configuration File (.env)
# ==============================================
# INSTRUCTIONS:
# 1. Copy this file and rename it to ".env"
# 2. Fill in the values below.
# 3. Lines starting with "#" are comments to help you.
# ==============================================
# ----------------------------------------------
# 1. DATABASE CONNECTION (REQUIRED)
# ----------------------------------------------
# Connection to PostgreSQL.
# Append ?connection_limit=N to configure the connection pool size.
# If you run the app via Docker Compose, use host `opsknight-db` (container network name).
# If you run `npm run dev` on your machine while Postgres runs in Docker, use host `localhost`.
# Example (host dev): postgresql://opsknight:your_secure_password@localhost:5432/opsknight_db?sslmode=prefer&connection_limit=40
# Example (docker): postgresql://opsknight:your_secure_password@opsknight-db:5432/opsknight_db?sslmode=prefer&connection_limit=40
DATABASE_URL="postgresql://opsknight:your_secure_password@localhost:5432/opsknight_db?sslmode=prefer&connection_limit=40"
# ----------------------------------------------
# 2. APPLICATION SETTINGS (REQUIRED)
# ----------------------------------------------
# The full URL where your application is running.
# Local Development: http://localhost:3000
# Production: https://your-domain.com
NEXTAUTH_URL=http://localhost:3000
# A long, random string used to encrypt sessions and tokens.
# You can generate one by running `openssl rand -base64 32` in your terminal.
# SECURITY WARNING: Keep this secret! Do not share it.
NEXTAUTH_SECRET=changeme_to_a_secure_random_string
# ----------------------------------------------
# 3. DOCKER DATABASE SETTINGS (OPTIONAL - For Local Docker Use)
# ----------------------------------------------
# These are used only if you use 'docker-compose' to run the database locally.
POSTGRES_USER=opsknight
POSTGRES_PASSWORD=devpassword
POSTGRES_DB=opsknight_db