-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
124 lines (103 loc) · 4.49 KB
/
.env.example
File metadata and controls
124 lines (103 loc) · 4.49 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# OntoKit API Environment Configuration
# Copy this file to .env and update values as needed
# =============================================================================
# Application
# =============================================================================
APP_ENV=development
DEBUG=true
SECRET_KEY=change-me-in-production-use-a-random-32-char-string
# Server
HOST=0.0.0.0
PORT=8000
# =============================================================================
# Database (PostgreSQL)
# =============================================================================
# Development (Docker Compose - API runs in container)
# DATABASE_URL=postgresql+asyncpg://ontokit:ontokit@postgres:5432/ontokit
# Development (Docker infra, API on host)
DATABASE_URL=postgresql+asyncpg://ontokit:ontokit@localhost:5432/ontokit
# =============================================================================
# Redis
# =============================================================================
# Development (Docker Compose - API runs in container)
# REDIS_URL=redis://redis:6379/0
# Development (Docker infra, API on host)
REDIS_URL=redis://localhost:6379/0
# =============================================================================
# MinIO / S3
# =============================================================================
# Development (Docker Compose - API runs in container)
# MINIO_ENDPOINT=minio:9000
# Development (Docker infra, API on host)
MINIO_ENDPOINT=localhost:9000
MINIO_ACCESS_KEY=minio
MINIO_SECRET_KEY=minio123
MINIO_BUCKET=ontokit
MINIO_SECURE=false
# =============================================================================
# Zitadel Authentication
# =============================================================================
ZITADEL_ISSUER=http://localhost:8080
# Internal URL for JWKS fetch (only needed in Full Docker mode)
# When API runs in Docker, it needs to reach Zitadel via Docker networking
# ZITADEL_INTERNAL_URL=http://zitadel:8080
ZITADEL_CLIENT_ID=
ZITADEL_CLIENT_SECRET=
# Service account PAT for user lookups (from /zitadel-data/admin.pat in Docker)
# This token is auto-generated by Zitadel on first start
ZITADEL_SERVICE_TOKEN=
# =============================================================================
# CORS (JSON array format)
# =============================================================================
CORS_ORIGINS=["http://localhost:3000","http://localhost:5173"]
# =============================================================================
# Git Repository Storage (Version Control)
# =============================================================================
# Base path where git repositories are stored (one per project)
# Development (Docker infra, API on host)
GIT_REPOS_BASE_PATH=./data/repos
# Docker (API in container)
# GIT_REPOS_BASE_PATH=/data/repos
# =============================================================================
# Frontend / Sitemap Revalidation (optional)
# =============================================================================
# URL of the Next.js frontend (for sitemap revalidation notifications)
FRONTEND_URL=http://localhost:3000
# Shared secret — must match REVALIDATION_SECRET in the frontend .env
REVALIDATION_SECRET=change-me-generate-with-openssl-rand-base64-32
# =============================================================================
# GitHub Integration (optional)
# =============================================================================
GITHUB_APP_ID=
GITHUB_APP_PRIVATE_KEY=
# =============================================================================
# Production Infrastructure Settings (compose.prod.yaml)
# =============================================================================
# Uncomment and customize for production deployments
# PostgreSQL
# POSTGRES_PASSWORD=secure-postgres-password
# POSTGRES_PORT=5432
# Redis
# REDIS_PASSWORD=secure-redis-password
# REDIS_PORT=6379
# MinIO
# MINIO_ROOT_USER=minio
# MINIO_ROOT_PASSWORD=secure-minio-password
# MINIO_API_PORT=9000
# MINIO_CONSOLE_PORT=9001
# Zitadel
# ZITADEL_MASTERKEY=your-32-character-master-key-here
# ZITADEL_DOMAIN=auth.yourdomain.com
# ZITADEL_SECURE=true
# ZITADEL_TLS=true
# ZITADEL_PORT=8080
# ZITADEL_LOGIN_PORT=8081
# ZITADEL_URL=https://auth.yourdomain.com
# ZITADEL_LOGIN_URL=https://auth.yourdomain.com
# ZITADEL_DB_PASSWORD=secure-zitadel-password
# ZITADEL_ORG_NAME=YourOrganization
# ZITADEL_ADMIN_USER=admin
# ZITADEL_ADMIN_PASSWORD=secure-admin-password
# ZITADEL_REQUIRE_PASSWORD_CHANGE=true
# ZITADEL_LOG_LEVEL=info
# ZITADEL_ACCESS_LOG=false