wso2 身份服务器 5.9.0 设置覆盖 carbon.xml

wso2 Identity Server 5.9.0 setup overwriting carbon.xml

我正在使用 wso2 Identity Server 5.9.0 形式的 rpm。 Fedora 30 linux 安装。 CARBON_HOME = /usr/lib64/wso2/wso2is/5.9.0/ 我的所有开发团队都通过 VPN,所以我使用 /etc/hosts 并将 siServer 设置为 10.xxx.xxx.6 我将该 ip 设置为:

<HostName>siserver</HostName>
<MgtHostName>siserver</MgtHostName>

里面carbon.xml

但是当我开始时它被覆盖了。我怀疑某些安全策略。

日志说:

TID: [2019-12-16 12:18:32,320] WARN {org.wso2.config.mapper.ConfigParser} - Configurations Changed in :repository/conf/carbon.xml {org.wso2.config.mapper.ConfigParser} TID: [2019-12-16 12:18:32,322] WARN {org.wso2.config.mapper.ConfigParser} - Overriding files in configuration directory /usr/lib64/wso2/wso2is/5.9.0 {org.wso2.config.mapper.ConfigParser} TID: [2019-12-16 12:18:32,928] INFO {org.wso2.config.mapper.ConfigParser} - Writing Metadata Entries... {org.wso2.config.mapper.ConfigParser}

如何避免我的配置被覆盖?

IS 5.9.0 引入了新的配置模型。根据新的配置模型,有一个集中的配置文件(deployment.toml),用户可以在其中添加配置,然后这些配置将被添加到相应的.xml 文件中。

所以如果你想在carbon.xml文件中做一些改变,你必须根据新的配置模型在deployment.toml文件中添加相关的配置。使用新的配置模型,您在 xml 配置文件中所做的所有更改将在服务器启动期间被 toml 配置覆盖。

请参阅此文档以了解新的配置模型 https://wso2.com/blogs/thesource/2019/10/simplifying-configuration-with-WSO2-identity-server

您可以在 deployment.toml 文件中更改主机名。在 deployment.toml 文件中添加以下配置。

[server]  
hostname = "siserver"

如果您在 deployment.toml 文件中已有这些密钥,请将值主机名更改为 'siserver' 并重新启动服务器。

有关在 IS 5.9.0 中更改主机名的更多详细信息,请参阅此文档。 https://is.docs.wso2.com/en/5.9.0/setup/changing-the-hostname/