请帮助我安装了wso2 APIM,现在正在配置。我创建了新的REST API,并输入url“在开发门户中查看”,为我重定向到本地主机。我在deployment.toml中更改了主机名(ip-addr)。为什么为我重定向到localhost?
发布于 2020-03-02 09:33:34
取消注释并更新此配置。
#[apim.devportal]
#url = "https://localhost:${mgt.transport.https.port}/devportal"
发布于 2020-03-02 10:14:26
谢谢Bee的回答
制造了,但不能工作...
[apim.devportal]
url = "https://192.168.3.148:${mgt.transport.https.port}/devportal"
#enable_application_sharing = false
#if application_sharing_type, application_sharing_impl both defined priority goes to application_sharing_impl
#application_sharing_type = "default" #changed type, saml, default #todo: check the new config for rest api
#application_sharing_impl = "org.wso2.carbon.apimgt.impl.SAMLGroupIDExtractorImpl"
#display_multiple_versions = false
#display_deprecated_apis = false
#enable_comments = true
#enable_ratings = true
#enable_forum = true
发布于 2020-03-02 11:59:20
来自文档:
By default, WSO2 products identify the hostname of the current machine through the Java API. However, this value sometimes yields erroneous results on some environments. Therefore, users are recommended to configure the hostname. The following procedure explains how to change the hostname and management hostname of WSO2 API Manager (WSO2 API-M) as required for your production environment.
Update the deployment.toml file.
Open the <API-M_HOME>/repository/conf/deployment.toml file
Define the hostname attribute under server configurations as shown below.
Format
[server]
hostname = "{hostname}"
Example
{hostname} - Hostname or IP address of the machine hosting this server. This is will become part of the End Point Reference of the services deployed on this server instance.
Configure the Developer Portal URL, which is used to access the Developer Portal via the Publisher.
Uncomment the following configuration and define the hostname.
[apim.devportal]
url = "https://<hostname>:${mgt.transport.https.port}/devportal"
Generate a key store, export the public certificate from the keystore, and import that certificate to the client-truststore.jks file.
For more information, see Creating New Keystores.
Restart the server.
如果我更改了主机名并写入deployment.toml,我是否应该生成新密钥存储?
https://stackoverflow.com/questions/60485514
复制相似问题