Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
HAWKULAR-784 - Enable compression for serving the Hawkular UI from Un…
Browse files Browse the repository at this point in the history
…dertow
  • Loading branch information
jmazzitelli committed Feb 1, 2016
1 parent d579b17 commit 70ade56
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dist/src/main/resources/standalone.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,21 @@
<xsl:call-template name="loggers"/>
</xsl:template>

<!-- Enable gzip compression when serving javascript and ccs -->
<xsl:template match="undertow:subsystem/undertow:server/undertow:host">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
<filter-ref name="gzipFilter" predicate="path-suffix['.css'] or path-suffix['.js']"/>
</xsl:copy>
</xsl:template>

<xsl:template match="undertow:subsystem/undertow:filters">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
<gzip name="gzipFilter" />
</xsl:copy>
</xsl:template>

<!-- Enable Statistics for Undertow, TXs and Datasources -->
<xsl:template match="undertow:subsystem">
<xsl:copy>
Expand Down

0 comments on commit 70ade56

Please sign in to comment.