-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddHttpConfig.xsl
33 lines (25 loc) · 1.07 KB
/
addHttpConfig.xsl
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
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ut="urn:jboss:domain:undertow:3.0"
xmlns:jd="urn:jboss:domain:4.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="//ut:subsystem/ut:server/ut:http-listener[@name='default']">
<ut:http-listener name="default" socket-binding="http" redirect-socket="proxy-https" proxy-address-forwarding="true"/>
</xsl:template>
<xsl:template match="//jd:server/jd:socket-binding-group[@name='standard-sockets']">
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:call-template name="copy-children"/>
<jd:socket-binding name="proxy-https" port="443"/>
</xsl:copy>
</xsl:template>
<xsl:template name="copy-children">
<xsl:copy-of select="./*"/>
</xsl:template>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>