Repository navigation
Expand file tree
/
Copy path.env.dev.template
More file actions
63 lines (57 loc) · 2.54 KB
/
Copy path.env.dev.template
File metadata and controls
63 lines (57 loc) · 2.54 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
## Version
TAG=latest
## Image Registry Path
# Docker Hub: (aka registry-1.docker.io/) leave REGISTRY_PATH value empty!
# Docker Hub Proxy: scm.cms.hu-berlin.de:443/iqb/dependency_proxy/containers/
# GitLab: scm.cms.hu-berlin.de:4567/iqb/coding-box/
REGISTRY_PATH=scm.cms.hu-berlin.de:443/iqb/dependency_proxy/containers/
## Redis
REDIS_PORT=6379
## Database
POSTGRES_PORT=5432
POSTGRES_USER=root
POSTGRES_PASSWORD=root-password
POSTGRES_DB=coding-box
## Backend
API_PORT=3333
JWT_SECRET=random_string
# Optional Node.js options for the API backend, e.g. --max-old-space-size=4096.
BACKEND_NODE_OPTIONS=
KEYCLOAK_URL=https://keycloak.kodierbox.iqb.hu-berlin.de/
KEYCLOAK_REALM=coding-box
KEYCLOAK_CLIENT_ID=coding-box
KEYCLOAK_CLIENT_SECRET=change_me
OIDC_ISSUER=https://keycloak.kodierbox.iqb.hu-berlin.de/realms/coding-box
OIDC_JWKS_URI=https://keycloak.kodierbox.iqb.hu-berlin.de/realms/coding-box/protocol/openid-connect/certs
WORKSPACE_TOKEN_REPLAY_READ_MAX_DURATION_DAYS=90
ALLOW_LEGACY_WORKSPACE_REPLAY_TOKENS=true
# API backend PostgreSQL connection pool size.
POSTGRES_POOL_MAX=10
# Close database sessions that remain idle inside a transaction (milliseconds).
POSTGRES_IDLE_IN_TRANSACTION_TIMEOUT_MS=900000
# Report requests that are still in flight after this duration (milliseconds).
IN_FLIGHT_REQUEST_THRESHOLD_MS=10000
# Log every request start in addition to slow, failed, and aborted requests.
REQUEST_START_LOGGING=false
RESPONSE_CACHE_WORKSPACE_CONCURRENCY=1
RESPONSE_CACHE_ITEM_CONCURRENCY=4
CODING_FILE_LOAD_CONCURRENCY=4
# Autocoder coding-scheme validation: compatible tolerates legacy source
# mismatches; strict blocks every breaking validator problem.
AUTOCODER_SCHEMA_VALIDATION_MODE=compatible
# Export worker DB session options. The default disables PostgreSQL JIT for large export queries.
EXPORT_WORKER_PGOPTIONS="-c jit=off"
# Keep long-running, consistent workspace export snapshots exempt from the API timeout.
EXPORT_WORKER_POSTGRES_IDLE_IN_TRANSACTION_TIMEOUT_MS=0
# Dedicated export worker PostgreSQL connection pool size.
EXPORT_WORKER_POSTGRES_POOL_MAX=4
# Coding-list export DB batch size. Smaller batches improve cancel responsiveness for large exports.
EXPORT_CODING_LIST_BATCH_SIZE=500
# Versioned export DB batch size. Smaller batches improve cancel responsiveness for large exports.
EXPORT_VERSIONED_BATCH_SIZE=250
# Optional override if GeoGebra changes the public bundle URL.
# GEOGEBRA_BUNDLE_DOWNLOAD_URL=https://download.geogebra.org/package/geogebra-math-apps-bundle
## Frontend
HTTP_PORT=4200
## Infrastructure
SERVER_NAME=localhost