1 # The server protocol and host
2 server_protocol: "http"
3 server_url: "openstreetmap.example.com"
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"
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
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 # Traces/tracks feature - set to true to disable entirely
33 #traces_disabled: false
34 # Number of GPS trace/trackpoints returned per-page
35 tracepoints_per_page: 5000
36 # Default limit on the number of changesets returned by the changeset query api method
37 default_changeset_query_limit: 100
38 # Maximum limit on the number of changesets returned by the changeset query api method
39 max_changeset_query_limit: 100
40 # Default limit on the number of changeset comments returned by the api
41 default_changeset_comment_query_limit: 100
42 # Maximum limit on the number of changesets comments returned by the api
43 max_changeset_comment_query_limit: 10000
44 # Default limit on the number of changeset comments in feeds
45 default_changeset_comments_feed_query_limit: 100
46 # Maximum limit on the number of changesets comments in feeds
47 max_changeset_comments_feed_query_limit: 10000
48 # Maximum number of nodes that will be returned by the api in a map request
49 max_number_of_nodes: 50000
50 # Maximum number of nodes that can be in a way (checked on save)
51 max_number_of_way_nodes: 2000
52 # Maximum number of members that can be in a relation (checked on save)
53 max_number_of_relation_members: 32000
54 # The maximum area you're allowed to request notes from, in square degrees
55 max_note_request_area: 25
56 # Default limit on the number of notes returned by the note search api method
57 default_note_query_limit: 100
58 # Maximum limit on the number of notes returned by the note search api method
59 max_note_query_limit: 10000
60 # Maximum value of open issues counter for moderators, anything equal or greater to this value "n" is shown as "n+"
62 # Maximum number of points in a GPX trace
63 max_trace_size: 1000000
64 # Zoom level to use for postcode results from the geocoder
66 # Timeout for API calls in seconds
68 # Timeout for web pages in seconds
70 # Periods (in hours) which are allowed for user blocks
71 user_block_periods: [0, 1, 3, 6, 12, 24, 48, 96, 168, 336, 731, 4383, 8766, 87660]
72 # 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
73 user_account_deletion_delay: null
74 # Rate limit for message sending
75 max_messages_per_hour: 60
76 # Default limit on the number of messages returned by inbox and outbox message api
77 default_message_query_limit: 100
78 # Maximum number of messages returned by inbox and outbox message api
79 max_message_query_limit: 100
80 # Rate limit for following
81 max_follows_per_hour: 60
82 # Rate limit for changeset comments
83 min_changeset_comments_per_hour: 1
84 initial_changeset_comments_per_hour: 6
85 max_changeset_comments_per_hour: 60
86 comments_to_max_changeset_comments: 200
87 moderator_changeset_comments_per_hour: 36000
88 # Rate limit for changes
89 min_changes_per_hour: 100
90 initial_changes_per_hour: 1000
91 max_changes_per_hour: 100000
92 days_to_max_changes: 7
93 importer_changes_per_hour: 1000000
94 moderator_changes_per_hour: 1000000
95 # Size limit for changes
96 min_size_limit: 10000000
97 initial_size_limit: 30000000
98 max_size_limit: 5400000000
99 days_to_max_size_limit: 28
100 importer_size_limit: 5400000000
101 moderator_size_limit: 5400000000
102 # Domain for handling message replies
103 #messages_domain: "messages.openstreetmap.org"
104 # MaxMind GeoIPv2 database
105 #maxmind_database: ""
106 # Users to show as being nearby
108 # Max radius, in km, for nearby users
112 # Delay diary entries from appearing in the feed for this many hours
114 # Default legale (jurisdiction location) for contributor terms
116 # Location of data for attachments
117 attachments_dir: ":rails_root/public/attachments"
122 # List of memcache servers to use for caching
123 #memcache_servers: []
124 # URL of Nominatim instance to use for geocoding
125 nominatim_url: "https://nominatim.openstreetmap.org/"
128 # OAuth application for the web site
129 #oauth_application: ""
130 # OAuth application for iD
132 # Imagery to return in capabilities as blacklisted
133 imagery_blacklist: []
134 # URL of Overpass instance to use for feature queries
135 overpass_url: "https://overpass-api.de/api/interpreter"
136 overpass_credentials: false
138 graphhopper_url: "https://graphhopper.com/api/1/route"
139 fossgis_osrm_url: "https://routing.openstreetmap.de/"
140 fossgis_valhalla_url: "https://valhalla1.openstreetmap.de/route"
141 # Endpoints for Wikimedia integration
142 wikidata_api_url: "https://www.wikidata.org/w/api.php"
143 wikimedia_commons_url: "https://commons.wikimedia.org/wiki/"
144 # URL to donation form
145 donation_url: "https://supporting.openstreetmap.org/donate/"
146 # Linkification rules
151 - "node (?<id>\\d{5,})"
153 path_template: "node/\\k<id>"
156 - "way (?<id>\\d{5,})"
158 path_template: "way/\\k<id>"
160 - "relation/(?<id>\\d+)"
161 - "relation (?<id>\\d{5,})"
163 path_template: "relation/\\k<id>"
165 - "changeset/(?<id>\\d+)"
166 - "changeset (?<id>\\d{5,})"
168 path_template: "changeset/\\k<id>"
171 - "note (?<id>\\d{5,})"
172 path_template: "note/\\k<id>"
174 - "user/(?<username>\\S+)"
175 - "@(?<username>\\S+)"
176 path_template: "user/\\k<username>"
178 - "(?<key>[-+,.:;'%()\\p{Word}]+)=\\*"
179 path_template: "wiki/Key:\\k<key>"
180 host: "https://wiki.openstreetmap.org"
182 - "(?<key>[-+,.:;'%()\\p{Word}]+)=(?<value>[-+,.:;'%()/\\p{Word}]+)"
183 path_template: "wiki/Tag:\\k<key>=\\k<value>"
184 host: "https://wiki.openstreetmap.org"
186 - pattern: "osm\\.org/user/"
188 - pattern: "osm\\.org/(?<type>node|way|relation|changeset|note)/"
189 replacement: "\\k<type>/"
190 - pattern: "osm\\.wiki/Key:(?<key>[-+,.:;'%()\\p{Word}]+)"
191 replacement: "\\k<key>=*"
192 - pattern: "osm\\.wiki/Tag:(?<key>[-+,.:;'%()\\p{Word}]+)(?:=|%3D)(?<value>[-+,.:;'%()/\\p{Word}]+)"
193 replacement: "\\k<key>=\\k<value>"
195 - hosts: ["www.openstreetmap.org", "www.osm.org", "www.openstreetmap.com", "openstreetmap.org", "osm.org", "openstreetmap.com"]
196 host_replacement: "osm.org"
197 - hosts : ["wiki.openstreetmap.org", "wiki.osm.org", "wiki.openstreetmap.com", "wiki.openstreetmaps.org", "osm.wiki", "www.osm.wiki", "wiki.osm.wiki"]
198 host_replacement: "osm.wiki"
199 optional_path_prefix: "^/wiki(?=/[A-Z])"
200 # External authentication credentials
202 #google_auth_secret: ""
203 #google_openid_realm: ""
204 #facebook_auth_id: ""
205 #facebook_auth_secret: ""
207 #github_auth_secret: ""
208 #microsoft_auth_id: ""
209 #microsoft_auth_secret: ""
210 #wikipedia_auth_id: ""
211 #wikipedia_auth_secret: ""
215 #apple_private_key: ""
216 # Thunderforest authentication details
217 #thunderforest_key: ""
218 # Tracestrack authentication details
220 # Key for generating TOTP tokens
223 # Enforce Content-Security-Policy
225 # URL for reporting Content-Security-Policy violations
227 # Storage services to use in production mode
228 avatar_storage: "local"
229 trace_file_storage: "local"
230 trace_image_storage: "local"
231 trace_icon_storage: "local"
232 # Root URL for storage services
233 # avatar_storage_url:
234 # trace_image_storage_url:
235 # trace_icon_storage_url:
238 # SMTP settings for outbound mail
239 smtp_address: "localhost"
241 smtp_domain: "localhost"
242 smtp_enable_starttls_auto: true
243 smtp_tls_verify_mode: "none"
244 smtp_authentication: null
247 # Matomo settings for analytics
251 #signup_ip_max_burst:
252 #signup_email_per_day:
253 #signup_email_max_burst:
254 # Private key for signing id_tokens
255 #doorkeeper_signing_key: |
256 # -----BEGIN PRIVATE KEY-----
258 # -----END PRIVATE KEY-----
259 # Credentials for optional cloudflare turnstile widget
261 #turnstile_secret_key: