【问题标题】:Change Chef server settings - port, url, https?更改 Chef 服务器设置 - 端口、url、https?
【发布时间】:2015-02-07 10:15:12
【问题描述】:

我想知道 Chef 服务器是否可以使用 http 而不是 https 运行。如果可以更改端口。也许还有网络根/url?

例如在 /etc/opschode/chef-server.rb 中。当我把

nginx['non_ssl_port'] = 8080
nginx['enable_non_ssl'] = true
nginx['x_forwarded_proto'] = 'http'

Chef 会将 http://myserver:8080 重定向到 https(端口 443)并最终进入某种重定向循环。

是否可以在 Chef 中更改这些类型的设置?

【问题讨论】:

    标签: chef-infra


    【解决方案1】:

    omnibus-chef-server installation 中有一个 Chef-server url 选项,也许可以提供帮助。

    default['chef_server']['nginx']['url'] = "https://#{node['fqdn']}"
    

    Source

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-12-01
      • 2015-06-18
      • 1970-01-01
      • 2022-01-16
      • 2021-02-09
      • 2011-01-24
      • 1970-01-01
      相关资源
      最近更新 更多