@nsshunt/stsconfig 1.12.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env-default +222 -0
- package/.env-test-file-2 +114 -160
- package/.github/dependabot.yml +1 -1
- package/package.json +1 -1
- package/stsconfig-01.test.js +191 -0
- package/stsconfig-02.test.js +191 -0
- package/stsconfig-default.test.js +191 -0
- package/stsconfig.js +121 -86
- package/testapiidentifierFile +1 -0
- package/testclientidfile +1 -0
- package/testclientsecretfile +1 -0
- package/testpasswordfile +1 -0
- package/stsconfig.test.js +0 -85
package/.env-default
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# ==================================================================================================
|
|
2
|
+
# Default configuration settings
|
|
3
|
+
# ==================================================================================================
|
|
4
|
+
# Log error messages to the console within the microservice
|
|
5
|
+
CONSOLE_LOG_ERRORS=false
|
|
6
|
+
# Database username.
|
|
7
|
+
DB_USER=postgres
|
|
8
|
+
# Database password.
|
|
9
|
+
DB_PASSWORD=password
|
|
10
|
+
# Database password file
|
|
11
|
+
#DB_PASSWORD_FILE
|
|
12
|
+
# Database host
|
|
13
|
+
DB_HOST=localhost
|
|
14
|
+
# Database port
|
|
15
|
+
DB_PORT=5432
|
|
16
|
+
# Database name.
|
|
17
|
+
DB_DATABASE=stsrestmsdb01
|
|
18
|
+
# Database connection string to be used in production mode
|
|
19
|
+
#DATABASE_URL=
|
|
20
|
+
# Database script(s) folder
|
|
21
|
+
DB_SCRIPT_FOLDER=/var/lib/sts/stsglobalresources/db-scripts
|
|
22
|
+
|
|
23
|
+
# The maximum pool size for pg. There will be one pool per thread.
|
|
24
|
+
POOL_SIZE=500
|
|
25
|
+
# Maximum number of CPUs (incl. logical processors) to use within the Microservice.
|
|
26
|
+
# Use -1 to use all available within the runtime container. Each CPU will spawn a node work thread.
|
|
27
|
+
MAX_CPU=-1
|
|
28
|
+
# Automatically re-spawn a worker thread if one dies.
|
|
29
|
+
RESPAWN=false
|
|
30
|
+
# Default number of entries to create for a fresh database.
|
|
31
|
+
DEFAULT_DB_ENTRIES=10000
|
|
32
|
+
# Microservice listen port.
|
|
33
|
+
USE_REDIS=false
|
|
34
|
+
# Use redis for Microservice.
|
|
35
|
+
USE_L1_REDIS=false
|
|
36
|
+
# Automatically flush the redis cache when terminating the Microservice.
|
|
37
|
+
REDIS_END_FLUSH=false
|
|
38
|
+
# Redis server port.
|
|
39
|
+
REDIS_PORT=6379
|
|
40
|
+
# Redis server endpoint.
|
|
41
|
+
REDIS_SERVER=localhost
|
|
42
|
+
# Default K6 test script path
|
|
43
|
+
K6SCRIPTPATH=.
|
|
44
|
+
# Default number of entries to create for a fresh database.
|
|
45
|
+
DEFAULT_DATABASE_MIN_EXTRA_DATA_SIZE=0
|
|
46
|
+
# Default number of entries to create for a fresh database.
|
|
47
|
+
DEFAULT_DATABASE_MAX_EXTRA_DATA_SIZE=2000
|
|
48
|
+
|
|
49
|
+
# STSREST01 Server endpoint
|
|
50
|
+
REST01_ENDPOINT=http://localhost
|
|
51
|
+
# STSREST01 Server port (listen port for the service)
|
|
52
|
+
REST01_HOST_PORT=3003
|
|
53
|
+
# STSREST01 Server port (client port to access the service)
|
|
54
|
+
REST01_PORT=3003
|
|
55
|
+
# STSREST01 Server endpoint
|
|
56
|
+
REST01_APIROOT=/stsrest01/v1
|
|
57
|
+
# STSREST01 Prometheus metric support
|
|
58
|
+
REST01_PROM_SUPPORT=true
|
|
59
|
+
# STSREST01 Cluster Server port (port used for cluster prometheus scrapes). Service will listen on this port at mount point /metrics
|
|
60
|
+
REST01_PROM_CLUSTER_PORT=3013
|
|
61
|
+
# STSREST01 Service Name
|
|
62
|
+
REST01_SERVICE_NAME=STSRest01
|
|
63
|
+
# STSREST01 Service Version
|
|
64
|
+
REST01_SERVICE_VERSION=1.0.0
|
|
65
|
+
|
|
66
|
+
# STS Instrument Manager Service endpoint
|
|
67
|
+
IM_ENDPOINT=http://localhost
|
|
68
|
+
# STS Instrument Manager Service listen port (listen port for the service)
|
|
69
|
+
IM_HOST_PORT=3001
|
|
70
|
+
# STS Instrument Manager Service client access port (client port to access the service)
|
|
71
|
+
IM_PORT=3001
|
|
72
|
+
# STS Instrument Manager Service endpoint
|
|
73
|
+
IM_APIROOT=/stsinstrumentmanager/v1
|
|
74
|
+
# STS Instrument Manager Prometheus metric support
|
|
75
|
+
IM_PROM_SUPPORT=true
|
|
76
|
+
# STS Instrument Manager Cluster Server port (port used for cluster prometheus scrapes)
|
|
77
|
+
IM_PROM_CLUSTER_PORT=3011
|
|
78
|
+
# STS Instrument Manager Service Name
|
|
79
|
+
IM_SERVICE_NAME=STSInstrumentManager
|
|
80
|
+
# STS Instrument Manager Service Version
|
|
81
|
+
IM_SERVICE_VERSION=1.0.0
|
|
82
|
+
|
|
83
|
+
# STS Test Orchestrator Service endpoint
|
|
84
|
+
TO_ENDPOINT=http://localhost
|
|
85
|
+
# STS Test Orchestrator Service listen port (listen port for the service)
|
|
86
|
+
TO_HOST_PORT=3004
|
|
87
|
+
# STS Test Orchestrator Service client access port (client port to access the service)
|
|
88
|
+
TO_PORT=3004
|
|
89
|
+
# STS Test Orchestrator Service endpoint
|
|
90
|
+
TO_APIROOT=/ststestorchestrator/v1
|
|
91
|
+
# STS Test Orchestrator Prometheus metric support
|
|
92
|
+
TO_PROM_SUPPORT=true
|
|
93
|
+
# STS Test Orchestrator Cluster Server port (port used for cluster prometheus scrapes)
|
|
94
|
+
TO_PROM_CLUSTER_PORT=3014
|
|
95
|
+
# STS Test Orchestrator Service Name
|
|
96
|
+
TO_SERVICE_NAME=STSTestOrchestrator
|
|
97
|
+
# STS Test Orchestrator Service Version
|
|
98
|
+
TO_SERVICE_VERSION=1.0.0
|
|
99
|
+
|
|
100
|
+
# Auth Server endpoint
|
|
101
|
+
AS_ENDPOINT=http://localhost
|
|
102
|
+
# Auth Server host port (listen port for the service)
|
|
103
|
+
AS_HOST_PORT=3002
|
|
104
|
+
# Auth Server port (client port to access the service)
|
|
105
|
+
AS_PORT=3002
|
|
106
|
+
# Auth Server endpoint
|
|
107
|
+
AS_APIROOT=/stsauth/v1
|
|
108
|
+
# Auth Server Prometheus metric support
|
|
109
|
+
AS_PROM_SUPPORT=true
|
|
110
|
+
# Auth Prometheus Cluster Server port (port used for cluster prometheus scrapes)
|
|
111
|
+
AS_PROM_CLUSTER_PORT=3012
|
|
112
|
+
# STSAuth Service Name
|
|
113
|
+
AS_SERVICE_NAME=STSAuth
|
|
114
|
+
# STSAuth Service Version
|
|
115
|
+
AS_SERVICE_VERSION=1.0.0
|
|
116
|
+
# Auth Server - JWKS Public End Point.
|
|
117
|
+
AS_JWKS_JSON_PATH=/.well-known/jwks.json
|
|
118
|
+
# Auth Server - JWKS key rotation time (seconds).
|
|
119
|
+
AS_JWKS_KEY_ROTATION_TIME=86400
|
|
120
|
+
# Auth Server - JWKS key purge time offset (seconds). Old keys (current keys are considered 'old' immediately after a key rotation) will be kept
|
|
121
|
+
# for asaccesstokenexpire + asjwkskeypurgetimeoffset seconds before purging from the JWKS.
|
|
122
|
+
AS_JWKS_KEY_PURGE_TIME_OFFSET=300
|
|
123
|
+
# Auth Server - JWKS key count. Defines the number of active keys within the JWKS. Note that the actual key count may be double this value as current
|
|
124
|
+
# keys are rotated to old keys prior to old key purge. Old keys will be kept for asaccesstokenexpire + asjwkskeypurgetimeoffset seconds before removal from the JWKS.
|
|
125
|
+
# This is to ensure that any tokens signed by a current key that is then expired can still be validated within the life of the issued token.
|
|
126
|
+
AS_JWKS_KEY_COUNT=4
|
|
127
|
+
# Auth Server - JWKS Access token timeout.
|
|
128
|
+
AS_ACCESS_TOKEN_EXPIRE=43200
|
|
129
|
+
# Auth Server - Private Key (when using JWT)
|
|
130
|
+
AS_PRIVATE_KEY_PATH=/var/lib/sts/stsglobalresources/keys/private.key
|
|
131
|
+
# Auth Server - Public Key (when using JWT)
|
|
132
|
+
AS_PUBLIC_KEY_PATH=/var/lib/sts/stsglobalresources/keys/public.key
|
|
133
|
+
|
|
134
|
+
# STS Test Runner Prometheus metric support
|
|
135
|
+
TR_PROM_SUPPORT=true
|
|
136
|
+
# STS Test Runner Cluster Server port (port used for cluster prometheus scrapes)
|
|
137
|
+
TR_PROM_CLUSTER_PORT=3015
|
|
138
|
+
# STS Test Runner Service Name
|
|
139
|
+
TR_SERVICE_NAME=STSRestRunner
|
|
140
|
+
# STS Test Runner Service Version
|
|
141
|
+
TR_SERVICE_VERSION=1.0.0
|
|
142
|
+
|
|
143
|
+
# Duration (in ms) between each publish event.
|
|
144
|
+
PUBLISH_INTERVAL=1000
|
|
145
|
+
|
|
146
|
+
# The maximum time (in ms) to wait before timeout error when publishing instruments. Ideally, this should always be lower than the publishinterval frequency
|
|
147
|
+
# to avoid cascading http build up errors.
|
|
148
|
+
PUBLISH_TIMEOUT=750
|
|
149
|
+
|
|
150
|
+
# If true, instrument publish failures will be logged to debug output.
|
|
151
|
+
PUBLISH_DEBUG=false
|
|
152
|
+
|
|
153
|
+
# Transport(s) to use for sending instrumentation data to the instrumentation server
|
|
154
|
+
TRANSPORT=RESTAPI
|
|
155
|
+
|
|
156
|
+
# Use secure cookies option when passing back cookies from STS services (such as STSAuth service).
|
|
157
|
+
# This setting will be ignore for production mode. In production mode services will always use secure cookies.
|
|
158
|
+
USE_SECURE_COOKIES=false
|
|
159
|
+
|
|
160
|
+
# keepAlive <boolean> Keep sockets around even when there are no outstanding requests, so they can be used for future requests without having to reestablish a
|
|
161
|
+
# TCP connection. Not to be confused with the keep-alive value of the Connection header. The Connection: keep-alive header is always sent when using an agent
|
|
162
|
+
# except when the Connection header is explicitly specified or when the keepAlive and maxSockets options are respectively set to false and Infinity, in which
|
|
163
|
+
# case Connection: close will be used. Default: false.
|
|
164
|
+
# Reference: https://nodejs.org/api/http.html#class-httpagent
|
|
165
|
+
KEEP_ALIVE=true
|
|
166
|
+
|
|
167
|
+
# maxSockets <number> Maximum number of sockets to allow per host. If the same host opens multiple concurrent connections, each request will use new socket until the
|
|
168
|
+
# maxSockets value is reached. If the host attempts to open more connections than maxSockets, the additional requests will enter into a pending request queue, and will
|
|
169
|
+
# enter active connection state when an existing connection terminates. This makes sure there are at most maxSockets active connections at any point in time,
|
|
170
|
+
# from a given host. Default: Infinity.
|
|
171
|
+
# Reference: https://nodejs.org/api/http.html#class-httpagent
|
|
172
|
+
MAX_SOCKETS=10
|
|
173
|
+
|
|
174
|
+
# maxTotalSockets <number> Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity.
|
|
175
|
+
# Reference: https://nodejs.org/api/http.html#class-httpagent
|
|
176
|
+
MAX_TOTAL_SOCKETS=20
|
|
177
|
+
|
|
178
|
+
# maxFreeSockets <number> Maximum number of sockets per host to leave open in a free state. Only relevant if keepAlive is set to true. Default: 256.
|
|
179
|
+
# Reference: https://nodejs.org/api/http.html#class-httpagent
|
|
180
|
+
MAX_FREE_SOCKETS=256
|
|
181
|
+
|
|
182
|
+
# timeout <number> Socket timeout in milliseconds. This will set the timeout when the socket is created.
|
|
183
|
+
# Reference: https://nodejs.org/api/http.html#class-httpagent
|
|
184
|
+
TIMEOUT=10000
|
|
185
|
+
|
|
186
|
+
# Maximum payload size allowed for express server calls
|
|
187
|
+
MAX_PAYLOAD_SIZE='50mb'
|
|
188
|
+
|
|
189
|
+
# Instrumentation Config Settings
|
|
190
|
+
# -------------------------------
|
|
191
|
+
# Generic interval (ms) to make on observation for instrumentation objects.
|
|
192
|
+
INSTRUMENTATION_OBSERVATION_INTERVAL=1000
|
|
193
|
+
|
|
194
|
+
# Generic sliding time window (seconds) for instrumentation objects that process telemetry over time (e.g. P(x) instruments).
|
|
195
|
+
INSTRUMENTATION_TIME_WINDOW=600
|
|
196
|
+
|
|
197
|
+
# Service Specific Config Settings
|
|
198
|
+
# --------------------------------
|
|
199
|
+
# STSAuth
|
|
200
|
+
# -------
|
|
201
|
+
# Define the valid age for a JWT access token (in ms). Default 10 minutes.
|
|
202
|
+
AUTH_JWT_ACCESS_TOKEN_TIMEOUT=600
|
|
203
|
+
|
|
204
|
+
# Define the valid age for a JWT refresh token (in ms). Default 24 hours.
|
|
205
|
+
AUTH_JWT_REFRESH_TOKEN_TIMEOUT=86400
|
|
206
|
+
|
|
207
|
+
# Define the valid age for an authentication/session cookie. Default 24 hours.
|
|
208
|
+
AUTH_COOKIE_TIMEOUT=86400
|
|
209
|
+
|
|
210
|
+
# STSAppFramework (library)
|
|
211
|
+
# -------------------------
|
|
212
|
+
# Define the time (ms) to wait prior to exiting the application (using process.exit(0))
|
|
213
|
+
MASTER_PROCESS_EXIT_TIME=500
|
|
214
|
+
|
|
215
|
+
# Define the time (ms) to wait prior to exiting the application (using process.exit(0))
|
|
216
|
+
CHILD_PROCESS_EXIT_TIME=500
|
|
217
|
+
|
|
218
|
+
# Define the interval (ms) to collect system information for instrumentation purposes
|
|
219
|
+
SYSTEM_INFORMATION_INTERVAL=1000
|
|
220
|
+
|
|
221
|
+
# Ignore socket.io REST api calls and/or WebSocket calls when collecting telemetry for instrumentation purposes.
|
|
222
|
+
IGNORE_SOCKETIO=true
|
package/.env-test-file-2
CHANGED
|
@@ -1,167 +1,121 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
DB_PASSWORD_FILE=/home/marcusbettens/projects/dbpassword
|
|
12
|
-
# Database host
|
|
13
|
-
DB_HOST=localhost
|
|
14
|
-
# Database port
|
|
15
|
-
DB_PORT=5432
|
|
16
|
-
# Database name
|
|
17
|
-
DB_DATABASE=testdb17
|
|
18
|
-
# Maximum pool size for database connections (per thread)
|
|
19
|
-
POOL_SIZE=200
|
|
20
|
-
# Database Script Folder
|
|
21
|
-
DB_SCRIPT_FOLDER=/var/lib/sts/stsglobalresources/db-scripts
|
|
22
|
-
# sudo mkdir /var/run/sts
|
|
23
|
-
# sudo chown marcusbettens /var/run/sts
|
|
24
|
-
#PORT=/var/run/sts/stsrest01.sock
|
|
1
|
+
NODE_ENV=production
|
|
2
|
+
CONSOLE_LOG_ERRORS=true
|
|
3
|
+
DB_USER=postgres-c
|
|
4
|
+
DB_PASSWORD=password-c
|
|
5
|
+
DB_PASSWORD_FILE=testpasswordfile
|
|
6
|
+
DB_HOST=localhost-c
|
|
7
|
+
DB_PORT=54320
|
|
8
|
+
DB_DATABASE=stsrestmsdb01-c
|
|
9
|
+
DATABASE_URL=-c
|
|
10
|
+
DB_SCRIPT_FOLDER=/var/lib/sts/stsglobalresources/db-scripts-c
|
|
25
11
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
POOL_SIZE=5000
|
|
13
|
+
MAX_CPU=-10
|
|
14
|
+
RESPAWN=true
|
|
15
|
+
DEFAULT_DB_ENTRIES=100000
|
|
16
|
+
USE_REDIS=true
|
|
17
|
+
USE_L1_REDIS=true
|
|
18
|
+
REDIS_END_FLUSH=true
|
|
19
|
+
REDIS_PORT=63790
|
|
20
|
+
REDIS_SERVER=localhost-c
|
|
21
|
+
K6SCRIPTPATH=.-c
|
|
22
|
+
DEFAULT_DATABASE_MIN_EXTRA_DATA_SIZE=1
|
|
23
|
+
DEFAULT_DATABASE_MAX_EXTRA_DATA_SIZE=20000
|
|
29
24
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
25
|
+
REST01_ENDPOINT=http://localhost-c
|
|
26
|
+
REST01_HOST_PORT=30030
|
|
27
|
+
REST01_PORT=30030
|
|
28
|
+
REST01_APIROOT=/stsrest01/v1-c
|
|
29
|
+
REST01_PROM_SUPPORT=false
|
|
30
|
+
REST01_PROM_CLUSTER_PORT=30130
|
|
31
|
+
REST01_SERVICE_NAME=STSRest01-c
|
|
32
|
+
REST01_SERVICE_VERSION=1.0.0-c
|
|
33
|
+
REST01_API_IDENTIFIER=xyz
|
|
34
|
+
REST01_API_IDENTIFIER_FILE=testapiidentifierFile
|
|
35
|
+
REST01_CLIENT_ID=xyz
|
|
36
|
+
REST01_CLIENT_ID_FILE=testclientidfile
|
|
37
|
+
REST01_CLIENT_SECRET=xyz
|
|
38
|
+
REST01_CLIENT_SECRET_FILE=testclientsecretfile
|
|
42
39
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
40
|
+
IM_ENDPOINT=http://localhost-c
|
|
41
|
+
IM_HOST_PORT=30010
|
|
42
|
+
IM_PORT=30010
|
|
43
|
+
IM_APIROOT=/stsinstrumentmanager/v1-c
|
|
44
|
+
IM_PROM_SUPPORT=false
|
|
45
|
+
IM_PROM_CLUSTER_PORT=30110
|
|
46
|
+
IM_SERVICE_NAME=STSInstrumentManager-c
|
|
47
|
+
IM_SERVICE_VERSION=1.0.0-c
|
|
48
|
+
IM_API_IDENTIFIER=xyz
|
|
49
|
+
IM_API_IDENTIFIER_FILE=testapiidentifierFile
|
|
50
|
+
IM_CLIENT_ID=xyz
|
|
51
|
+
IM_CLIENT_ID_FILE=testclientidfile
|
|
52
|
+
IM_CLIENT_SECRET=xyz
|
|
53
|
+
IM_CLIENT_SECRET_FILE=testclientsecretfile
|
|
55
54
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
55
|
+
TO_ENDPOINT=http://localhost-c
|
|
56
|
+
TO_HOST_PORT=30040
|
|
57
|
+
TO_PORT=30040
|
|
58
|
+
TO_APIROOT=/ststestorchestrator/v1-c
|
|
59
|
+
TO_PROM_SUPPORT=false
|
|
60
|
+
TO_PROM_CLUSTER_PORT=30140
|
|
61
|
+
TO_SERVICE_NAME=STSTestOrchestrator-c
|
|
62
|
+
TO_SERVICE_VERSION=1.0.0-c
|
|
63
|
+
TO_API_IDENTIFIER=xyz
|
|
64
|
+
TO_API_IDENTIFIER_FILE=testapiidentifierFile
|
|
65
|
+
TO_CLIENT_ID=xyz
|
|
66
|
+
TO_CLIENT_ID_FILE=testclientidfile
|
|
67
|
+
TO_CLIENT_SECRET=xyz
|
|
68
|
+
TO_CLIENT_SECRET_FILE=testclientsecretfile
|
|
68
69
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
70
|
+
AS_ENDPOINT=http://localhost-c
|
|
71
|
+
AS_HOST_PORT=30020
|
|
72
|
+
AS_PORT=30020
|
|
73
|
+
AS_APIROOT=/stsauth/v1-c
|
|
74
|
+
AS_API_IDENTIFIER=xyz
|
|
75
|
+
AS_API_IDENTIFIER_FILE=testapiidentifierFile
|
|
76
|
+
AS_PROM_SUPPORT=false
|
|
77
|
+
AS_PROM_CLUSTER_PORT=30120
|
|
78
|
+
AS_SERVICE_NAME=STSAuth-c
|
|
79
|
+
AS_SERVICE_VERSION=1.0.0-c
|
|
80
|
+
AS_CLIENT_ID=xyz
|
|
81
|
+
AS_CLIENT_ID_FILE=testclientidfile
|
|
82
|
+
AS_CLIENT_SECRET=xyz
|
|
83
|
+
AS_CLIENT_SECRET_FILE=testclientsecretfile
|
|
84
|
+
AS_JWKS_JSON_PATH=/.well-known/jwks.json-c
|
|
85
|
+
AS_JWKS_KEY_ROTATION_TIME=864000
|
|
86
|
+
AS_JWKS_KEY_PURGE_TIME_OFFSET=3000
|
|
87
|
+
AS_JWKS_KEY_COUNT=40
|
|
88
|
+
AS_ACCESS_TOKEN_EXPIRE=432000
|
|
89
|
+
AS_PRIVATE_KEY_PATH=/var/lib/sts/stsglobalresources/keys/private.key-c
|
|
90
|
+
AS_PUBLIC_KEY_PATH=/var/lib/sts/stsglobalresources/keys/public.key-c
|
|
81
91
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
92
|
+
TR_PROM_SUPPORT=false
|
|
93
|
+
TR_PROM_CLUSTER_PORT=30150
|
|
94
|
+
TR_SERVICE_NAME=STSRestRunner-c
|
|
95
|
+
TR_SERVICE_VERSION=1.0.0-c
|
|
96
|
+
TR_CLIENT_ID=xyz
|
|
97
|
+
TR_CLIENT_ID_FILE=testclientidfile
|
|
98
|
+
TR_CLIENT_SECRET=xyz
|
|
99
|
+
TR_CLIENT_SECRET_FILE=testclientsecretfile
|
|
90
100
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
# Use -1 to use all available within the runtime container. Each CPU will spawn a node work thread.
|
|
113
|
-
MAX_CPU=2
|
|
114
|
-
# Automatically re-spawn a worker thread if one dies.
|
|
115
|
-
RESPAWN=false
|
|
116
|
-
# Default number of entries to create for a fresh database
|
|
117
|
-
DEFAULT_DB_ENTRIES=10000
|
|
118
|
-
# Default flag to automatically copy from the source RESFK_ records to the working set RESCP_ records
|
|
119
|
-
# during initial fresh database creation.
|
|
120
|
-
DEFAULT_DB_POPULATE=true
|
|
121
|
-
# Default flag to automatically populate the redis cache (if enabled) with the current RESCP_ records
|
|
122
|
-
# as they are being created. Only valid when DEFAULT_DB_POPULATE = true AND USE_REDIS = true.
|
|
123
|
-
DEFAULT_REDIS_POPULATE=true
|
|
124
|
-
# Default number of entries K6 should test against.
|
|
125
|
-
DEFAULT_K6_ENTRIES=10000
|
|
126
|
-
# Default microservice end-point for K6 tests.
|
|
127
|
-
DEFAULT_K6_MS_HOST=localhost
|
|
128
|
-
# Default microservice port for K6 tests.
|
|
129
|
-
DEFAULT_K6_MS_PORT=3000
|
|
130
|
-
# Default ratio (%) that each test should be an update rather than just a read.
|
|
131
|
-
DEFAULT_K6_UPDATE_RATIO=2
|
|
132
|
-
# Default ratio (%) that for an update, this update will actually be a delete. Only valid when
|
|
133
|
-
# DEFAULT_K6_UPDATE_RATIO is > 0
|
|
134
|
-
DEFAULT_K6_DELETE_RATIO=0
|
|
135
|
-
# Default flag to always create a new record for each interation during K6 test runs. The new
|
|
136
|
-
# record will contain a UUID for the ID to ensure uniqueness.
|
|
137
|
-
DEFAULT_K6_ALWAYS_ADD=false
|
|
138
|
-
# Default number of virtual CPUs to use on each testing node.
|
|
139
|
-
DEFAULT_K6_VCPU=20
|
|
140
|
-
# Default duration each test node should run the K6 test.
|
|
141
|
-
DEFAULT_K6_DURATION=30s
|
|
142
|
-
# ==================================================================================================
|
|
143
|
-
# Production Settings
|
|
144
|
-
# ==================================================================================================
|
|
145
|
-
#PORT=3000
|
|
146
|
-
#NODE_ENV=production
|
|
147
|
-
#DATABASE_URL=postgresql://postgres:02740274@192.168.0.160:5432/testdb
|
|
148
|
-
#REDIS_SERVER=192.168.0.160
|
|
149
|
-
#REDIS_PORT=6379
|
|
150
|
-
#USE_REDIS=true
|
|
151
|
-
#REDIS_END_FLUSH=false
|
|
152
|
-
#CONSOLE_LOG_ERRORS=false
|
|
153
|
-
#
|
|
154
|
-
# Only use for self signed certificates, otherwise remove from .env file
|
|
155
|
-
#NODE_TLS_REJECT_UNAUTHORIZED=0
|
|
156
|
-
#
|
|
157
|
-
# To run PROD from command line
|
|
158
|
-
# PORT=3000 NODE_ENV=production DATABASE_URL='postgresql://postgres:02740274@192.168.0.27:5432/testdb' node app
|
|
159
|
-
#
|
|
160
|
-
# To run DEV from command line
|
|
161
|
-
# PORT=3000 NODE_ENV=debug DB_USER=postgres DB_PASSWORD=02740274 DB_HOST=192.168.0.27 DB_PORT=5432 DB_DATABASE=testdb node app
|
|
162
|
-
|
|
163
|
-
MONITOR = false
|
|
164
|
-
TRANSPORT = RESTAPI
|
|
165
|
-
|
|
166
|
-
#MONITOR = true
|
|
167
|
-
#TRANSPORT = RESTAPI
|
|
101
|
+
PUBLISH_INTERVAL=10000
|
|
102
|
+
PUBLISH_TIMEOUT=7500
|
|
103
|
+
PUBLISH_DEBUG=true
|
|
104
|
+
TRANSPORT=RESTAPI-c
|
|
105
|
+
USE_SECURE_COOKIES=true
|
|
106
|
+
KEEP_ALIVE=false
|
|
107
|
+
MAX_SOCKETS=100
|
|
108
|
+
MAX_TOTAL_SOCKETS=200
|
|
109
|
+
MAX_FREE_SOCKETS=2560
|
|
110
|
+
TIMEOUT=100000
|
|
111
|
+
MAX_PAYLOAD_SIZE=50mb-c
|
|
112
|
+
INSTRUMENTATION_OBSERVATION_INTERVAL=10000
|
|
113
|
+
INSTRUMENTATION_TIME_WINDOW=6000
|
|
114
|
+
AUTH_JWT_ACCESS_TOKEN_TIMEOUT=6000
|
|
115
|
+
AUTH_JWT_REFRESH_TOKEN_TIMEOUT=864000
|
|
116
|
+
AUTH_COOKIE_TIMEOUT=864000
|
|
117
|
+
MASTER_PROCESS_EXIT_TIME=5000
|
|
118
|
+
CHILD_PROCESS_EXIT_TIME=5000
|
|
119
|
+
SYSTEM_INFORMATION_INTERVAL=10000
|
|
120
|
+
IGNORE_SOCKETIO=false
|
|
121
|
+
MODEL_PURGE_UPDATE_TIMEOUT=50000
|
package/.github/dependabot.yml
CHANGED