2014. 7. 10. 03:02

How to change chef-server's nginx configure

There are two ways to achieve this.


First is to use nginx's config file directly. chef-server's nginx config file is located under 


 /var/opt/chef-server/nginx/etc/nginx.conf


After changing some settings, restart chef-server as below:


 sudo chef-server-ctl restart


Second is to use chef-server.rb file instead of using nginx.conf file


This file is located under /etc/chef-server. If it doesn't exist, just create it. put some values you want in it as below:


 nginx['ssl_port'] = 449


To see the more detailed information about this, visit the following link:


http://docs.opscode.com/config_rb_chef_server_optional_settings.html


After specifying some options, run the following commands to apply those.


 sudo chef-server-ctl reconfigure

 sudo chef-server-ctl restart