Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
106 lines (96 loc) · 4.12 KB
/
Copy path.env.example
File metadata and controls
106 lines (96 loc) · 4.12 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
# =============================================================================
# IRIS V3 — environment template
# =============================================================================
# Copy to .env and edit. Every image tag is pinned by IRIS_VERSION so the
# four services roll together. All __MUST_BE_CHANGED__ values must be set.
# -- VERSION
# Single knob that pins iris-backend, iris-db, iris-nginx, and
# iris-frontend image tags together. Updated by scripts/bump-version.sh.
IRIS_VERSION=v3.0.0-beta.1
# -- LOGGING
LOG_LEVEL=info
# -- HOSTNAME (single source of truth)
# Provides fallback defaults for SERVER_NAME (nginx),
# PUBLIC_EXTERNAL_API_URL (SvelteKit), and VITE_ALLOWED_HOSTS (Vite
# dev). Explicit values still take precedence for split-hostname
# deployments (e.g. API on a different host than UI).
#
# ORIGIN is deliberately NOT derived from IRIS_HOSTNAME — the frontend
# reads x-forwarded-host per request instead (HOST_HEADER +
# PROTOCOL_HEADER in docker-compose.yml), so the same container can
# serve the app under multiple hostnames without breaking SvelteKit's
# CSRF check.
IRIS_HOSTNAME=localhost
# -- BROWSER ORIGINS (multi-hostname deployments)
# Every origin a browser may load this instance from, comma- or
# whitespace-separated. One deployment can answer on several names —
# the hostname it was installed with plus any further domain pointed at
# the same stack — and all of them are first-class origins for the same
# application.
#
# Read by both tiers, from this one variable:
# * the app — CORS allow-list + the Socket.IO handshake check, and
# the FIRST entry is the canonical public URL used for links built
# server-side (notification e-mails).
# * the frontend — its origin guard, which rejects a POST/PUT/PATCH/
# DELETE whose Origin isn't a hostname this deployment serves.
#
# Entries must carry a scheme; a bare hostname is ignored (there is no
# safe guess, and guessing would authorise the plaintext variant too).
# Matching is exact on scheme + host + port — no wildcard subdomains.
#
# Unset means `*` for the app (any origin, anonymous only — the CORS
# spec forbids pairing `*` with credentials) and same-origin-only for
# the frontend. Single-hostname deployments can leave it blank; list
# your hostnames explicitly as soon as there is more than one.
#
# IRIS_ALLOW_ORIGIN=https://iris.example.com,https://soc.acme.corp
# -- NGINX
SERVER_NAME=
# When both KEY_FILENAME and CERT_FILENAME are unset AND certbot's
# standard fullchain.pem + privkey.pem pair exist under
# ./certificates/web_certificates/, the nginx entrypoint autodetects
# them — useful for Let's Encrypt setups.
KEY_FILENAME=iris_dev_key.pem
CERT_FILENAME=iris_dev_cert.pem
# Nginx polls the cert file's mtime every N seconds and reloads on
# change so certbot renewals apply without a container restart. Set
# to 0 to disable if your deployment reloads nginx externally.
IRIS_CERT_RELOAD_INTERVAL=60
INTERFACE_HTTPS_PORT=443
# -- DATABASE
POSTGRES_USER=postgres
POSTGRES_PASSWORD=__MUST_BE_CHANGED__
POSTGRES_ADMIN_USER=raptor
POSTGRES_ADMIN_PASSWORD=__MUST_BE_CHANGED__
POSTGRES_DB=iris_db
POSTGRES_SERVER=db
POSTGRES_PORT=5432
# -- IRIS APP
DOCKERIZED=1
IRIS_SECRET_KEY=__MUST_BE_CHANGED__
IRIS_SECURITY_PASSWORD_SALT=__MUST_BE_CHANGED__
IRIS_UPSTREAM_SERVER=app
IRIS_UPSTREAM_PORT=8000
IRIS_FRONTEND_SERVER=frontend
IRIS_FRONTEND_PORT=5173
# -- WORKER
CELERY_BROKER=amqp://rabbitmq
# -- AUTH
IRIS_AUTHENTICATION_TYPE=local
# Optional: set the admin credentials seeded on first boot. If unset,
# the app prints the generated admin password to stdout the first
# time it starts.
#IRIS_ADM_USERNAME=administrator
#IRIS_ADM_PASSWORD=
#IRIS_ADM_EMAIL=admin@localhost
#IRIS_ADM_API_KEY=
# -- CUSTOM CA CERTIFICATES (Keycloak, LDAPS, webhooks, ...)
# Drop one or more *.crt / *.pem files into ./certificates/ca-bundle/
# on the host — they are mounted at /etc/iris-ca/ inside the app and
# worker containers, and installed into the OS trust store. Additive:
# system roots stay trusted.
#
# Legacy single-file bundle mode (REPLACES the default trust store):
#REQUESTS_CA_BUNDLE=/etc/iris-ca/extra-ca.crt
#SSL_CERT_FILE=/etc/iris-ca/extra-ca.crt