Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
102 lines (89 loc) · 4.86 KB
/
Copy path.env.example
File metadata and controls
102 lines (89 loc) · 4.86 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
# Eagle API - Local Development Environment Variables
# Copy this file to .env and adjust values as needed.
# .env is gitignored and never committed.
# =============================================================================
# MongoDB
# =============================================================================
# Use defaults below when running MongoDB via docker compose (yarn db:up)
MONGODB_SERVICE_HOST=localhost
MONGODB_DATABASE=epic
# Leave blank for unauthenticated local MongoDB (default docker-compose.yml setup)
MONGODB_USERNAME=
MONGODB_PASSWORD=
# =============================================================================
# Authentication
# =============================================================================
# Set KEYCLOAK_ENABLED=false for local development (no Keycloak required)
# The API will accept tokens signed with SECRET below instead
KEYCLOAK_ENABLED=false
SECRET=localdev
# Set KEYCLOAK_ENABLED=true to verify tokens against the dev Keycloak instance
# SSO_ISSUER=https://dev.loginproxy.gov.bc.ca/auth/realms/eao-epic
# SSO_JWKSURI=https://dev.loginproxy.gov.bc.ca/auth/realms/eao-epic/protocol/openid-connect/certs
# JWT expiry in minutes
JWT_SIGN_EXPIRY=1440
# =============================================================================
# File Uploads
# =============================================================================
# Directory for uploaded files (must be writable)
UPLOAD_DIRECTORY=./uploads/
# =============================================================================
# Object Storage (Minio / S3)
# =============================================================================
# Optional - only needed if testing document upload/download
# MINIO_HOST=
# MINIO_ACCESS_KEY=
# MINIO_SECRET_KEY=
# =============================================================================
# Virus Scanning (ClamAV)
# =============================================================================
# Optional - set ENABLE_VIRUS_SCANNING=true only if ClamAV is running locally
ENABLE_VIRUS_SCANNING=false
# CLAMAV_SERVICE_HOST=127.0.0.1
# CLAMAV_SERVICE_PORT=3310
# =============================================================================
# Smoke Tests (optional)
# =============================================================================
# Uncomment to enable API key auth bypass for smoke tests
# SMOKE_API_KEY=local-smoke-key
# =============================================================================
# DEMI Push (optional)
# =============================================================================
# Outbound mirror of project/document/update writes to demi-api, via the APIM machine
# API. Base ends at /machine; the backend adds /api. Unset = no pushes.
# DEMI_API_BASE=https://demi-apim-test.azure-api.net/machine
# APIM subscription key, sent as Ocp-Apim-Subscription-Key.
# DEMI_APIM_KEY=
# Extra kinds to push, by DEMI route segment, comma-separated. Unset = none of them.
# Allowed: users, groups, inspections, inspection-elements, inspection-items.
# Turn one on only once DEMI serves its /eagle/<segment>/:id route.
# DEMI_PUSH_OPT_IN_KINDS=
# Pushes in flight per client per process (default 8); more wait in a queue.
# DEMI_PUSH_CONCURRENCY=8
# Queue length (default 1000); a push past it is dropped and logged as push-dropped.
# DEMI_PUSH_QUEUE_MAX=1000
# How long a write waits for its pushes before answering, in ms (default 25000). A push still
# running then answers mirrored: false and flags the row for demi-push-sweep; the push itself keeps going.
# DEMI_PUSH_AWAIT_MS=25000
# =============================================================================
# Analytics (optional)
# =============================================================================
# Batched events and staff audit rows posted to the analytics ingest API through the
# DEMI APIM. Each URL is a base the helper appends the path to, and each is independent:
# unset = that half sends nothing.
# Product events. Anonymous APIM API, no key. The helper appends /events.
# ANALYTICS_API_URL=https://demi-apim-test.azure-api.net/analytics
# Staff audit rows. Keyed APIM API, so it also needs ANALYTICS_API_KEY. The helper appends /audit.
# ANALYTICS_AUDIT_URL=https://demi-apim-test.azure-api.net/analytics-machine
# APIM subscription key for product analytics-machine, sent as Ocp-Apim-Subscription-Key.
# ANALYTICS_API_KEY=
# =============================================================================
# Sitemap (optional)
# =============================================================================
# Public site host that GET /api/public/sitemap.xml builds project page links on.
# Unset = https://projects.eao.gov.bc.ca, the prod public site.
# PUBLIC_SITE_URL=https://projects.eao.gov.bc.ca
# =============================================================================
# Telemetry
# =============================================================================
SCARF_ANALYTICS=false