From ca8220960ad65642408d84d327e395fcd8c3684a Mon Sep 17 00:00:00 2001 From: 0qln <0qln@proton.me> Date: Fri, 8 May 2026 04:09:24 +0200 Subject: [PATCH] include wildfly configuration in the repo --- .gitignore | 5 + .../application-roles.properties | 24 + .../application-users.properties | 26 + .../configuration/logging.properties | 49 ++ .../configuration/mgmt-groups.properties | 22 + .../configuration/mgmt-users.properties | 27 + .../configuration/standalone-full-ha.xml | 659 ++++++++++++++++++ .../configuration/standalone-full.xml | 582 ++++++++++++++++ .wildfly-base/configuration/standalone-ha.xml | 608 ++++++++++++++++ .../standalone-load-balancer.xml | 239 +++++++ .../standalone-microprofile-ha.xml | 467 +++++++++++++ .../configuration/standalone-microprofile.xml | 418 +++++++++++ .wildfly-base/configuration/standalone.xml | 528 ++++++++++++++ flake.lock | 6 +- flake.nix | 2 +- 15 files changed, 3658 insertions(+), 4 deletions(-) create mode 100644 .wildfly-base/configuration/application-roles.properties create mode 100644 .wildfly-base/configuration/application-users.properties create mode 100644 .wildfly-base/configuration/logging.properties create mode 100644 .wildfly-base/configuration/mgmt-groups.properties create mode 100644 .wildfly-base/configuration/mgmt-users.properties create mode 100644 .wildfly-base/configuration/standalone-full-ha.xml create mode 100644 .wildfly-base/configuration/standalone-full.xml create mode 100644 .wildfly-base/configuration/standalone-ha.xml create mode 100644 .wildfly-base/configuration/standalone-load-balancer.xml create mode 100644 .wildfly-base/configuration/standalone-microprofile-ha.xml create mode 100644 .wildfly-base/configuration/standalone-microprofile.xml create mode 100644 .wildfly-base/configuration/standalone.xml diff --git a/.gitignore b/.gitignore index 3001ed3..769893d 100644 --- a/.gitignore +++ b/.gitignore @@ -50,3 +50,8 @@ result ### Java LSP ### .jdtls + +### Wildfly ### +.wildfly-base/* +!.wildfly-base/configuration/ +.wildfly-base/configuration/standalone_xml_history diff --git a/.wildfly-base/configuration/application-roles.properties b/.wildfly-base/configuration/application-roles.properties new file mode 100644 index 0000000..8cbf624 --- /dev/null +++ b/.wildfly-base/configuration/application-roles.properties @@ -0,0 +1,24 @@ +# +# Properties declaration of users roles for the realm 'ApplicationRealm' which is the default realm +# for application services on a new installation. +# +# This includes the following protocols: remote ejb, remote jndi, web, remote jms +# +# Users can be added to this properties file at any time, updates after the server has started +# will be automatically detected. +# +# The format of this file is as follows: - +# username=role1,role2,role3 +# +# A utility script is provided which can be executed from the bin folder to add the users: - +# - Linux +# bin/add-user.sh +# +# - Windows +# bin\add-user.bat +# +# The following illustrates how an admin user could be defined. +# +#admin=PowerUser,BillingAdmin, +#guest=guest +guest=guest diff --git a/.wildfly-base/configuration/application-users.properties b/.wildfly-base/configuration/application-users.properties new file mode 100644 index 0000000..ed4c18f --- /dev/null +++ b/.wildfly-base/configuration/application-users.properties @@ -0,0 +1,26 @@ +# +# Properties declaration of users for the realm 'ApplicationRealm' which is the default realm +# for application services on a new installation. +# +# This includes the following protocols: remote ejb, remote jndi, web, remote jms +# +# Users can be added to this properties file at any time, updates after the server has started +# will be automatically detected. +# +# The format of this realm is as follows: - +# username=HEX( MD5( username ':' realm ':' password)) +# +# A utility script is provided which can be executed from the bin folder to add the users: - +# - Linux +# bin/add-user.sh +# +# - Windows +# bin\add-user.bat +# +#$REALM_NAME=ApplicationRealm$ This line is used by the add-user utility to identify the realm name already used in this file. +# +# The following illustrates how an admin user could be defined, this +# is for illustration only and does not correspond to a usable password. +# +#admin=2a0923285184943425d1f53ddd58ec7a +guest=b5d048a237bfd2874b6928e1f37ee15e diff --git a/.wildfly-base/configuration/logging.properties b/.wildfly-base/configuration/logging.properties new file mode 100644 index 0000000..8d2f314 --- /dev/null +++ b/.wildfly-base/configuration/logging.properties @@ -0,0 +1,49 @@ +# Note this file has been generated and will be overwritten if a +# logging subsystem has been defined in the XML configuration. + + +# Additional loggers to configure (the root logger is always configured) +loggers=sun.rmi,com.networknt.schema,io.jaegertracing.Configuration,org.jboss.as.config,com.arjuna + +logger.level=INFO +logger.handlers=FILE,CONSOLE + +logger.sun.rmi.level=WARN +logger.sun.rmi.useParentHandlers=true + +logger.com.networknt.schema.level=WARN +logger.com.networknt.schema.useParentHandlers=true + +logger.io.jaegertracing.Configuration.level=WARN +logger.io.jaegertracing.Configuration.useParentHandlers=true + +logger.org.jboss.as.config.level=DEBUG +logger.org.jboss.as.config.useParentHandlers=true + +logger.com.arjuna.level=WARN +logger.com.arjuna.useParentHandlers=true + +handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler +handler.CONSOLE.level=INFO +handler.CONSOLE.formatter=COLOR-PATTERN +handler.CONSOLE.properties=autoFlush,target +handler.CONSOLE.autoFlush=true +handler.CONSOLE.target=SYSTEM_OUT + +handler.FILE=org.jboss.logmanager.handlers.PeriodicRotatingFileHandler +handler.FILE.level=ALL +handler.FILE.formatter=PATTERN +handler.FILE.properties=autoFlush,append,fileName,suffix +handler.FILE.constructorProperties=fileName,append +handler.FILE.autoFlush=true +handler.FILE.append=true +handler.FILE.fileName=/home/oq/repos/itc.componentware/.wildfly-base/log/server.log +handler.FILE.suffix=.yyyy-MM-dd + +formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter +formatter.PATTERN.properties=pattern +formatter.PATTERN.pattern=%d{yyyy-MM-dd HH\:mm\:ss,SSS} %-5p [%c] (%t) %s%e%n + +formatter.COLOR-PATTERN=org.jboss.logmanager.formatters.PatternFormatter +formatter.COLOR-PATTERN.properties=pattern +formatter.COLOR-PATTERN.pattern=%K{level}%d{HH\:mm\:ss,SSS} %-5p [%c] (%t) %s%e%n diff --git a/.wildfly-base/configuration/mgmt-groups.properties b/.wildfly-base/configuration/mgmt-groups.properties new file mode 100644 index 0000000..44742a8 --- /dev/null +++ b/.wildfly-base/configuration/mgmt-groups.properties @@ -0,0 +1,22 @@ +# +# Properties declaration of users groups for the realm 'ManagementRealm'. +# +# This is used for domain management, users groups membership information is used to assign the user +# specific management roles. +# +# Users can be added to this properties file at any time, updates after the server has started +# will be automatically detected. +# +# The format of this file is as follows: - +# username=role1,role2,role3 +# +# A utility script is provided which can be executed from the bin folder to add the users: - +# - Linux +# bin/add-user.sh +# +# - Windows +# bin\add-user.bat +# +# The following illustrates how an admin user could be defined. +# +#admin=PowerUser,BillingAdmin, \ No newline at end of file diff --git a/.wildfly-base/configuration/mgmt-users.properties b/.wildfly-base/configuration/mgmt-users.properties new file mode 100644 index 0000000..1eb4776 --- /dev/null +++ b/.wildfly-base/configuration/mgmt-users.properties @@ -0,0 +1,27 @@ +# +# Properties declaration of users for the realm 'ManagementRealm' which is the default realm +# for new installations. Further authentication mechanism can be configured +# as part of the in standalone.xml. +# +# Users can be added to this properties file at any time, updates after the server has started +# will be automatically detected. +# +# By default the properties realm expects the entries to be in the format: - +# username=HEX( MD5( username ':' realm ':' password)) +# +# A utility script is provided which can be executed from the bin folder to add the users: - +# - Linux +# bin/add-user.sh +# +# - Windows +# bin\add-user.bat +# +#$REALM_NAME=ManagementRealm$ This line is used by the add-user utility to identify the realm name already used in this file. +# +# On start-up the server will also automatically add a user $local - this user is specifically +# for local tools running against this AS installation. +# +# The following illustrates how an admin user could be defined, this +# is for illustration only and does not correspond to a usable password. +# +#admin=2a0923285184943425d1f53ddd58ec7a diff --git a/.wildfly-base/configuration/standalone-full-ha.xml b/.wildfly-base/configuration/standalone-full-ha.xml new file mode 100644 index 0000000..580658d --- /dev/null +++ b/.wildfly-base/configuration/standalone-full-ha.xml @@ -0,0 +1,659 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=${wildfly.h2.compatibility.mode:REGULAR} + h2 + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${jboss.bind.address:127.0.0.1} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.wildfly-base/configuration/standalone-full.xml b/.wildfly-base/configuration/standalone-full.xml new file mode 100644 index 0000000..d1b1c91 --- /dev/null +++ b/.wildfly-base/configuration/standalone-full.xml @@ -0,0 +1,582 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=${wildfly.h2.compatibility.mode:REGULAR} + h2 + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${jboss.bind.address:127.0.0.1} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.wildfly-base/configuration/standalone-ha.xml b/.wildfly-base/configuration/standalone-ha.xml new file mode 100644 index 0000000..eb47f57 --- /dev/null +++ b/.wildfly-base/configuration/standalone-ha.xml @@ -0,0 +1,608 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=${wildfly.h2.compatibility.mode:REGULAR} + h2 + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${jboss.bind.address:127.0.0.1} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.wildfly-base/configuration/standalone-load-balancer.xml b/.wildfly-base/configuration/standalone-load-balancer.xml new file mode 100644 index 0000000..b2bf52f --- /dev/null +++ b/.wildfly-base/configuration/standalone-load-balancer.xml @@ -0,0 +1,239 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.wildfly-base/configuration/standalone-microprofile-ha.xml b/.wildfly-base/configuration/standalone-microprofile-ha.xml new file mode 100644 index 0000000..66b4d20 --- /dev/null +++ b/.wildfly-base/configuration/standalone-microprofile-ha.xml @@ -0,0 +1,467 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=${wildfly.h2.compatibility.mode:REGULAR} + h2 + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.wildfly-base/configuration/standalone-microprofile.xml b/.wildfly-base/configuration/standalone-microprofile.xml new file mode 100644 index 0000000..8dbcdb4 --- /dev/null +++ b/.wildfly-base/configuration/standalone-microprofile.xml @@ -0,0 +1,418 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=${wildfly.h2.compatibility.mode:REGULAR} + h2 + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.wildfly-base/configuration/standalone.xml b/.wildfly-base/configuration/standalone.xml new file mode 100644 index 0000000..186d122 --- /dev/null +++ b/.wildfly-base/configuration/standalone.xml @@ -0,0 +1,528 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=${wildfly.h2.compatibility.mode:REGULAR} + h2 + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${jboss.bind.address:127.0.0.1} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/flake.lock b/flake.lock index c54af10..3079a34 100644 --- a/flake.lock +++ b/flake.lock @@ -96,11 +96,11 @@ ] }, "locked": { - "lastModified": 1776706386, - "narHash": "sha256-en72yqmDrm20Q+W0COp9I+Lc4j8NdeqKuGmYuZeD/yQ=", + "lastModified": 1778205353, + "narHash": "sha256-jVgEEjxFXapHfdpr5RuhnWsFds5k4BxLAwRaV0IoV78=", "owner": "0qln", "repo": "wildfly", - "rev": "87fdb70a9877ee697790f8e2edfda4bd3091616b", + "rev": "e36d74b059ad18e7e429bb2ea02368cf3da5f390", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 92ce3a3..ae3cb5a 100644 --- a/flake.nix +++ b/flake.nix @@ -109,7 +109,7 @@ # bash '' export PATH="bin/:$PATH" - export WILDFLY_BASE_DIR="$HOME/.wildfly-fhs-base" + export WILDFLY_BASE_DIR="$(git rev-parse --show-toplevel 2>/dev/null || pwd)/.wildfly-base" ''; }; };