forked from istSOS/istSOS4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
138 lines (97 loc) · 3.9 KB
/
.env.example
File metadata and controls
138 lines (97 loc) · 3.9 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# Copy this file to .env and fill in your values before starting the stack.
# cp .env.example .env
#
# Variables marked REQUIRED have no default and the application will not work
# correctly without them.
# ---------------------------------------------------------------------------
# Server
# ---------------------------------------------------------------------------
# Public hostname of the server (should match EXTERNAL_PORT).
HOSTNAME=http://localhost:8018
# Port Docker exposes the API on.
EXTERNAL_PORT=8018
# URL subpath for the API.
SUBPATH=/istsos4
# SensorThings API version segment.
VERSION=/v1.1
# Set to 1 to enable verbose debug output.
DEBUG=0
# ---------------------------------------------------------------------------
# PostgreSQL
# ---------------------------------------------------------------------------
POSTGRES_DB=istsos
POSTGRES_USER=postgres
# REQUIRED — choose a strong password.
POSTGRES_PASSWORD=change_me
POSTGRES_HOST=database
POSTGRES_PORT=5432
# External port Docker exposes Postgres on (useful for local psql access).
POSTGRES_EXTERNAL_PORT=45432
# Set to a write-replica host:port to split reads/writes. Leave empty for
# single-node setups.
POSTGRES_PORT_WRITE=
# ---------------------------------------------------------------------------
# istSOS administrator account
# ---------------------------------------------------------------------------
ISTSOS_ADMIN=admin
# REQUIRED — choose a strong password.
ISTSOS_ADMIN_PASSWORD=change_me
# ---------------------------------------------------------------------------
# Connection pool
# ---------------------------------------------------------------------------
PG_MAX_OVERFLOW=0
PG_POOL_SIZE=10
PG_POOL_TIMEOUT=30
# ---------------------------------------------------------------------------
# Query behaviour
# ---------------------------------------------------------------------------
# FULL | LIMIT_ESTIMATE | ESTIMATE_LIMIT
# FULL always accurate; ESTIMATE_LIMIT fastest for large datasets.
COUNT_MODE=FULL
COUNT_ESTIMATE_THRESHOLD=10000
TOP_VALUE=100
PARTITION_CHUNK=10000
# ---------------------------------------------------------------------------
# Features
# ---------------------------------------------------------------------------
# Enable Redis-based token blacklisting (0 = disabled, 1 = enabled).
REDIS=0
# Allow duplicate observations (0 = disabled, 1 = enabled).
DUPLICATES=0
# Default coordinate reference system (EPSG code).
EPSG=4326
# Enable row-level authorization (0 = disabled, 1 = enabled).
AUTHORIZATION=0
# Allow unauthenticated read access (0 = disabled, 1 = enabled).
ANONYMOUS_VIEWER=0
# Enable network entity support (0 = disabled, 1 = enabled).
NETWORK=0
# Enable data versioning (0 = disabled, 1 = enabled).
VERSIONING=0
# Observed-area aggregation function: CONVEX_HULL | EXTENT
ST_AGGREGATE=CONVEX_HULL
# ---------------------------------------------------------------------------
# Authentication (REQUIRED when AUTHORIZATION=1)
# ---------------------------------------------------------------------------
# REQUIRED — generate with: openssl rand -hex 32
SECRET_KEY=replace_with_output_of__openssl_rand_-hex_32
ALGORITHM=HS256
# Access token lifetime in minutes.
ACCESS_TOKEN_EXPIRE_MINUTES=60
# ---------------------------------------------------------------------------
# Dummy data generator (dev_docker-compose.yml only)
# ---------------------------------------------------------------------------
# Load synthetic data on first startup (0 = disabled, 1 = enabled).
DUMMY_DATA=1
# Wipe existing data before loading (0 = disabled, 1 = enabled).
CLEAR_DATA=0
N_THINGS=5
N_OBSERVED_PROPERTIES=4
# ISO 8601 duration: total time span of generated observations.
INTERVAL=P7D
# ISO 8601 duration: gap between observations.
FREQUENCY=PT5M
# ISO 8601 datetime: start of the generated observation series.
START_DATETIME=2020-01-01T12:00:00.000+01:00
# ISO 8601 duration: time-series partition size.
CHUNK_INTERVAL=P7D