我安装了厨师服务器,我想在不同的端口上运行它。 所以我在default.rb文件中更改了端口。 现在,chef-server正在不同的端口运行,但是当我尝试通过浏览器访问它时,它会重定向到默认URL,表示连接被拒绝,因为它没有在默认端口上运行。
我错过了什么?
请找到该文件的nginx部分。
default['private_chef']['nginx']['enable'] = true
default['private_chef']['nginx']['ha'] = false
default['private_chef']['nginx']['dir'] = "/var/opt/opscode/nginx"
default['private_chef']['nginx']['log_directory'] = "/var/log/opscode/nginx"
default['private_chef']['nginx']['log_rotation']['file_maxbytes'] = 104857600
default['private_chef']['nginx']['log_rotation']['num_to_keep'] = 10
default['private_chef']['nginx']['log_x_forwarded_for'] = false
default['private_chef']['nginx']['ssl_port'] = 8082
default['private_chef']['nginx']['enable_non_ssl'] = false
default['private_chef']['nginx']['non_ssl_port'] = 8083
default['private_chef']['nginx']['x_forwarded_proto'] = 'https'
default['private_chef']['nginx']['server_name'] = node['fqdn']
default['private_chef']['nginx']['url'] = "https://#{node['fqdn']}:8082/"
default['private_chef']['nginx']['proxy_connect_timeout'] = 1