]> git.openstreetmap.org Git - rails.git/blob - config/settings.yml
Merge remote-tracking branch 'upstream/pull/6798'
[rails.git] / config / settings.yml
1 # The server protocol and host
2 server_protocol: "http"
3 server_url: "openstreetmap.example.com"
4 # Publisher
5 #publisher_url: ""
6 # The generator
7 generator: "OpenStreetMap server"
8 copyright_owner: "OpenStreetMap and contributors"
9 attribution_url: "http://www.openstreetmap.org/copyright"
10 license_url: "http://opendatacommons.org/licenses/odbl/1-0/"
11 # Support email address
12 support_email: "openstreetmap@example.com"
13 # Sender addresses for emails
14 email_from: "OpenStreetMap <openstreetmap@example.com>"
15 email_return_path: "openstreetmap@example.com"
16 # API version
17 api_version: "0.6"
18 # Application status - possible values are:
19 #   online - online and operating normally
20 #   api_readonly - site online but API in read-only mode
21 #   api_offline - site online but API offline
22 #   database_readonly - database and site in read-only mode
23 #   database_offline - database offline with site in emergency mode
24 #   gpx_offline - gpx storage offline
25 status: "online"
26 # Expected services restoration date added to offline flash messages
27 #status_expected_restore_date: "2024-12-18 12:00:00Z"
28 # Application status announcement url added to offline flash messages
29 #status_announcement_url: "https://en.osm.town/@osm_tech"
30 # The maximum area you're allowed to request, in square degrees
31 max_request_area: 0.25
32 # Number of GPS trace/trackpoints returned per-page
33 tracepoints_per_page: 5000
34 # Default limit on the number of changesets returned by the changeset query api method
35 default_changeset_query_limit: 100
36 # Maximum limit on the number of changesets returned by the changeset query api method
37 max_changeset_query_limit: 100
38 # Default limit on the number of changeset comments returned by the api
39 default_changeset_comment_query_limit: 100
40 # Maximum limit on the number of changesets comments returned by the api
41 max_changeset_comment_query_limit: 10000
42 # Default limit on the number of changeset comments in feeds
43 default_changeset_comments_feed_query_limit: 100
44 # Maximum limit on the number of changesets comments in feeds
45 max_changeset_comments_feed_query_limit: 10000
46 # Maximum number of nodes that will be returned by the api in a map request
47 max_number_of_nodes: 50000
48 # Maximum number of nodes that can be in a way (checked on save)
49 max_number_of_way_nodes: 2000
50 # Maximum number of members that can be in a relation (checked on save)
51 max_number_of_relation_members: 32000
52 # The maximum area you're allowed to request notes from, in square degrees
53 max_note_request_area: 25
54 # Default limit on the number of notes returned by the note search api method
55 default_note_query_limit: 100
56 # Maximum limit on the number of notes returned by the note search api method
57 max_note_query_limit: 10000
58 # Maximum value of open issues counter for moderators, anything equal or greater to this value "n" is shown as "n+"
59 max_issues_count: 99
60 # Maximum number of points in a GPX trace
61 max_trace_size: 1000000
62 # Zoom level to use for postcode results from the geocoder
63 postcode_zoom: 15
64 # Timeout for API calls in seconds
65 api_timeout: 300
66 # Timeout for web pages in seconds
67 web_timeout: 30
68 # Periods (in hours) which are allowed for user blocks
69 user_block_periods: [0, 1, 3, 6, 12, 24, 48, 96, 168, 336, 731, 4383, 8766, 87660]
70 # Account deletion cooldown period (in hours) since last changeset close; null to disable, 0 to make sure there aren't any open changesets when the deletion happens
71 user_account_deletion_delay: null
72 # Rate limit for message sending
73 max_messages_per_hour: 60
74 # Default limit on the number of messages returned by inbox and outbox message api
75 default_message_query_limit: 100
76 # Maximum number of messages returned by inbox and outbox message api
77 max_message_query_limit: 100
78 # Rate limit for following
79 max_follows_per_hour: 60
80 # Rate limit for changeset comments
81 min_changeset_comments_per_hour: 1
82 initial_changeset_comments_per_hour: 6
83 max_changeset_comments_per_hour: 60
84 comments_to_max_changeset_comments: 200
85 moderator_changeset_comments_per_hour: 36000
86 # Rate limit for changes
87 min_changes_per_hour: 100
88 initial_changes_per_hour: 1000
89 max_changes_per_hour: 100000
90 days_to_max_changes: 7
91 importer_changes_per_hour: 1000000
92 moderator_changes_per_hour: 1000000
93 # Size limit for changes
94 min_size_limit: 10000000
95 initial_size_limit: 30000000
96 max_size_limit: 5400000000
97 days_to_max_size_limit: 28
98 importer_size_limit: 5400000000
99 moderator_size_limit: 5400000000
100 # Domain for handling message replies
101 #messages_domain: "messages.openstreetmap.org"
102 # MaxMind GeoIPv2 database
103 #maxmind_database: ""
104 # Users to show as being nearby
105 nearby_users: 30
106 # Max radius, in km, for nearby users
107 nearby_radius: 50
108 # Spam threshold
109 spam_threshold: 50
110 # Delay diary entries from appearing in the feed for this many hours
111 diary_feed_delay: 0
112 # Default legale (jurisdiction location) for contributor terms
113 default_legale: GB
114 # Location of data for attachments
115 attachments_dir: ":rails_root/public/attachments"
116 # Log file to use
117 #log_path: ""
118 # MapTiler API key
119 #maptiler_key: ""
120 # List of memcache servers to use for caching
121 #memcache_servers: []
122 # URL of Nominatim instance to use for geocoding
123 nominatim_url: "https://nominatim.openstreetmap.org/"
124 # Default editor
125 default_editor: "id"
126 # OAuth application for the web site
127 #oauth_application: ""
128 # OAuth application for iD
129 #id_application: ""
130 # Imagery to return in capabilities as blacklisted
131 imagery_blacklist: []
132 # URL of Overpass instance to use for feature queries
133 overpass_url: "https://overpass-api.de/api/interpreter"
134 overpass_credentials: false
135 # Routing endpoints
136 graphhopper_url: "https://graphhopper.com/api/1/route"
137 fossgis_osrm_url: "https://routing.openstreetmap.de/"
138 fossgis_valhalla_url: "https://valhalla1.openstreetmap.de/route"
139 # Endpoints for Wikimedia integration
140 wikidata_api_url: "https://www.wikidata.org/w/api.php"
141 wikimedia_commons_url: "https://commons.wikimedia.org/wiki/"
142 # URL to donation form
143 donation_url: "https://supporting.openstreetmap.org/donate/"
144 # Linkification rules
145 linkify:
146   detection_rules:
147     - patterns:
148       - "node/(?<id>\\d+)"
149       - "node (?<id>\\d{5,})"
150       - "n ?(?<id>\\d{5,})"
151       path_template: "node/\\k<id>"
152     - patterns:
153       - "way/(?<id>\\d+)"
154       - "way (?<id>\\d{5,})"
155       - "w ?(?<id>\\d{5,})"
156       path_template: "way/\\k<id>"
157     - patterns:
158       - "relation/(?<id>\\d+)"
159       - "relation (?<id>\\d{5,})"
160       - "r ?(?<id>\\d{5,})"
161       path_template: "relation/\\k<id>"
162     - patterns:
163       - "changeset/(?<id>\\d+)"
164       - "changeset (?<id>\\d{5,})"
165       - "cs ?(?<id>\\d{5,})"
166       path_template: "changeset/\\k<id>"
167     - patterns:
168       - "note/(?<id>\\d+)"
169       - "note (?<id>\\d{5,})"
170       path_template: "note/\\k<id>"
171     - patterns:
172       - "user/(?<username>\\S+)"
173       - "@(?<username>\\S+)"
174       path_template: "user/\\k<username>"
175     - patterns:
176       - "(?<key>[-+,.:;'%()\\p{Word}]+)=\\*"
177       path_template: "wiki/Key:\\k<key>"
178       host: "https://wiki.openstreetmap.org"
179     - patterns:
180       - "(?<key>[-+,.:;'%()\\p{Word}]+)=(?<value>[-+,.:;'%()/\\p{Word}]+)"
181       path_template: "wiki/Tag:\\k<key>=\\k<value>"
182       host: "https://wiki.openstreetmap.org"
183   display_rules:
184     - pattern: "osm\\.org/user/"
185       replacement: "@"
186     - pattern: "osm\\.org/(?<type>node|way|relation|changeset|note)/"
187       replacement: "\\k<type>/"
188     - pattern: "osm\\.wiki/Key:(?<key>[-+,.:;'%()\\p{Word}]+)"
189       replacement: "\\k<key>=*"
190     - pattern: "osm\\.wiki/Tag:(?<key>[-+,.:;'%()\\p{Word}]+)(?:=|%3D)(?<value>[-+,.:;'%()/\\p{Word}]+)"
191       replacement: "\\k<key>=\\k<value>"
192   normalisation_rules:
193     - hosts: ["www.openstreetmap.org", "www.osm.org", "www.openstreetmap.com", "openstreetmap.org", "osm.org", "openstreetmap.com"]
194       host_replacement: "osm.org"
195     - hosts : ["wiki.openstreetmap.org", "wiki.osm.org", "wiki.openstreetmap.com", "wiki.openstreetmaps.org", "osm.wiki", "www.osm.wiki", "wiki.osm.wiki"]
196       host_replacement: "osm.wiki"
197       optional_path_prefix: "^/wiki(?=/[A-Z])"
198 # External authentication credentials
199 #google_auth_id: ""
200 #google_auth_secret: ""
201 #google_openid_realm: ""
202 #facebook_auth_id: ""
203 #facebook_auth_secret: ""
204 #github_auth_id: ""
205 #github_auth_secret: ""
206 #microsoft_auth_id: ""
207 #microsoft_auth_secret: ""
208 #wikipedia_auth_id: ""
209 #wikipedia_auth_secret: ""
210 #apple_auth_id: ""
211 #apple_team_id: ""
212 #apple_key_id: ""
213 #apple_private_key: ""
214 # Thunderforest authentication details
215 #thunderforest_key: ""
216 # Tracestrack authentication details
217 #tracestrack_key: ""
218 # Key for generating TOTP tokens
219 #totp_key: ""
220 # Enforce Content-Security-Policy
221 csp_enforce: false
222 # URL for reporting Content-Security-Policy violations
223 #csp_report_url: ""
224 # Storage services to use in production mode
225 avatar_storage: "local"
226 trace_file_storage: "local"
227 trace_image_storage: "local"
228 trace_icon_storage: "local"
229 # Root URL for storage services
230 # avatar_storage_url:
231 # trace_image_storage_url:
232 # trace_icon_storage_url:
233 # URL for tile CDN
234 #tile_cdn_url: ""
235 # SMTP settings for outbound mail
236 smtp_address: "localhost"
237 smtp_port: 25
238 smtp_domain: "localhost"
239 smtp_enable_starttls_auto: true
240 smtp_tls_verify_mode: "none"
241 smtp_authentication: null
242 smtp_user_name: null
243 smtp_password: null
244 # Matomo settings for analytics
245 #matomo:
246 # Signup rate limits
247 #signup_ip_per_day:
248 #signup_ip_max_burst:
249 #signup_email_per_day:
250 #signup_email_max_burst:
251 # Private key for signing id_tokens
252 #doorkeeper_signing_key: |
253 #  -----BEGIN PRIVATE KEY-----
254 #  ...
255 #  -----END PRIVATE KEY-----