【问题标题】:wso2 Identity Server 5.9.0 setup overwriting carbon.xmlwso2 Identity Server 5.9.0 设置覆盖 carbon.xml
【发布时间】:2019-12-17 14:19:25
【问题描述】:

我正在使用 wso2 Identity Server 5.9.0 form 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] 警告 {org.wso2.config.mapper.ConfigParser} - 更改的配置 :repository/conf/carbon.xml {org.wso2.config.mapper.ConfigParser} TID: [2019-12-16 12:18:32,322] 警告 {org.wso2.config.mapper.ConfigParser} - 覆盖配置目录 /usr/lib64/wso2/wso2is/5.9.0 {org.wso2.config.mapper.ConfigParser} 中的文件 TID:[2019-12-16 12:18:32,928] 信息 {org.wso2.config.mapper.ConfigParser} - 编写元数据条目... {org.wso2.config.mapper.ConfigParser}

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

【问题讨论】:

    标签: wso2 identity wso2is


    【解决方案1】:

    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 文件中已有这些键,请将值 hostname 更改为 'siserver' 并重新启动服务器。

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

    【讨论】:

    • 我需要更改默认端口号,所以我使用:offset = "2" after [server]
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-14
    • 2020-03-22
    • 1970-01-01
    • 2017-05-12
    • 2021-07-18
    • 2017-02-11
    相关资源
    最近更新 更多