Skip to content

Commit

Permalink
Merge pull request voxpupuli#119 from alphagov/fix-permissions
Browse files Browse the repository at this point in the history
Fix SSL cert and key permissions
  • Loading branch information
James Fryman committed Sep 6, 2013
2 parents de80e53 + 43cc1aa commit f91e052
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions manifests/resource/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,13 @@
# Check if the file has been defined before creating the file to
# avoid the error when using wildcard cert on the multiple vhosts
ensure_resource('file', "${nginx::params::nx_conf_dir}/${cert}.crt", {
mode => '0644',
owner => $nginx::params::nx_daemon_user,
mode => '0444',
source => $ssl_cert,
})
ensure_resource('file', "${nginx::params::nx_conf_dir}/${cert}.key", {
mode => '0644',
owner => $nginx::params::nx_daemon_user,
mode => '0440',
source => $ssl_key,
})
}
Expand Down

0 comments on commit f91e052

Please sign in to comment.