Repository navigation
Expand file tree
/
Copy pathbricks.cnf
More file actions
235 lines (212 loc) · 9.38 KB
/
Copy pathbricks.cnf
File metadata and controls
235 lines (212 loc) · 9.38 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
# BRICKS config file
# copyright 2026 by moshix
dns_name=localhost
port=2300
tlsport=2023
tlscert=
tlskey=
#start_TLS=yes
enforce_secure_login=no
GMTEXT='DFHZC2312 Welcome to BRICKS"
#show welcoe to bricks?
show_welcome=yes
#secure_login_transaction=CSSN
start_transaction=HELP
start_web3270=yes
web3270_port=9000
max_conns_per_ip=16
#after how long doe exec web calls time out
web_client_timeout=4s
# internal web server port
webserver_port=8000
# how many most frequently used maps should be kept in memory
map_cache = 128
#EXEC CICS WEB related settings
enable_wapi=yes
wapi_port=8080
wapi_tls_port=8443
mro_name=term1
mro_port=9999
mro_token=123456789012345678901234
# ── Sandbox for sequential file I/O
# Directory used by REXX (LINEIN / LINEOUT / STREAM) and COBOL
# (EXEC CICS READQ TD / WRITEQ TD / DELETEQ TD) for sequential text
# files -- the staging area for imports into and exports out of the
# VSAM (bbolt) database. The tmp_dir is a hard sandbox:
# * files only, no subdirectories
# * names match [A-Za-z0-9._-]{1,255}, no leading dot, no '..'
# * payload must be ASCII (TAB / 0x20..0x7E) -- no EBCDIC, no UTF
# * lines terminate with a single LF; CR (0x0D) is rejected on write
# A program that tries to escape (../etc/passwd, subdir/x, etc.)
# gets INVREQ in COBOL or ERROR from REXX STREAM and no I/O runs.
# Default when the line is omitted: runtime/tmp under runtime_dir.
tmp_dir=runtime/tmp
# ── COBOL copybooks
# Directory bricks searches for copybooks named by the COBOL
# `COPY name.` directive. Names are flat (no slashes, no `..`).
# The standard CICS copybooks ship under this directory:
# DFHAID 3270 AID byte mnemonics. Compare EIBAID against names
# like PF03, ENTER, CLEAR, PA1 instead of raw hex.
# Each constant is also delivered under its
# IBM-traditional alias (DFHPF3, DFHENTER, ...) so code
# ported from real CICS keeps compiling.
# DFHRESP EIBRESP condition codes (RESP-NORMAL = 0,
# RESP-NOTFND = 13, etc., with DFHRESP-X aliases).
# Default when omitted: runtime/cobolcopy under runtime_dir.
copybook_dir=runtime/cobolcopy
# ── Metrics endpoint
# /metrics serves a JSON snapshot of session / transaction / file /
# CICS-verb counters. Consumed by cmd/bricksload's live dashboard
# and by any external scrape integration.
#
# Pairing rule: when start_metrics=yes is set explicitly, a paired
# metrics_port=N line MUST also be present — bricks refuses to
# start otherwise so the operator owns the port choice instead of
# silently inheriting 9100 (which may collide with other local
# services). start_metrics=no disables the listener entirely (no
# log line, no port bound).
#
start_metrics=yes
metrics_port=9100
# ── Filesystem layout ────────────────────────────────────────────
# Each path below is independently overridable. Defaults shown in
# comments are what bricks uses when the line is missing.
#
# users_file: runtime/users.conf (CSSN authentication table)
# transactions_file: runtime/transactions.conf
# data_dir: data (bbolt files + TS queues)
#
# Programs and maps live under runtime/ by default. Set runtime_dir
# once to relocate the whole tree, and bricks derives map/, rexx/,
# cobol/ from it; or override any of the three independently.
#
runtime_dir=runtime/
maps_dir=runtime/map
rexx_dir=runtime/rexx
cobol_dir=runtime/cobol
data_dir=data
users_file=runtime/users.conf
transactions_file=runtime/transactions.conf
# ── VSAM record cache ────────────────────────────────────────────
# Byte-bounded read cache in front of the bbolt file store. A keyed
# READ FILE for a cached record is served from memory; every WRITE /
# REWRITE / DELETE (and SYNCPOINT rollback) invalidates the affected
# record so the cache stays coherent. When the budget fills, the
# least-recently-read records are evicted.
#
# Default when the line is omitted: 16 MB.
# Valid range: 4..4096 MB (4 MB floor, 4 GB cap).
# Out-of-range values are rejected at startup.
#
# Live rates, latency, and hit ratio: CEMT MONITOR -> PF11 (VSAM).
record_cache=16
# ── Program cache
# LRU pool for parsed REXX/COBOL programs, allocated once at startup
# as a contiguous byte slab. Because the slab is a single
# pointer-free []byte, Go's garbage collector scans the slab header
# in O(1) and never visits the program bytes inside. When the pool
# fills, the least-recently-used entries are evicted to make room.
#
# Default when the line is omitted: 4 MB.
# Valid range: 1..16384 MB (1 MB floor, 16 GB cap).
# Out-of-range values are rejected at startup.
#
program_cache=32
# ── Time synchronisation
# ASSIGN DATE/TIME all consult this corrected clock.
#
# On startup, bricks does ONE synchronous NTP query and prints
# either "ntp: initial sync ok skew=±N.NNms server=X" or
# "ntp: initial sync failed (X): ... -- continuing with host clock"
# The background goroutine then waits a full interval before its
# first poll, so booting never queries the server twice.
#
# Default when omitted: time.google.com (Google's smear-aware
# public NTP service; handles leap seconds gracefully).
# Disable NTP entirely with any of: off, no, false, 0, or a bare
# "ntp_server=" with nothing after the '='. Enable it with the
# default server using any of: on, yes, true, 1.
#
# IMPORTANT: NTP failures are NEVER fatal. The runtime keeps
# serving transactions even if the server is unreachable, returns
# garbage, or DNS fails. Each failure logs one console line and
# the goroutine retries on the next 12-hour tick.
#
ntp_server=time.google.com
time_zone=Z
# ── Logging
# Directory where bricks writes per-run log files. On startup a new
# file named YYYY-MM-DD_HH-MM-SS.log is created here; every line
# emitted to the framed console is ALSO appended to the file (with
# ANSI color codes stripped, since editors / pagers don't render
# them).
#
# Each line carries a 4-character subsystem tag so the log file
# tabulates at column 6 regardless of which subsystem produced it:
#
# LOAD program loader / parser / cache (REXX / COBOL / MAP)
# EXEC transaction dispatch + REXX/COBOL runtime
# CICS EXEC CICS verb handlers (FILE, TS / TD queues, MAP, etc.)
# AUTH sign-on / sign-off / per-transaction ACL checks
# NET 3270 / TLS / WebSocket / TCP listeners
# SYS everything else (config, startup, NTP, signals, console)
# AUDT resource-mutation audit trail (CEDA DEFINE / ALTER /
# DELETE on USER and TRANSACTION). Goes only to the log
# file -- audit records are persistent compliance
# artefacts, not live operator-console events. When
# log_location=off the line falls back to the console
# so the trail isn't silently lost.
#
# Default when omitted: "log" (under the directory bricks was
# started in). Set to "off" to disable file logging entirely (the
# console keeps working in either case).
#
log_location=log
# log_location=/var/log/bricks
# log_location=off
# ── SQL support (Phase 1: connectivity + CEDA viewer)
# bricks can talk to a Postgres database for the EXEC SQL surface
# that future phases will add to COBOL and REXX programs. Phase 1
# only opens the connection and exposes it through the CEDA
# DATABASE screen -- programs cannot run EXEC SQL yet.
#
# When no `db_*` lines are configured (the default below, all
# commented out), bricks runs SQL-less: non-SQL transactions are
# unaffected, and CEDA DATABASE reports "(SQL not configured)".
# When db_host is set, bricks pings the database at startup; a
# failed ping is non-fatal -- one log line plus an OFFLINE state
# in CEDA -- and the operator can recover with the R (retest)
# action in CEDA DATABASE without restarting.
#
# Default ports / sslmode / pool size mirror standard Postgres
# expectations and the pgx driver's recommendations.
#
db_host=localhost
db_port=123456789
db_user=bricks
db_password=brickspassword
db_sslmode=disable
db_max_conns=8
db_stmt_timeout=4
# The actual list of databases bricks talks to lives in
# `databases.conf` (one per line, optional description after `:`).
# CEDA DATABASE manages this catalogue with A/D/U row actions, the
# same way CEDA USER and CEDA TRANSACTION manage their files. The
# first row of databases.conf is the DEFAULT database -- transactions.conf
# rows without a 5th field bind to it.
databases_file=runtime/databases.conf
# Military time zone for EIBTIME / EIBDATE / FORMATTIME's TIME and
# DATE outputs, and the ASSIGN DATE / TIME / TODAYYR / TODAYMO /
# TODAYDY values. ABSTIME stays UTC milliseconds since 1900-01-01
# regardless. Single uppercase letter:
#
# Z = UTC (default)
# A = UTC+1 B = UTC+2 C = UTC+3 ... M = UTC+12
# N = UTC-1 O = UTC-2 P = UTC-3 ... Y = UTC-12
#
# Examples: New York winter = R (UTC-5); London winter = Z;
# Frankfurt winter = A (UTC+1); Tokyo = I (UTC+9); Sydney = K
# (UTC+10). Half-hour zones (India UTC+5:30, Adelaide UTC+9:30)
# have no military letter -- pick the nearest and adjust inside
# the REXX/COBOL program if precision matters.
#