]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/templates/default/apache.backend.erb
Send diff uploads to cgimap
[chef.git] / cookbooks / web / templates / default / apache.backend.erb
index 467dd455636164ffc77198b9f0baa2cd8c4e10af..b69b3f0e67120f279dbf23d1c3e0fc0dcf763bd8 100644 (file)
@@ -41,6 +41,7 @@
   PassengerMaxRequests 500
   PassengerPreStart https://www.openstreetmap.org/
   PassengerAppGroupName rails
+  SetEnv OPENSTREETMAP_STATUS <%= @status %>
   SetEnv SECRET_KEY_BASE <%= @secret_key_base %>
 
   #
@@ -67,6 +68,7 @@
   RewriteRule ^/api/0\.6/(way|relation)/[0-9]+/full$ fcgi://127.0.0.1:8000$0 [P]
   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]
+  RewriteRule ^/api/0\.6/changeset/[0-9]+/upload$ fcgi://127.0.0.1:8000$0 [P]
 </VirtualHost>
 
 <Directory <%= node[:web][:base_directory] %>/rails/public>