]> git.openstreetmap.org Git - rails.git/blob - config/example.application.yml
567458c902f5ce7bf011087c33ca6397b6f9be9b
[rails.git] / config / example.application.yml
1 defaults: &defaults
2   # The server protocol and host
3   server_protocol: "http"
4   server_url: "openstreetmap.example.com"
5   # The generator
6   generator: "OpenStreetMap server"
7   copyright_owner: "OpenStreetMap and contributors"
8   attribution_url: "http://www.openstreetmap.org/copyright"
9   license_url: "http://opendatacommons.org/licenses/odbl/1-0/"
10   # Support email address
11   support_email: support@openstreetmap.org
12   # Sender addresses for emails
13   email_from: "OpenStreetMap <support@openstreetmap.org>"
14   email_return_path: "bounces@openstreetmap.org"
15   # API version
16   api_version: "0.6"
17   # Application status - possible values are:
18   #   :online - online and operating normally
19   #   :api_readonly - site online but API in read-only mode
20   #   :api_offline - site online but API offline
21   #   :database_readonly - database and site in read-only mode
22   #   :database_offline - database offline with site in emergency mode
23   #   :gpx_offline - gpx storage offline
24   status: :online
25   # The maximum area you're allowed to request, in square degrees
26   max_request_area: 0.25
27   # Number of GPS trace/trackpoints returned per-page
28   tracepoints_per_page: 5000
29   # Maximum number of nodes that will be returned by the api in a map request
30   max_number_of_nodes: 50000
31   # Maximum number of nodes that can be in a way (checked on save)
32   max_number_of_way_nodes: 2000
33   # The maximum area you're allowed to request notes from, in square degrees
34   max_note_request_area: 25
35   # Zoom level to use for postcode results from the geocoder
36   postcode_zoom: 15
37   # Zoom level to use for geonames results from the geocoder
38   geonames_zoom: 12
39   # Timeout for API calls in seconds
40   api_timeout: 300
41   # Timeout for web pages in seconds
42   web_timeout: 30
43   # Periods (in hours) which are allowed for user blocks
44   user_block_periods: [0, 1, 3, 6, 12, 24, 48, 96]
45   # Rate limit for message sending
46   max_messages_per_hour: 60
47   # Domain for handling message replies
48   #messages_domain: "messages.openstreetmap.org"
49   # Geonames authentication details
50   #geonames_username: ""
51   # Quova authentication details
52   #quova_username: ""
53   #quova_password: ""
54   # Users to show as being nearby
55   nearby_users: 30
56   # Max radius, in km, for nearby users
57   nearby_radius: 50
58   # Spam threshold
59   spam_threshold: 50
60   # Default legale (jurisdiction location) for contributor terms
61   default_legale: GB
62   # Location of GPX traces and images
63   gpx_trace_dir: "/home/osm/traces"
64   gpx_image_dir: "/home/osm/images"
65   # Location of data for attachments
66   attachments_dir: ":rails_root/public/attachments"
67   # Log file to use
68   #log_path: ""
69   # Log file to use for logstash
70   #logstash_path: ""
71   # List of memcache servers to use for caching
72   #memcache_servers: []
73   # Enable legacy OAuth 1.0 support
74   oauth_10_support: true
75   # URL of Nominatim instance to use for geocoding
76   nominatim_url: "//nominatim.openstreetmap.org/"
77   # Default editor
78   default_editor: "id"
79   # OAuth consumer key for Potlatch 2
80   #potlatch2_key: ""
81   # OAuth consumer key for the web site
82   #oauth_key: ""
83   # OAuth consumer key for iD
84   #id_key: ""
85   # Whether to require users to view the CTs before continuing to edit...
86   require_terms_seen: false
87   # Whether to require users to agree to the CTs before editing
88   require_terms_agreed: false
89   # Imagery to return in capabilities as blacklisted
90   imagery_blacklist:
91     # Current Google imagery URLs have google or googleapis in the domain
92     # with a vt or kh endpoint, and x, y and z query parameters
93     - ".*\\.google(apis)?\\..*/(vt|kh)[\\?/].*([xyz]=.*){3}.*"
94     # Blacklist VWorld
95     - "http://xdworld\\.vworld\\.kr:8080/.*"
96   # URL of Overpass instance to use for feature queries
97   overpass_url: "//overpass-api.de/api/interpreter"
98   # Routing endpoints
99   graphhopper_url: "//graphhopper.com/api/1/route"
100   mapquest_directions_url: "//open.mapquestapi.com/directions/v2/route"
101   mapzen_valhalla_url: "//valhalla.mapzen.com/route"
102   osrm_url: "//router.project-osrm.org/route/v1/driving/"
103   # External authentication credentials
104   #google_auth_id: ""
105   #google_auth_secret: ""
106   #google_openid_realm: ""
107   #facebook_auth_id: ""
108   #facebook_auth_secret: ""
109   #windowslive_auth_id: ""
110   #windowslive_auth_secret: ""
111   #github_auth_id: ""
112   #github_auth_secret: ""
113   #wikipedia_auth_id: ""
114   #wikipedia_auth_secret: ""
115   # MapQuest authentication details
116   #mapquest_key: ""
117   # Mapzen authentication details
118   #mapzen_valhalla_key: ""
119   # Thunderforest authentication details
120   #thunderforest_key: ""
121   # Key for generating TOTP tokens
122   #totp_key: ""
123   # URL for reporting Content-Security-Policy violations
124   #csp_report_url: ""
125
126 development:
127   <<: *defaults
128
129 production:
130   <<: *defaults
131
132 test:
133   <<: *defaults
134   # Geonames credentials for testing
135   geonames_username: "dummy"
136   # External authentication credentials for testing
137   google_auth_id: "dummy"
138   google_auth_secret: "dummy"
139   google_openid_realm: "https://www.openstreetmap.org"
140   facebook_auth_id: "dummy"
141   facebook_auth_secret: "dummy"
142   windowslive_auth_id: "dummy"
143   windowslive_auth_secret: "dummy"
144   github_auth_id: "dummy"
145   github_auth_secret: "dummy"
146   wikipedia_auth_id: "dummy"
147   wikipedia_auth_secret: "dummy"