]> git.openstreetmap.org Git - chef.git/commitdiff
Add CGI header for cc-by-sa
authorTom Hughes <tom@compton.nu>
Sun, 20 Nov 2022 19:01:44 +0000 (19:01 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 20 Nov 2022 19:01:44 +0000 (19:01 +0000)
cookbooks/planet/files/default/ccbysa_cgi/HEADER.cgi [new file with mode: 0644]
cookbooks/planet/recipes/default.rb

diff --git a/cookbooks/planet/files/default/ccbysa_cgi/HEADER.cgi b/cookbooks/planet/files/default/ccbysa_cgi/HEADER.cgi
new file mode 100644 (file)
index 0000000..9e68c94
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/python3
+
+print( """
+<html>
+ <head>
+  <title>OpenStreetMap historical CC BY-SA 2.0 licensed data</title>
+  <link href="/style.css" rel="stylesheet" type="text/css">
+ </head>
+ <body>
+<img id="logo" src="/logo.png" alt="OSM logo" width="128" height="128">
+<h1>planet.openstreetmap.org - cc by-sa</h1>
+<p>Licensed under the <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA 2.0</a></p>
+<p>&nbsp;</p>
+""")
index 2a5fdfee16a3b56031fa0bb27b248aa8085bad33..ceb9d9ad532e3316dbb66f1472caff6254397f6f 100644 (file)
@@ -58,6 +58,16 @@ remote_directory node[:planet][:dump][:xml_history_directory] do
   files_mode "755"
 end
 
+remote_directory "/store/planet/cc-by-sa" do
+  source "ccbysa_cgi"
+  owner "www-data"
+  group "planet"
+  mode "775"
+  files_owner "root"
+  files_group "root"
+  files_mode "755"
+end
+
 remote_directory "/store/planet/cc-by-sa/full-experimental" do
   source "ccbysa_history_cgi"
   owner "www-data"