Commit 1205339e authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

[TASK] Fix hostname ... hopefully

parent 27ddb46f
......@@ -48,12 +48,12 @@ end
###########################
# ssl certificate needed (requires that typo3_site (or a kind of) was executed before this script)
node['webgrind']['base_hostname'] = node['typo3_site']['hostname'] + '.crt'
template node['webgrind']['install_path'] + '/webgrind.config.php.erb' do
source 'webgrind.config.php.erb'
mode '0644'
variables(
:params => node['webgrind'],
:certificate => node['typo3_site']['hostname'] + '.crt'
:params => node['webgrind']
)
action :create
end
......
......@@ -40,7 +40,7 @@
# SSLCertificateFile directive is needed.
#SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
#SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
SSLCertificateFile /etc/apache2/ssl/<%= @params[:certificate] %>
SSLCertificateFile /etc/apache2/ssl/<%= @params[:base_hostname] %>.crt
SSLCertificateKeyFile /etc/apache2/ssl/device.key
# HSTS (mod_headers is required) (15768000 seconds = 6 months)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment