-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathdefaults.yaml
225 lines (225 loc) · 12.6 KB
/
defaults.yaml
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
zowe:
workspaceDirectory: ${{ process.env.HOME + '/.zowe/workspace' }}
externalDomains: ${{ function a() { if (process.env.ZWE_zowe_externalDomains) { return process.env.ZWE_zowe_externalDomains.split(','); } else { return [ os.hostname() ] } }; a() }}
environments:
ZWED_SSH_PORT: 22
ZWED_TN3270_PORT: 23
ZWED_TN3270_SECURITY: telnet
ZWED_SSH_HOST: ${{ zowe.externalDomains[0] }}
ZWED_TN3270_HOST: ${{ zowe.externalDomains[0] }}
ZWED_TN3270_ROW: 24
ZWED_TN3270_COL: 80
#5=Dynamic
ZWED_TN3270_MOD: "5"
#
# ZWED_TN3270_CODEPAGE:
components:
app-server:
debug: false
node:
hostname: "${{ function a(){ if (process.env.ZWE_INTERNAL_HOST) { return process.env.ZWE_INTERNAL_HOST; } else if (process.env.ZWE_haInstance_hostname) { return process.env.ZWE_haInstance_hostname; } else { return undefined; } }; a() }}"
http: "${{ function a() {
if (components['app-server'].zowe?.network?.server?.tls?.attls === true) {
return { 'port': components['app-server'].port || Number(7556)};
} else if (zowe.network?.server?.tls?.attls === true) {
return { 'port': components['app-server'].port || Number(7556)};
} else {
return undefined;
} };
a() }}"
https:
ipAddresses: "${{ function a(){
let addresses;
if (components['app-server'].zowe?.network?.server?.listenAddresses) {
addresses = components['app-server'].zowe.network.server.listenAddresses;
} else if (zowe.network?.server?.listenAddresses) {
addresses = zowe.network.server.listenAddresses;
} else {
addresses = ['0.0.0.0'];
}
if (process.env.ZOWE_LOOPBACK_ADDRESS && process.env.BIND_TO_LOOPBACK == 'true') {
return [ process.env.ZOWE_LOOPBACK_ADDRESS ].concat(addresses);
} else { return addresses } };
a() }}"
port: "${{ function a(){
if (components['app-server'].zowe?.network?.server?.tls?.attls === true) {
return undefined;
} else if (zowe?.network?.server?.tls?.attls === true) {
return undefined;
} else if (process.env.ZWED_SERVER_HTTPS_PORT) {
return Number(process.env.ZWED_SERVER_HTTPS_PORT);
} else if (components['app-server'].port) {
return components['app-server'].port;
} else { return Number(7556); } };
a() }}"
keys: '${{ function a() {
if (zowe.certificate?.keystore?.type && zowe.certificate.keystore.type.match("JCE.*KS")) {
return [ zowe.certificate.keystore.file+"&"+zowe.certificate.keystore.alias ];
} else if (zowe.certificate?.pem?.key) {
return [ zowe.certificate.pem.key ];
} else {
return [ "../defaults/serverConfig/zlux.keystore.key" ]; } };
a() }}'
certificates: '${{ function a(){
if (zowe.certificate?.keystore?.type && zowe.certificate.keystore.type.match("JCE.*KS")) {
return [ zowe.certificate.keystore.file+"&"+zowe.certificate.keystore.alias ];
} else if (zowe.certificate?.pem?.certificate) {
return [ zowe.certificate.pem.certificate ];
} else {
return [ "../defaults/serverConfig/zlux.keystore.cer" ]; } };
a() }}'
certificateAuthorities: '${{ function a() {
if (zowe.certificate?.truststore?.type && zowe.certificate.truststore.type.match("JCE.*KS")) {
return [ zowe.certificate.truststore.file ];
} else if(zowe.certificate?.pem?.certificateAuthorities) {
if (Array.isArray(zowe.certificate.pem.certificateAuthorities)) {
return zowe.certificate.pem.certificateAuthorities;
} else {
return zowe.certificate.pem.certificateAuthorities.split(",");
}
} else { return ["../defaults/serverConfig/apiml-localca.cer"]; } };
a() }}'
maxTls: '${{ function a(){
if (components["app-server"].zowe?.network?.server?.tls?.maxTls) {
return components["app-server"].zowe.network.server.tls.maxTls;
} else if (zowe.network?.server?.tls?.maxTls) {
return zowe.network.server.tls.maxTls;
} else {
return "TLSv1.3"; } };
a() }}'
minTls: '${{ function a(){
if (components["app-server"].zowe?.network?.server?.tls?.minTls) {
return components["app-server"].zowe.network.server.tls.minTls;
} else if (zowe.network?.server?.tls?.minTls) {
return zowe.network.server.tls.minTls;
} else {
return "TLSv1.2"; } };
a() }}'
ciphers: '${{ function a(){
if (components["app-server"].zowe?.network?.server?.tls?.ciphers) {
return components["app-server"].zowe.network.server.tls.ciphers.join(":");
} else if (zowe.network?.server?.tls?.ciphers) {
return zowe.network.server.tls.ciphers.join(":");
} else {
return "" } };
a() }}'
curves: '${{ function a(){
if (components["app-server"].zowe?.network?.server?.tls?.curves) {
return components["app-server"].zowe.network.server.tls.curves;
} else if (zowe.network?.server?.tls?.curves) {
return zowe.network.server.tls.curves;
} else {
return [] } };
a() }}'
loopbackAddress: "${{ function a(){ if (process.env.ZOWE_LOOPBACK_ADDRESS) { return process.env.ZOWE_LOOPBACK_ADDRESS; } else { return undefined; } }; a() }}"
mediationLayer:
server:
# strange but true: to contact discovery in a container, instead reach for the gateway hostname.
# DEPRECATED. Use discoveryUrls instead.
hostname: '${{ function a() {
if (process.env.ZWE_RUN_IN_CONTAINER=="true" && process.env.ZWE_GATEWAY_HOST) {
return process.env.ZWE_GATEWAY_HOST;
} else {
return zowe.externalDomains[0] } };
a() }}'
discoveryUrls: '${{ function a() {
if (process.env.ZWE_DISCOVERY_SERVICES_LIST) {
return process.env.ZWE_DISCOVERY_SERVICES_LIST.split(",");
} else {
return ["https://"+zowe.externalDomains[0]+":"+components.discovery.port+"/eureka/"] } };
a() }}'
# usually, externalDomains is where gateway is. But on containers, this isnt accessible to containers, so
# HACK: special var ZWE_GATEWAY_HOST is used instead
gatewayHostname: '${{ function a() {
if (process.env.ZWE_RUN_IN_CONTAINER=="true" && process.env.ZWE_GATEWAY_HOST) {
return process.env.ZWE_GATEWAY_HOST;
} else {
return zowe.externalDomains[0] } };
a() }}'
# DEPRECATED. Use discoveryUrls instead.
port: ${{ components.discovery.port }}
# strange but true: to contact gateway in a container, dont use the external port.
gatewayPort: '${{ function a() {
if (process.env.ZWE_RUN_IN_CONTAINER=="true") {
return components.gateway.port;
} else {
return zowe.externalPort } };
a() }}'
isHttps: true
cachingService:
enabled: ${{ components['app-server'].node.mediationLayer.enabled && components['caching-service'].enabled }}
enabled: ${{ components.gateway.enabled && components.discovery.enabled }}
headers:
X-frame-Options:
override: true
value: sameorigin
allowInvalidTLSProxy: ${{ zowe.verifyCertificates == 'DISABLED' }}
noChild: false
noPrompt: false
productCode: "ZLUX"
rootRedirectURL: '/ZLUX/plugins/org.zowe.zlux.bootstrap/web/'
pluginScanIntervalSec: "${{ os.platform == 'zos' ? undefined : 60 }}"
readBodyLimit: 102400
checkReferrer:
enabled: "${{ process.env.ZWE_CHECK_REFERRER ? process.env.ZWE_CHECK_REFERRER : false }}"
hosts: "${{ process.env.ZWE_REFERRER_HOSTS ? process.env.ZWE_REFERRER_HOSTS.toLowerCase().split(',') : process.env.ZWE_REFERER_HOSTS ? process.env.ZWE_REFERER_HOSTS.toLowerCase().split(',') : [] }}"
# All paths relative to zlux-app-server/bin
# In real installations, these values will be configured during the install.
productDir: ${{ function a(){ if (zowe.runtimeDirectory) { return zowe.runtimeDirectory+'/components/app-server/share/zlux-app-server/defaults'; } else { return '../defaults'; } }; a() }}
instanceDir: ${{ zowe.workspaceDirectory }}/app-server
siteDir: ${{ components['app-server'].instanceDir }}/site
groupsDir: ${{ components['app-server'].instanceDir }}/groups
usersDir: ${{ components['app-server'].instanceDir }}/users
pluginsDir: ${{ components['app-server'].instanceDir }}/plugins
dataserviceAuthentication:
# this specifies the default authentication type for dataservices that didn't specify which type to use. These dataservices therefore should not expect a particular type of authentication to be used.
defaultAuthentication: "${{ function a(){ if ((components.zss?.enabled == true) || (components.gateway?.enabled == true)) { return 'saf'; } else { return 'fallback'; } }; a() }}"
rbac: false
instanceID: ${{ zowe.rbacProfileIdentifier }}
cookieIdentifier: ${{ zowe.cookieIdentifier }}
# Specifies the default language for the server framework logging
logLanguage: en
logLevels:
_zsf.*: "${{ components['app-server'].debug === true ? 5 : 2 }}"
agent: ${{ components.zss.agent }}
zss:
# section used to define a connection to a server that can handle native or high privilege commands that the app server cannot
agent:
http: "${{ function a(){ if (components.zss.tls == false && components.zss.port) { return { port: components.zss.port }; } else { return undefined; } }; a() }}"
https: "${{ function a(){ if (components.zss.tls != false && components.zss.port) { return { port: components.zss.port }; } else { return undefined; } }; a() }}"
host: "${{ function a(){ if (components.zss.tls != false && process.env.ZWE_haInstance_hostname) { return process.env.ZWE_haInstance_hostname; } }; a() }}"
mediationLayer:
enabled: "${{ components['app-server'].node.mediationLayer.enabled }}"
serviceName: "zss"
rootServices:
- url: '/login'
method: '*'
requiresAuth: false
- url: '/logout'
method: '*'
requiresAuth: false
- url: '/unixfile'
method: '*'
- url: '/datasetContents'
method: '*'
- url: '/jes'
method: '*'
- url: '/VSAMdatasetContents'
method: '*'
- url: '/datasetMetadata'
method: '*'
- url: '/datasetCopy'
method: '*'
- url: '/omvs'
method: '*'
- url: '/ras'
method: '*'
- url: '/security-mgmt'
method: '*'
- url: '/saf-auth'
method: '*'
- url: '/password'
method: '*'
requiresAuth: false
- url: '/user-info'
method: '*'