KEYCLOAK-319 Use keycloak-ds.xml just in WAR distribution
This commit is contained in:
parent
240dcaa30e
commit
9c5cd352cc
3 changed files with 26 additions and 6 deletions
|
@ -34,6 +34,9 @@
|
|||
<fileSet>
|
||||
<directory>${project.build.directory}/unpacked/deployments</directory>
|
||||
<outputDirectory>keycloak/standalone/deployments</outputDirectory>
|
||||
<excludes>
|
||||
<exclude>keycloak-ds.xml</exclude>
|
||||
</excludes>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>${project.build.directory}/unpacked/themes</directory>
|
||||
|
|
|
@ -16,6 +16,21 @@
|
|||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="node()[name(.)='datasources']">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node()[name(.)='datasource']"/>
|
||||
<datasource jndi-name="java:jboss/datasources/KeycloakDS" pool-name="KeycloakDS" enabled="true" use-java-context="true">
|
||||
<connection-url>jdbc:h2:${jboss.server.data.dir}/keycloak;AUTO_SERVER=TRUE</connection-url>
|
||||
<driver>h2</driver>
|
||||
<security>
|
||||
<user-name>sa</user-name>
|
||||
<password>sa</password>
|
||||
</security>
|
||||
</datasource>
|
||||
<xsl:apply-templates select="node()[name(.)='drivers']"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="node()[name(.)='profile']">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node()|@*"/>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
</itemizedlist>
|
||||
|
||||
</para>
|
||||
<section>
|
||||
<section id="Appliance_install">
|
||||
<title>Appliance Install</title>
|
||||
<para>
|
||||
The
|
||||
|
@ -38,7 +38,6 @@ keycloak-appliance-dist-all-1.0-alpha-1/
|
|||
standalone.bat
|
||||
standalone/deployments/
|
||||
auth-server.war/
|
||||
keycloak-ds.xml
|
||||
|
||||
adapters/
|
||||
keycloak-as7-adapter-dist-1.0-alpha-1.zip
|
||||
|
@ -63,7 +62,7 @@ keycloak-appliance-dist-all-1.0-alpha-1/
|
|||
enter in a new password.
|
||||
</para>
|
||||
</section>
|
||||
<section>
|
||||
<section id="WAR_distribution_installation">
|
||||
<title>WAR Distribution Installation</title>
|
||||
<para>
|
||||
The
|
||||
|
@ -136,9 +135,12 @@ keycloak-war-dist-all-1.0-alpha-1/
|
|||
<title>Database Configuration</title>
|
||||
<para>
|
||||
The datasource used to store Keycloak data is configured in the <literal>.../standalone/deployments/keycloak-ds.xml</literal>
|
||||
file of your Keycloak Server installation. A good thing to delete this file and move its configuration text into the
|
||||
centrally managed <literal>.../standalone/configuration/standalone.xml</literal> file. This will allow
|
||||
you to manage the database connection pool from the Wildfly/JBoss adminstration console. Here's what
|
||||
file of your Keycloak Server installation if you used <xref linkend="WAR_distribution_installation" /> or in <literal>.../standalone/configuration/standalone.xml</literal>
|
||||
if you used <xref linkend="Appliance_install" />. File <literal>keycloak-ds.xml</literal> is used in WAR
|
||||
distribution, so that you have datasource available out of the box and you don't need to edit <literal>standalone.xml</literal> file.
|
||||
However a good thing is to always delete the file <literal>keycloak-ds.xml</literal> and move its configuration text
|
||||
into the centrally managed <literal>standalone.xml</literal> file.
|
||||
This will allow you to manage the database connection pool from the Wildfly/JBoss administration console. Here's what
|
||||
<literal>.../standalone/configuration/standalone.xml</literal> should look like after you've done this:
|
||||
</para>
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue