name = site[:name]
directory = site[:directory] || "/srv/#{name}"
description = site[:description]
+ about = site[:about]
icon = site[:icon]
contact = site[:contact]
settings["instance"]["url"] = "http://#{name}/"
settings["instance"]["description"] = description
+ settings["instance"]["about"] = about
settings["instance"]["icon"] = "/img/logo/#{icon}.png"
settings["instance"]["contact"] = contact
settings["logging"]["directory"] = "/var/log/taginfo/#{name}"
{
:name => "taginfo.openstreetmap.org",
:description => "This is the main taginfo site. It contains OSM data for the whole planet and is updated daily.",
+ :about => "<p>This site is run by the <a href='http://www.osmfoundation.org/'>OSMF</a> and maintained by <a href='//www.openstreetmap.org/user/Jochen%20Topf'>Jochen Topf</a> and the <a href='//wiki.openstreetmap.org/wiki/System_Administrators'>Sysadmin team</a>.</p><p>There isn't just one taginfo site, there are several. The is the main site, but several <a class='extlink' href='//wiki.openstreetmap.org/wiki/Taginfo/Sites'>other taginfo sites</a> are operated by different people.</p>",
:icon => "world",
:contact => "Jochen Topf <jochen@remote.org>"
}