-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.env.sample
58 lines (50 loc) · 1.96 KB
/
.env.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
# Mongo DB
MONGODB_URL=mongodb://127.0.0.1:27017
MONGODB_PORT=27017 # Used only for development purpose with Docker Compose
MONGODB_DBNAME=ban
# Postgres DB
POSTGRES_URL=localhost
POSTGRES_PORT=5432
POSTGRES_ROOT_USER=postgres
POSTGRES_ROOT_PASSWORD=postgres
POSTGRES_DB=base_adresse_nationale
POSTGRES_BAN_USER=ban_plateforme
POSTGRES_BAN_PASSWORD=ban_plateforme
MIGRATION_DATA_FOLDER_PATH=db-migrations/data
# Redis
REDIS_URL=redis://127.0.0.1:6379
REDIS_PORT=6379 # Used only for development purpose with Docker Compose
REDIS_MAXMEMORY=5gb # Max memory
REDIS_MAXMEMORY_POLICY=allkeys-lru # Max memory policy
REDIS_MAPTILES_CACHE_DURATION=3600 # Duration in seconds for map tiles cache
# APIs
# API BAN
BAN_API_URL=https://plateforme.adresse.data.gouv.fr/api
ADMIN_TOKEN= # Used for legacy routes
BAN_API_AUTHORIZED_TOKENS= # Used for new ban-id api routes
PORT=5000
EXPORT_TO_EXPLOITATION_DB_JOB_DELAY=10000 # Time in ms during which an export job is delayed before being processed
# API de dépôt
API_DEPOT_URL=https://plateforme.adresse.data.gouv.fr/api-depot
# API ID-Fix
API_IDFIX_URL=https://plateforme.adresse.data.gouv.fr/api-idfix
API_IDFIX_TOKEN=
# Path to data files
# Relative path from the "root" directory for all the following path variables :
FANTOIR_PATH=data/fantoir.sqlite
GAZETTEER_DB_PATH=data/gazetteer.sqlite
MAJIC_PATH=/data/majic.sqlite
CONTOURS_DATA_PATH=data/communes-50m.sqlite
COMMUNES_LOCAUX_ADRESSES_DATA_PATH=data/communes-locaux-adresses.json
# Others
DEPARTEMENTS= # Comma separated list of departements for dev only
JOB_STATUS_LIMIT_DURATION='90d' # Duration max of job status in database
MAX_CONCURRENT_WORKERS=1
DATAGOUV_API_KEY=
PROXY_URL= # To use only if you are behind a proxy
DISTRICT_TO_SNAPSHOT= # Comma separated list of district to snapshot (used only for dev toolbox)
MATOMO_URL=
MATOMO_SITE_ID=
MATOMO_TOKEN_AUTH=
TRACKING_ENABLED=1 # Set to 0 to disable, 1 to enable
IS_GENERATE_BANID_ON_ASSEMBLY= # Set to true to generate banId on assembly