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