-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.php.template
More file actions
executable file
·70 lines (57 loc) · 2.25 KB
/
Copy pathconfig.php.template
File metadata and controls
executable file
·70 lines (57 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
//Administrator controlled server variables
define("SERVER_NAME","Microcosm");
define("DEBUG_MODE",false);
define("VERSION_VALIDATION",true);
define("LICENSE_HUMAN","TBC");
define("INSTALL_FOLDER_DEPTH",2);
define("PATH_TO_SQLITE_DB", '/var/www/html/microcosm/sqlite/');
set_time_limit(60);
define("BACKEND_DATABASE","sqlite");
#define("BACKEND_DATABASE","mysql"); #Experimental
#define("BACKEND_DATABASE","postgis"); #Experimental
define("MYSQL_DB_NAME","db_map");
define("MYSQL_SERVER","localhost");
define("MYSQL_USER","microcosm");
define("MYSQL_PASSWORD","xU@9N@%SfF6J"); #Keeping this as default is a bad idea
define("POSTGIS_DB_NAME",'db_map');
define("POSTGIS_SERVER",'127.0.0.1');
define("POSTGIS_PORT",5432);
define("POSTGIS_USER",'microcosm');
define("POSTGIS_PASSWORD",'5t35f$^24#5'); #Keeping this as default is a bad idea
define("POSTGIS_PREFIX",'planet_');
define("API_READ_ONLY",false);
define("ENABLE_ANON_EDITS",false);
define("ANON_DISPLAY_NAME","Anonymous");
define("ANON_UID",100);
define("ALLOW_USER_REGISTRATION",true);
define("MIN_PASSWORD_LENGTH",6);
define("MAX_KEY_LEN",255);
define("MAX_VALUE_LEN",255);
define("MAX_USER_PERFS",150);
define("MAX_GPX_FIELD_LENGTH",255);
define("TRACE_PAGE_SIZE",1000);
define("MAX_XAPI_ELEMENTS",10000000);
define("ENABLE_XAPI",false);
define("MAX_WAY_NODES",2000);
define("MAX_CHANGESET_SIZE",50000);
define("MAX_QUERY_AREA",0.25);
define("PROG_ARG_STRING","p:m:g:i:");
$PROG_ARG_LONG = array("big-query","dont-nuke","dont-lock","user:","password:");
//Function to report server capabilities to the client
function GetCapabilities()
{
$out = '<?xml version="1.0" encoding="UTF-8"?>'."\n";
$out = $out. '<osm version="0.6" generator="'.SERVER_NAME.'">';
$out = $out. " <api>\n";
$out = $out. ' <version minimum="0.6" maximum="0.6"/>'."\n";
$out = $out. ' <area maximum="'.MAX_QUERY_AREA.'"/>'."\n";
$out = $out. ' <tracepoints per_page="'.TRACE_PAGE_SIZE.'"/>'."\n";
$out = $out. ' <waynodes maximum="'.MAX_WAY_NODES.'"/>'."\n";
$out = $out. ' <changesets maximum_elements="'.MAX_CHANGESET_SIZE.'"/>'."\n";
$out = $out. ' <timeout seconds="'.ini_get('max_execution_time').'"/>'."\n";
$out = $out. ' </api>'."\n";
$out = $out. '</osm>'."\n";
return array(1,array("Content-Type:text/xml"),$out);
}
?>