Force SSL

Version 2 (Tray Torrance, 11/07/2011 04:18 pm)

1 1
h1. Using SSL with Foreman
2 1
3 2 Tray Torrance
*Note* in order to make this work, you must use passenger or mongrel with foreman - see example puppet module on "Github":https://github.com/ohadlevy/puppet-foreman for passenger implementation.
4 1
5 1
if you configure apache correctly, Foreman does not require any special changes, and will work out of the box with SSL.
6 1
if you are using [[Unattended installations]], the kickstart and preseed files are also served via http, and they are not compatible using SSL.
7 1
therefor, it is recommended to enable http and https and let foreman redirect your browser to the https port when requried.
8 1
9 1
to enable, just add in your *config/settings.yaml* file:
10 1
<pre>
11 1
:require_ssl: true
12 1
</pre>
13 1
14 1
and restart your foreman instance.