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