From: Tom Hughes Date: Tue, 22 Oct 2013 07:54:57 +0000 (+0100) Subject: Enable SSL for the GPS tile server X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/e4f3321f72750452a7c0960fca7c527108274ddb?ds=sidebyside Enable SSL for the GPS tile server --- diff --git a/cookbooks/gps-tile/recipes/default.rb b/cookbooks/gps-tile/recipes/default.rb index 2a4db9582..eb019f8f0 100644 --- a/cookbooks/gps-tile/recipes/default.rb +++ b/cookbooks/gps-tile/recipes/default.rb @@ -17,7 +17,7 @@ # limitations under the License. # -include_recipe "apache" +include_recipe "apache::ssl" package "make" package "build-essential" diff --git a/cookbooks/gps-tile/templates/default/apache.erb b/cookbooks/gps-tile/templates/default/apache.erb index 7572327c3..12d24d131 100644 --- a/cookbooks/gps-tile/templates/default/apache.erb +++ b/cookbooks/gps-tile/templates/default/apache.erb @@ -1,11 +1,17 @@ # DO NOT EDIT - This file is being maintained by Chef - +<% [80, 443].each do |port| -%> +> # Basic server configuration ServerName <%= node[:fqdn] %> ServerAlias gps-tile.openstreetmap.org ServerAlias *.gps-tile.openstreetmap.org ServerAdmin webmaster@openstreetmap.org +<% if port == 443 -%> + + # Enable SSL + SSLEngine on +<% end -%> # Configure location of static files DocumentRoot /srv/gps-tile.openstreetmap.org/html @@ -26,6 +32,7 @@ Header set Access-Control-Allow-Origin "*" +<% end -%> Options None AllowOverride None