forked from IBMStockTrader/notification-slack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.xml
83 lines (68 loc) · 3.42 KB
/
server.xml
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
<!--
Copyright 2017-2020 IBM Corp All Rights Reserved
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<server description="Notification server">
<featureManager>
<feature>microProfile-3.3</feature>
<feature>monitor-1.0</feature>
<feature>appSecurity-2.0</feature>
<!-- <feature>ldapRegistry-3.0</feature>. -->
<!-- <feature>logstashCollector-1.0</feature> -->
</featureManager>
<logging traceSpecification="*=info" consoleLogLevel="INFO" />
<httpEndpoint httpPort="9080" httpsPort="9443" host="*" id="defaultHttpEndpoint"/>
<keyStore id="defaultKeyStore" password="St0ckTr@der" type="pkcs12"
location="${server.config.dir}/resources/security/key.p12" />
<keyStore id="defaultTrustStore" password="St0ckTr@der" type="pkcs12"
location="${server.config.dir}/resources/security/trust.p12" />
<ssl id="defaultSSLConfig" keyStoreRef="defaultKeyStore" trustStoreRef="defaultTrustStore" trustDefaultCerts="true" />
<mpJwt id="myMpJwt" audiences="${env.JWT_AUDIENCE}" issuer="${env.JWT_ISSUER}" keyName="default" ignoreApplicationAuthMethod="false" />
<mpMetrics authentication="false" />
<!--
<logstashCollector source="message,trace,ffdc,accessLog" hostName="logstash" port="5044"/>
-->
<!--
<basicRegistry id="basic" realm="BasicRegistry">
<user name="admin" password="admin"/>
<user name="stock" password="trader"/>
<user name="debug" password="debug"/>
<user name="read" password="only"/>
<user name="other" password="other"/>
<group name="StockTrader">
<member name="stock"/>
<member name="debug"/>
</group>
<group name="StockViewer">
<member name="read"/>
</group>
</basicRegistry>
<administrator-role>
<user>admin</user>
</administrator-role>
-->
<!-- Define an LDAP configuration for BluePages.
<ldapRegistry ldapType="IBM Tivoli Directory Server" host="bluepages.ibm.com" port="389" baseDN="o=ibm.com" realm="BluePages">
<idsFilters userFilter="(&(emailAddress=%v)(objectclass=person))"
groupFilter="(&(cn=%v)(|(objectclass=groupOfNames)(objectclass=groupOfUniqueNames)(objectclass=groupOfURLs)))"/>
</ldapRegistry>
<ltpa expiration="1h"/> -->
<webAppSecurity allowFailOverToBasicAuth="true" displayAuthenticationRealm="true" logoutOnHttpSessionExpire="true"
webAlwaysLogin="true" preserveFullyQualifiedReferrerUrl="true" trackLoggedOutSSOCookies="true" ssoCookieName="StockTraderSSO"
useOnlyCustomCookieName="true" ssoUseDomainFromURL="true" />
<webApplication id="NotificationSlack" name="NotificationSlack" location="NotificationSlack.war" contextRoot="/notification">
<application-bnd>
<security-role id="StockTrader" name="StockTrader">
<special-subject type="ALL_AUTHENTICATED_USERS" id="mpJwt" />
</security-role>
</application-bnd>
</webApplication>
</server>