You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

302 lines
16 KiB

  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <server xmlns="urn:jboss:domain:5.0">
  3. <extensions>
  4. <extension module="org.jboss.as.deployment-scanner"/>
  5. <extension module="org.jboss.as.ee"/>
  6. <extension module="org.jboss.as.jmx"/>
  7. <extension module="org.jboss.as.logging"/>
  8. <extension module="org.jboss.as.naming"/>
  9. <extension module="org.jboss.as.security"/>
  10. <extension module="org.wildfly.extension.core-management"/>
  11. <extension module="org.wildfly.extension.elytron"/>
  12. <extension module="org.wildfly.extension.io"/>
  13. <extension module="org.wildfly.extension.request-controller"/>
  14. <extension module="org.wildfly.extension.security.manager"/>
  15. <extension module="org.wildfly.extension.undertow"/>
  16. </extensions>
  17. <management>
  18. <security-realms>
  19. <security-realm name="ManagementRealm">
  20. <authentication>
  21. <local default-user="$local"/>
  22. <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
  23. </authentication>
  24. <authorization map-groups-to-roles="false">
  25. <properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
  26. </authorization>
  27. </security-realm>
  28. <security-realm name="ApplicationRealm">
  29. <server-identities>
  30. <ssl>
  31. <keystore path="application.keystore" relative-to="jboss.server.config.dir" keystore-password="password" alias="server" key-password="password" generate-self-signed-certificate-host="localhost"/>
  32. </ssl>
  33. </server-identities>
  34. <authentication>
  35. <local default-user="$local" allowed-users="*"/>
  36. <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
  37. </authentication>
  38. <authorization>
  39. <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
  40. </authorization>
  41. </security-realm>
  42. </security-realms>
  43. <audit-log>
  44. <formatters>
  45. <json-formatter name="json-formatter"/>
  46. </formatters>
  47. <handlers>
  48. <file-handler name="file" formatter="json-formatter" path="audit-log.log" relative-to="jboss.server.data.dir"/>
  49. </handlers>
  50. <logger log-boot="true" log-read-only="false" enabled="false">
  51. <handlers>
  52. <handler name="file"/>
  53. </handlers>
  54. </logger>
  55. </audit-log>
  56. <management-interfaces>
  57. <http-interface security-realm="ManagementRealm">
  58. <http-upgrade enabled="true"/>
  59. <socket-binding http="management-http"/>
  60. </http-interface>
  61. </management-interfaces>
  62. <access-control provider="simple">
  63. <role-mapping>
  64. <role name="SuperUser">
  65. <include>
  66. <user name="$local"/>
  67. </include>
  68. </role>
  69. </role-mapping>
  70. </access-control>
  71. </management>
  72. <profile>
  73. <subsystem xmlns="urn:jboss:domain:logging:3.0">
  74. <console-handler name="CONSOLE">
  75. <level name="INFO"/>
  76. <formatter>
  77. <named-formatter name="COLOR-PATTERN"/>
  78. </formatter>
  79. </console-handler>
  80. <periodic-rotating-file-handler name="FILE" autoflush="true">
  81. <formatter>
  82. <named-formatter name="PATTERN"/>
  83. </formatter>
  84. <file relative-to="jboss.server.log.dir" path="server.log"/>
  85. <suffix value=".yyyy-MM-dd"/>
  86. <append value="true"/>
  87. </periodic-rotating-file-handler>
  88. <logger category="com.arjuna">
  89. <level name="WARN"/>
  90. </logger>
  91. <logger category="org.jboss.as.config">
  92. <level name="DEBUG"/>
  93. </logger>
  94. <logger category="sun.rmi">
  95. <level name="WARN"/>
  96. </logger>
  97. <root-logger>
  98. <level name="INFO"/>
  99. <handlers>
  100. <handler name="CONSOLE"/>
  101. <handler name="FILE"/>
  102. </handlers>
  103. </root-logger>
  104. <formatter name="PATTERN">
  105. <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/>
  106. </formatter>
  107. <formatter name="COLOR-PATTERN">
  108. <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/>
  109. </formatter>
  110. </subsystem>
  111. <subsystem xmlns="urn:jboss:domain:core-management:1.0"/>
  112. <subsystem xmlns="urn:jboss:domain:deployment-scanner:2.0">
  113. <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" auto-deploy-exploded="true" scan-interval="5000" runtime-failure-causes-rollback="${jboss.deployment.scanner.rollback.on.failure:false}"/>
  114. </subsystem>
  115. <subsystem xmlns="urn:jboss:domain:ee:4.0">
  116. <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>
  117. <concurrent>
  118. <context-services>
  119. <context-service name="default" jndi-name="java:jboss/ee/concurrency/context/default" use-transaction-setup-provider="false"/>
  120. </context-services>
  121. <managed-thread-factories>
  122. <managed-thread-factory name="default" jndi-name="java:jboss/ee/concurrency/factory/default" context-service="default"/>
  123. </managed-thread-factories>
  124. <managed-executor-services>
  125. <managed-executor-service name="default" jndi-name="java:jboss/ee/concurrency/executor/default" context-service="default" hung-task-threshold="60000" keepalive-time="5000"/>
  126. </managed-executor-services>
  127. <managed-scheduled-executor-services>
  128. <managed-scheduled-executor-service name="default" jndi-name="java:jboss/ee/concurrency/scheduler/default" context-service="default" hung-task-threshold="60000" keepalive-time="3000"/>
  129. </managed-scheduled-executor-services>
  130. </concurrent>
  131. <default-bindings context-service="java:jboss/ee/concurrency/context/default" managed-executor-service="java:jboss/ee/concurrency/executor/default" managed-scheduled-executor-service="java:jboss/ee/concurrency/scheduler/default" managed-thread-factory="java:jboss/ee/concurrency/factory/default"/>
  132. </subsystem>
  133. <subsystem xmlns="urn:wildfly:elytron:1.2" final-providers="combined-providers" disallowed-providers="OracleUcrypto">
  134. <providers>
  135. <aggregate-providers name="combined-providers">
  136. <providers name="elytron"/>
  137. <providers name="openssl"/>
  138. </aggregate-providers>
  139. <provider-loader name="elytron" module="org.wildfly.security.elytron"/>
  140. <provider-loader name="openssl" module="org.wildfly.openssl"/>
  141. </providers>
  142. <audit-logging>
  143. <file-audit-log name="local-audit" path="audit.log" relative-to="jboss.server.log.dir" format="JSON"/>
  144. </audit-logging>
  145. <security-domains>
  146. <security-domain name="ApplicationDomain" default-realm="ApplicationRealm" permission-mapper="default-permission-mapper">
  147. <realm name="ApplicationRealm" role-decoder="groups-to-roles"/>
  148. <realm name="local"/>
  149. </security-domain>
  150. <security-domain name="ManagementDomain" default-realm="ManagementRealm" permission-mapper="default-permission-mapper">
  151. <realm name="ManagementRealm" role-decoder="groups-to-roles"/>
  152. <realm name="local" role-mapper="super-user-mapper"/>
  153. </security-domain>
  154. </security-domains>
  155. <security-realms>
  156. <identity-realm name="local" identity="$local"/>
  157. <properties-realm name="ApplicationRealm">
  158. <users-properties path="application-users.properties" relative-to="jboss.server.config.dir" digest-realm-name="ApplicationRealm"/>
  159. <groups-properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
  160. </properties-realm>
  161. <properties-realm name="ManagementRealm">
  162. <users-properties path="mgmt-users.properties" relative-to="jboss.server.config.dir" digest-realm-name="ManagementRealm"/>
  163. <groups-properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
  164. </properties-realm>
  165. </security-realms>
  166. <mappers>
  167. <simple-permission-mapper name="default-permission-mapper" mapping-mode="first">
  168. <permission-mapping>
  169. <principal name="anonymous"/>
  170. </permission-mapping>
  171. <permission-mapping match-all="true">
  172. <permission class-name="org.wildfly.security.auth.permission.LoginPermission"/>
  173. </permission-mapping>
  174. </simple-permission-mapper>
  175. <constant-realm-mapper name="local" realm-name="local"/>
  176. <simple-role-decoder name="groups-to-roles" attribute="groups"/>
  177. <constant-role-mapper name="super-user-mapper">
  178. <role name="SuperUser"/>
  179. </constant-role-mapper>
  180. </mappers>
  181. <http>
  182. <http-authentication-factory name="management-http-authentication" http-server-mechanism-factory="global" security-domain="ManagementDomain">
  183. <mechanism-configuration>
  184. <mechanism mechanism-name="DIGEST">
  185. <mechanism-realm realm-name="ManagementRealm"/>
  186. </mechanism>
  187. </mechanism-configuration>
  188. </http-authentication-factory>
  189. <http-authentication-factory name="application-http-authentication" http-server-mechanism-factory="global" security-domain="ApplicationDomain">
  190. <mechanism-configuration>
  191. <mechanism mechanism-name="BASIC">
  192. <mechanism-realm realm-name="Application Realm"/>
  193. </mechanism>
  194. <mechanism mechanism-name="FORM"/>
  195. </mechanism-configuration>
  196. </http-authentication-factory>
  197. <provider-http-server-mechanism-factory name="global"/>
  198. </http>
  199. <sasl>
  200. <sasl-authentication-factory name="management-sasl-authentication" sasl-server-factory="configured" security-domain="ManagementDomain">
  201. <mechanism-configuration>
  202. <mechanism mechanism-name="JBOSS-LOCAL-USER" realm-mapper="local"/>
  203. <mechanism mechanism-name="DIGEST-MD5">
  204. <mechanism-realm realm-name="ManagementRealm"/>
  205. </mechanism>
  206. </mechanism-configuration>
  207. </sasl-authentication-factory>
  208. <sasl-authentication-factory name="application-sasl-authentication" sasl-server-factory="configured" security-domain="ApplicationDomain">
  209. <mechanism-configuration>
  210. <mechanism mechanism-name="JBOSS-LOCAL-USER" realm-mapper="local"/>
  211. <mechanism mechanism-name="DIGEST-MD5">
  212. <mechanism-realm realm-name="ApplicationRealm"/>
  213. </mechanism>
  214. </mechanism-configuration>
  215. </sasl-authentication-factory>
  216. <configurable-sasl-server-factory name="configured" sasl-server-factory="elytron">
  217. <properties>
  218. <property name="wildfly.sasl.local-user.default-user" value="$local"/>
  219. </properties>
  220. </configurable-sasl-server-factory>
  221. <mechanism-provider-filtering-sasl-server-factory name="elytron" sasl-server-factory="global">
  222. <filters>
  223. <filter provider-name="WildFlyElytron"/>
  224. </filters>
  225. </mechanism-provider-filtering-sasl-server-factory>
  226. <provider-sasl-server-factory name="global"/>
  227. </sasl>
  228. </subsystem>
  229. <subsystem xmlns="urn:jboss:domain:io:2.0">
  230. <worker name="default"/>
  231. <buffer-pool name="default"/>
  232. </subsystem>
  233. <subsystem xmlns="urn:jboss:domain:jmx:1.3">
  234. <expose-resolved-model/>
  235. <expose-expression-model/>
  236. <remoting-connector/>
  237. </subsystem>
  238. <subsystem xmlns="urn:jboss:domain:naming:2.0"/>
  239. <subsystem xmlns="urn:jboss:domain:request-controller:1.0"/>
  240. <subsystem xmlns="urn:jboss:domain:security:2.0">
  241. <security-domains>
  242. <security-domain name="other" cache-type="default">
  243. <authentication>
  244. <login-module code="Remoting" flag="optional">
  245. <module-option name="password-stacking" value="useFirstPass"/>
  246. </login-module>
  247. <login-module code="RealmDirect" flag="required">
  248. <module-option name="password-stacking" value="useFirstPass"/>
  249. </login-module>
  250. </authentication>
  251. </security-domain>
  252. </security-domains>
  253. </subsystem>
  254. <subsystem xmlns="urn:jboss:domain:security-manager:1.0">
  255. <deployment-permissions>
  256. <maximum-set>
  257. <permission class="java.security.AllPermission"/>
  258. </maximum-set>
  259. </deployment-permissions>
  260. </subsystem>
  261. <subsystem xmlns="urn:jboss:domain:undertow:4.0">
  262. <buffer-cache name="default"/>
  263. <server name="default-server">
  264. <http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
  265. <https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>
  266. <host name="default-host" alias="localhost">
  267. <location name="/" handler="welcome-content"/>
  268. <filter-ref name="server-header"/>
  269. <filter-ref name="x-powered-by-header"/>
  270. <http-invoker security-realm="ApplicationRealm"/>
  271. </host>
  272. </server>
  273. <servlet-container name="default">
  274. <jsp-config/>
  275. <websockets/>
  276. </servlet-container>
  277. <handlers>
  278. <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
  279. </handlers>
  280. <filters>
  281. <response-header name="server-header" header-name="Server" header-value="WildFly/11"/>
  282. <response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>
  283. </filters>
  284. </subsystem>
  285. </profile>
  286. <interfaces>
  287. <interface name="management">
  288. <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
  289. </interface>
  290. <interface name="public">
  291. <inet-address value="${jboss.bind.address:127.0.0.1}"/>
  292. </interface>
  293. </interfaces>
  294. <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
  295. <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
  296. <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/>
  297. <socket-binding name="ajp" port="${jboss.ajp.port:8009}"/>
  298. <socket-binding name="http" port="${jboss.http.port:8080}"/>
  299. <socket-binding name="https" port="${jboss.https.port:8443}"/>
  300. </socket-binding-group>
  301. </server>