You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Domenico Francesco Bruscino (Jira)" <ji...@apache.org> on 2020/09/15 08:57:00 UTC

[jira] [Commented] (ARTEMIS-2899) Make Artemis console reverse proxy friendly

    [ https://issues.apache.org/jira/browse/ARTEMIS-2899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17195989#comment-17195989 ] 

Domenico Francesco Bruscino commented on ARTEMIS-2899:
------------------------------------------------------

The  PR [#3257|https://github.com/apache/activemq-artemis/pull/3257] related to ARTEMIS-2838 was created to migrate Artemis Console to use Hawtio 2 and the index.html would replace the previous script with a static base element:

{code:html}
<base href='/console/'>
{code}


> Make Artemis console reverse proxy friendly
> -------------------------------------------
>
>                 Key: ARTEMIS-2899
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2899
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>          Components: Web Console
>    Affects Versions: 2.15.0
>            Reporter: Stephan Austermühle
>            Priority: Major
>
> We are running an Artemis cluster inside of a Kubernetes cluster and want to expose the broker web console via a Kubernetes Ingress. This currently works only when using a dedicated host and exposing the root url but not for sub-paths (e.g., {{/my/path/console}}) because the console path is hardcoded to the second element in {{index.html}}:
> {code:js}
>     <script type="text/javascript">
>         var base = window.location.pathname.split('/', 2)[1];
>         if (base == "") {
>           document.write("<base href='/'/>");
>         } else {
>           document.write("<base href='/" + base + "/' />");
>         }
>     </script>
> {code}
> Changing the the url in {{bootstrap.xml}} is not an option because applications accessing the Jolokia interface then need to know the external address.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)