Change chef server nginx ssl port

When trying to install a chef server using chef itself, I stumbled over this great cookbook. It was a breeze installing a chef server with it.

After the first times installing the chef server in an image, I wanted to change the port of the nginx web server from 443 (the default port) to 8443. This can be done by adding the following line to the file


as described here.

The cookbook contains the attribute “configuration” for modifying this file. After experimenting with this attribute I found the correct syntax to use for adding the line to the configuration file:

It looks a little bit strange but worked out fine…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">