Update kosmos-mediawiki cookbook for Ubuntu 16.04

This commit is contained in:
Greg Karékinian
2017-03-31 19:21:00 +02:00
parent b85c4ad3d5
commit 827a7428e2
3 changed files with 28 additions and 10 deletions

View File

@@ -1,6 +1,8 @@
server {
listen 80;
<% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%>
listen 443 ssl;
<% end -%>
server_name <%= @server_name %>;
access_log /var/log/nginx/<%= @server_name %>.access.log;
@@ -30,6 +32,8 @@ server {
fastcgi_param HTTP_PROXY "";
}
<% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%>
ssl_certificate <%= @ssl_cert %>;
ssl_certificate_key <%= @ssl_key %>;
<% end -%>
}