-
Notifications
You must be signed in to change notification settings - Fork 34
/
config.txt.sample
72 lines (66 loc) · 2.82 KB
/
config.txt.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# This is a sample configuration file for raw-data API service with
# currently supported parameters. The file is a Windows INI style text
# file. Lines starting with either `#` or `;` are comments.
# Database connection configuration section
# Use this section to specify connection configuration for PostgreSQL
# database. The values in this section can also be supplied by
# environment variables with keys matching those in the block below.
[DB]
PGHOST=postgresql.example.net
PGUSER=rawdatadba
PGPASSWORD=_superSecureS3cretString!_
PGDATABASE=rawdata
;PGPORT=5432
# OAuth2 app client configuration section
# When you create an OAuth2 application on OpenStreetMap portal, place
# the returned values here. Currently raw-data API only uses read_prefs
# for scope. Callback / Redirect URI should be set when the OAuth2 app
# is created on OSM portal. App secret key is a high-entropy string.
[OAUTH]
OSM_CLIENT_ID=0yhbzr7-e0F-DGgyxXOyq2Y4d_sYLfdflMzVvLIfRtxHg
OSM_CLIENT_SECRET= KI59u4PLCQFAd8Vo2oewaHNmlf2EfTcfGgwWd2VCsdtk8
;OSM_URL=https://www.openstreetmap.org
;OSM_PERMISSION_SCOPE=read_prefs
LOGIN_REDIRECT_URI=http://raw-data-test.example.net:8000/v1/auth/callback/
APP_SECRET_KEY=Nnhn4_DO0FJhKLxXkSMfk0iJRpFO4JRxlt07z7Vgp5E
# API configuration section
# Rate-limiter storage URI takes a valid redis connection string as
# input; follows the rediss IANA scheme: (link below)
# https://www.iana.org/assignments/uri-schemes/prov/rediss
#
# Defaults are commented out. Refer to documentation for more
# information on these settings.
[API_CONFIG]
LOG_LEVEL=debug
RATE_LIMITER_STORAGE_URI=redis://redis:6379
;RATE_LIMIT_PER_MIN=20
;EXPORT_MAX_AREA_SQKM=100000
;INDEX_THRESHOLD=5000
ALLOW_BIND_ZIP_FILTER=true
;USE_CONNECTION_POOLING=false
;EXPORT_PATH=exports
# Celery / broker configuration section
# This section takes valid redis connection strings as input.
# The connection strings in the rediss IANA scheme: (link below)
# https://www.iana.org/assignments/uri-schemes/prov/rediss
#
# The examples below show one connection string without a username and
# one with.
[CELERY]
CELERY_BROKER_URL=rediss://:[email protected]:6380/0?ssl_cert_reqs=required
CELERY_RESULT_BACKEND=rediss://someuser:[email protected]:6380/0?ssl_cert_reqs=required
# Upload configuration
# The only supported methods for upload are s3 and disk. If the chosen
# method is S3, then bucket name and AWS credentials must be supplied.
[EXPORT_UPLOAD]
FILE_UPLOAD_METHOD=disk
;BUCKET_NAME=
;AWS_ACCESS_KEY_ID=
;AWS_SECRET_ACCESS_KEY=
# Sentry configuration
# Sentry Data Source Name can be obtained from project settings
# The error sample rate is a number between 0 and 1 representing a
# percentage. 0.25 is 25% and 0.66 is 66%. 1 is 100%
[SENTRY]
SENTRY_DSN=https://[email protected]/0987654
SENTRY_RATE=0.25