X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/49b3060a40a46300b238b0dbe304283f20522735..791be26c797a349df14b9889f50018f8f75b13b4:/cookbooks/web/templates/default/apache.backend.erb diff --git a/cookbooks/web/templates/default/apache.backend.erb b/cookbooks/web/templates/default/apache.backend.erb index 8a8bb3fa1..089ca1c30 100644 --- a/cookbooks/web/templates/default/apache.backend.erb +++ b/cookbooks/web/templates/default/apache.backend.erb @@ -1,14 +1,12 @@ # DO NOT EDIT - This file is being maintained by Chef -<% [80, 443].each do |port| -%> -> + # # Basic server configuration # ServerName <%= node[:fqdn] %> ServerAlias api.openstreetmap.org www.openstreetmap.org ServerAdmin webmaster@openstreetmap.org -<% if port == 443 -%> # # Enable SSL @@ -16,7 +14,6 @@ SSLEngine on SSLCertificateFile /etc/ssl/certs/www.openstreetmap.org.pem SSLCertificateKeyFile /etc/ssl/private/www.openstreetmap.org.key -<% end -%> # # Setup logging @@ -42,11 +39,8 @@ RailsEnv production PassengerMinInstances 3 PassengerMaxRequests 500 -<% if port == 443 -%> PassengerPreStart https://www.openstreetmap.org/ -<% else -%> - PassengerPreStart http://www.openstreetmap.org/ -<% end -%> + PassengerAppGroupName rails SetEnv SECRET_KEY_BASE <%= @secret_key_base %> # @@ -74,7 +68,6 @@ RewriteRule ^/api/0\.6/(nodes|ways|relations)$ fcgi://127.0.0.1:8000$0 [P] RewriteRule ^/api/0\.6/changeset/[0-9]+/download$ fcgi://127.0.0.1:8000$0 [P] -<% end -%> /rails/public> Require all granted