Wildfly

configuration
/opt/wildfly/docs/contrib/scripts/systemd/README - systemd example configuration
/opt/wildfly/standalone/configuration/standalone.xml

CLI
ssh -X wildfly.example.com /opt/wildfly/bin/jboss-cli.sh --gui

/opt/wildfly/bin/jboss-cli.sh --connect

/subsystem=datasources/data-source=ExampleDS/:remove

# sdd postgres driver
/subsystem=datasources/jdbc-driver=postgres:add(driver-name=postgres,driver-module-name=org.postgresql,driver-xa-datasource-class-name=org.postgresql.xa.PGXADataSource)

# add datasource
data-source add --name=DefaultDS --driver-name=postgres --jndi-name=java:jboss/datasources/postgresDS --connection-url=jdbc:postgresql://localhost:5432/foo --user-name=foo --password=bar --enabled=true --use-java-context=true

# --use-ccm=false --max-pool-size=25 --blocking-timeout-wait-millis=5000

subsystem=deployment-scanner/scanner=default/:write-attribute(name=deployment-timeout,value={{ wildfly_startup_timeout }})
interface=public/:undefine-attribute(name=inet-address)
interface=public/:write-attribute(name=any-address,value=true)

# enable ssl
/core-service=management/security-realm=ApplicationRealm/server-identity=ssl:write-attribute(name=protocol,value=openssl.TLS)

# cli
[standalone@localhost:9990 /] deployment-info
[standalone@localhost:9990 /] undeploy my-ear-1.0.ear
[standalone@IP_ADDRESS:9990 /] /system-property=foo:add(value=bar)
[standalone@IP_ADDRESS:9990 /] /system-property=foo:read-resource

}
[standalone@IP_ADDRESS:9990 /] /system-property=foo:remove

https://docs.jboss.org/author/display/WFLY10/CLI+Recipes

Ansible
https://github.com/Wolfant/ansible-jbossCli

Enable Wildfly debug port 8787
echo "DEBUG=true" | sudo tee -a /etc/wildfly/wildfly.conf
sudo service wildfly restart

#/opt/wildfly/bin/standalone.sh DEBUG_MODE=true

Logging
# enable debug loging
/opt/wildfly/bin/jboss-cli.sh
connect
/subsystem=logging/root-logger=ROOT:write-attribute(name=level,value=DEBUG)
/subsystem=logging/console-handler=CONSOLE:write-attribute(name=level,value=DEBUG)

https://wildscribe.github.io/WildFly/11.0//subsystem/logging/index.html

# Logrotate
https://cinhtau.net/2016/12/03/logrotate-java-application-logs/
https://stackoverflow.com/questions/8962477/logrotate-files-with-date-in-the-file-name

Links
https://www.rosehosting.com/blog/install-wildfly-with-nginx-as-a-reverse-proxy-on-ubuntu-16-04/
https://www.c2b2.co.uk/middleware-blog/jboss-eap-6-cli.php
https://kb.novaordis.com/index.php/Adding_Users_to_WildFly_Security_Realms
https://www.jtips.info/index.php?title=WildFly/cli