wso2wso2-api-manager

WSO2 API Manager (wso2am-4.1.0) - How to set a management hostname different from the hostname?


I'm using wso2am-4.1.0 and I'm trying to set a management hostname and a hostname which are different from each other. In the documentation, there's no separation and only the hostname could be set in deployment.toml which sets both the hostname and the management hostname to the set value inside carbon.xml.

https://apim.docs.wso2.com/en/4.1.0/install-and-setup/setup/deployment-best-practices/changing-the-hostname/

This was possible in the older versions. Is it possible to achieve this in the newer version? Thanks in advance.


Solution

  • You should be able to change the URL by login into the /admin portal and changing the "Display Token Endpoint"

    enter image description here

    Update To answer the original question you can set the following configs in the deployment.toml to set the HostName and Management hostname.

    [server]
    hostname = "{hostname}"
    mgt_console_hostname = "MGT_HOST"