5 Replies Latest reply on Oct 10, 2018 4:29 PM by aa.oboulot

    Set variable for redirect-socket attribute to the http-listener element in standalone.xml

    aa.oboulot Newbie

      Hello,

       

      I try to set a environment variable for redirect-socket attribute to the http-listener element in standalone.xml with the cli.

      Like this :

       

      /subsystem=undertow/server=default-server/http-listener=default:write-attribute(name=redirect-socket,value="${env.REDIRECT_SOCKET}")


      But i have error :

       

      Failure: WFLYCTL0369: Required capabilities are not available:
          org.wildfly.network.socket-binding.${env.REDIRECT_SOCKET}; Possible registration points for this capability:
                      /socket-binding-group=*/socket-binding=*

       

      If i replace the environment variable ${env.REDIRECT_SOCKET} with string : https, of course it works well.

       

      How to make it work ? Do you have an idea ?

       

      Best regards,

      Adrian.