启用意见征求横幅

Edge for Private Cloud v4.18.05

您可以在用户首次访问 Edge 界面时显示意见征求横幅。意见征求横幅会显示 HTML 格式的文本和一个按钮,供用户选择继续使用登录屏幕。 例如:

若要添加意见征求横幅,请执行以下操作:

  1. 通过编辑器打开 ui.properties 文件。 如果该文件不存在,请创建:
    vi /opt/apigee/customer/application/ui.properties
  2. 设置以下属性:
    # Enable the consent banner:
    conf_apigee-base_apigee.feature.enableconsentbanner="true"
    # Set the button text:
    conf_apigee-base_apigee.consentbanner.buttoncaption="I Agree"
    # Set the HTML text:
    conf_apigee-base_apigee.consentbanner.body="<h1>Notice and Consent Banner</h1>
    <div><p>Enter your consent text here.</p></div>"
  3. 保存更改。
  4. 重启 Edge 界面:
    /opt/apigee/apigee-service/bin/apigee-service edge-ui restart

当您下次在浏览器中打开 Edge 界面时,必须接受意见征求协议才能登录。