keycloak-undertow.xml

48 lines | 2.014 kB Blame History Raw Download
<?xml version='1.0' encoding='UTF-8'?>
<!--
  ~ Copyright 2016 Red Hat, Inc. and/or its affiliates
  ~ and other contributors as indicated by the @author tags.
  ~
  ~ 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.
  -->
<config>
    <extension-module>org.wildfly.extension.undertow</extension-module>
    <subsystem xmlns="urn:jboss:domain:undertow:4.0">
        <buffer-cache name="default" />
        <server name="default-server">
            <?AJP?>
            <http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true" />
            <https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true" />
            <host name="default-host" alias="localhost">
                <location name="/" handler="welcome-content" />
                <http-invoker security-realm="ApplicationRealm"/>
            </host>
        </server>
        <servlet-container name="default">
            <jsp-config/>
            <websockets/>
        </servlet-container>
        <handlers>
            <file name="welcome-content" path="${jboss.home.dir}/welcome-content" />
        </handlers>
    </subsystem>
    <supplement name="ha">
        <replacement placeholder="AJP">
            <ajp-listener name="ajp" socket-binding="ajp" />
        </replacement>
    </supplement>
    <socket-binding name="http" port="${jboss.http.port:8080}"/>
    <socket-binding name="https" port="${jboss.https.port:8443}"/>
    <socket-binding name="ajp" port="${jboss.ajp.port:8009}"/>
</config>