xa-data-source add \
  --name=AppDS \
  --enabled=true \
  --driver-name=postgresql \
  --jndi-name=java:/webbpm/AppDS \
  --user-name=${env.DB_APP_USERNAME:app_user} \
  --password=${env.DB_APP_PASSWORD:apppassword} \
  --use-ccm=true \
  --valid-connection-checker-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker \
  --validate-on-match=false \
  --background-validation=true \
  --background-validation-millis=5000 \
  --exception-sorter-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter \
  --statistics-enabled=true \
  --max-pool-size=50 \
  --query-timeout=300 \
  --xa-datasource-properties=ServerName=${env.DB_APP_HOST:db},PortNumber=${env.DB_APP_PORT:5432},DatabaseName=${env.DB_APP_NAME:app}

xa-data-source add \
  --name=JBPMDS \
  --enabled=true \
  --driver-name=postgresql \
  --jndi-name=java:jboss/datasources/jbpmDS \
  --user-name=${env.DB_JBPM_USERNAME:jbpm} \
  --password=${env.DB_JBPM_PASSWORD:jbpmpassword} \
  --use-ccm=true \
  --valid-connection-checker-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker \
  --validate-on-match=false \
  --background-validation=true \
  --background-validation-millis=5000 \
  --exception-sorter-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter \
  --statistics-enabled=true \
  --max-pool-size=50 \
  --query-timeout=300 \
  --xa-datasource-properties=ServerName=${env.DB_JBPM_HOST:db},PortNumber=${env.DB_JBPM_PORT:5432},DatabaseName=${env.DB_JBPM_NAME:jbpm}

xa-data-source add \
   --name=SECURITYDS \
   --enabled=true \
   --driver-name=postgresql \
   --jndi-name=java:/webbpm/security-ds \
   --user-name=${env.DB_SEC_USERNAME:security_user} \
   --password=${env.DB_SEC_PASSWORD:secpassword} \
   --max-pool-size=70 \
   --valid-connection-checker-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker \
   --validate-on-match=false \
   --background-validation=true \
   --background-validation-millis=5000 \
   --exception-sorter-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter \
   --statistics-enabled=true \
   --query-timeout=300 \
   --xa-datasource-properties=ServerName=${env.DB_SEC_HOST:db},PortNumber=${env.DB_SEC_PORT:5432},DatabaseName=${env.DB_SEC_NAME:app}

/system-property=ldap.mapping.login.param:add(value=${env.WEBBPM_LDAP_LOGIN_ATTR:uid})
/system-property=ldap.mapping.org.code.param:add(value=${env.WEBBPM_LDAP_ORGANIZATION_ATTR:ou})
/system-property=jboss.as.management.blocking.timeout:add(value=900)
/subsystem=undertow/server=default-server/http-listener=default/:write-attribute(name=record-request-start-time,value=true)
/subsystem=undertow/server=default-server/host=default-host/setting=access-log:add(pattern=%h %t "%r" %s %b %D)
/system-property=webbpm.cache.hazelcast.hosts:add(value="127.0.0.1")
/system-property=webbpm.cache.hazelcast.outbound_port_definitions:add(value="5801-5820")
/system-property=webbpm.security.session.active.count:add(value="20")
/system-property=gar.enable:add(value=false)
/system-property=security.password.regex:add(value="^((?=(.*\\d){1,})(?=.*[a-zа-яё])(?=.*[A-ZА-ЯЁ]).{8,})$")
/system-property=fias.enable:add(value=false)
/system-property=bpmn.enable:add(value=false)
/system-property=registration.enabled:add(value=false)
/system-property=webbpm.security.cookie.httpOnly:add(value=${env.WEBBPM_SECURITY_COOKIE_HTTPONLY:true})
/system-property=webbpm.security.cookie.path:add(value=${env.WEBBPM_SECURITY_COOKIE_PATH:})
