How to change ssl port for chef 11 omnibus server

As a solution to problems described here:
propose the following:
to change the ssl port of the Chef server from a standard 443 to something
else one needs to edit file


changing the line 79

proxy_set_header Host $host;


proxy_set_header Host “$host:<%= @ssl_port %>”;

and then run

chef-server-ctl reconfigure

Solution tested with 11.0.4-server