]> git.openstreetmap.org Git - rails.git/blob - config/example.application.yml
Update to iD v2.14.0
[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   # GeoIP database
54   #geoip_database: ""
55   # Users to show as being nearby
56   nearby_users: 30
57   # Max radius, in km, for nearby users
58   nearby_radius: 50
59   # Spam threshold
60   spam_threshold: 50
61   # Default legale (jurisdiction location) for contributor terms
62   default_legale: GB
63   # Use the built-in jobs queue for importing traces
64   # Leave as false if you are using the external high-speed gpx importer
65   # https://github.com/openstreetmap/gpx-import
66   trace_use_job_queue: false
67   # Location of GPX traces and images
68   gpx_trace_dir: "/home/osm/traces"
69   gpx_image_dir: "/home/osm/images"
70   # Location of data for attachments
71   attachments_dir: ":rails_root/public/attachments"
72   # Log file to use
73   #log_path: ""
74   # Log file to use for logstash
75   #logstash_path: ""
76   # List of memcache servers to use for caching
77   #memcache_servers: []
78   # Enable legacy OAuth 1.0 support
79   oauth_10_support: true
80   # URL of Nominatim instance to use for geocoding
81   nominatim_url: "https://nominatim.openstreetmap.org/"
82   # Default editor
83   default_editor: "id"
84   # OAuth consumer key for Potlatch 2
85   #potlatch2_key: ""
86   # OAuth consumer key for the web site
87   #oauth_key: ""
88   # OAuth consumer key for iD
89   #id_key: ""
90   # Imagery to return in capabilities as blacklisted
91   imagery_blacklist:
92     # Current Google imagery URLs have google or googleapis in the domain
93     # with a vt or kh endpoint, and x, y and z query parameters
94     - ".*\\.google(apis)?\\..*/(vt|kh)[\\?/].*([xyz]=.*){3}.*"
95     # Blacklist VWorld
96     - "http://xdworld\\.vworld\\.kr:8080/.*"
97     # Blacklist here
98     - ".*\\.here\\.com[/:].*"
99   # URL of Overpass instance to use for feature queries
100   overpass_url: "https://overpass-api.de/api/interpreter"
101   # Routing endpoints
102   graphhopper_url: "https://graphhopper.com/api/1/route"
103   fossgis_osrm_url: "https://routing.openstreetmap.de/"
104   # External authentication credentials
105   #google_auth_id: ""
106   #google_auth_secret: ""
107   #google_openid_realm: ""
108   #facebook_auth_id: ""
109   #facebook_auth_secret: ""
110   #windowslive_auth_id: ""
111   #windowslive_auth_secret: ""
112   #github_auth_id: ""
113   #github_auth_secret: ""
114   #wikipedia_auth_id: ""
115   #wikipedia_auth_secret: ""
116   # Thunderforest authentication details
117   #thunderforest_key: ""
118   # Key for generating TOTP tokens
119   #totp_key: ""
120   # Enforce Content-Security-Policy
121   csp_enforce: false
122   # URL for reporting Content-Security-Policy violations
123   #csp_report_url: ""
124
125 development:
126   <<: *defaults
127
128 production:
129   <<: *defaults
130
131 test:
132   <<: *defaults
133   # Geonames credentials for testing
134   geonames_username: "dummy"
135   # External authentication credentials for testing
136   google_auth_id: "dummy"
137   google_auth_secret: "dummy"
138   google_openid_realm: "https://www.openstreetmap.org"
139   facebook_auth_id: "dummy"
140   facebook_auth_secret: "dummy"
141   windowslive_auth_id: "dummy"
142   windowslive_auth_secret: "dummy"
143   github_auth_id: "dummy"
144   github_auth_secret: "dummy"
145   wikipedia_auth_id: "dummy"
146   wikipedia_auth_secret: "dummy"