-
Notifications
You must be signed in to change notification settings - Fork 14
/
.env.example
99 lines (75 loc) · 3.4 KB
/
.env.example
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
DEBUG=True # False for prod
HOST=localhost
# False in dev
SSL=1
TEST="Everything is awesome"
APP_SECRET=this-is-a-very-secret-value
# Replace `<user>` and `<password>` on password-protected DB
DATABASE_URL=postgres://<user>:<password>@localhost:5432/aidants_connect
# These envars come from the public FranceConnect documentation : https://partenaires.franceconnect.gouv.fr/fcp/fournisseur-service
FC_AS_FS_BASE_URL=https://fcp.integ01.dev-franceconnect.fr/api/v1
FC_AS_FS_ID=211286433e39cce01db448d80181bdfd005554b19cd51b3fe7943f6b3b86ab6e
FC_AS_FS_SECRET=2791a731e6a59f56b6b4dd0d08c9b1f593b5f3658b9fd731cb24248e2669af4b
FC_AS_FS_CALLBACK_URL=http://localhost:3000
FC_AS_FS_TEST_PORT=3000
FC_AS_FI_ID=<insert_your_data>
FC_AS_FI_CALLBACK_URL=https://fcp.integ01.dev-franceconnect.fr/oidc_callback
FC_AS_FI_CALLBACK_URL_V2=https://fcp-low.integ01.dev-franceconnect.fr/api/v2/oidc-callback
FC_AS_FI_LOGOUT_REDIRECT_URI=http://localhost:3000
FC_AS_FI_LOGOUT_REDIRECT_URI_V2=http://localhost:3000
FC_AS_FI_HASH_SALT=""
HASH_FC_AS_FI_SECRET=<insert_your_data>
# SENTRY_DSN=https://....ingest.sentry.io/...
# SENTRY_ENV=development
FC_CONNECTION_AGE=300 # 5 minutes, in seconds
# Number of minutes of inactivity before checking
ACTIVITY_CHECK_THRESHOLD=15
# If you are debugging, and want to use the file based email backend
EMAIL_BACKEND=aidants_connect.email_backend.DebugEmailBackend
# If you want to use the default SMTP backend
# EMAIL_HOST=django.core.mail.backends.filebased.EmailBackend
# EMAIL_PORT=<insert_your_data>
# EMAIL_HOST_USER=<insert_your_data>
# EMAIL_HOST_PASSWORD=<insert_your_data>
# if you use the specific backend which forces sender address & adds extra headers
# EMAIL_BACKEND=aidants_connect_web.mail.ForceSpecificSenderBackend
# EMAIL_SENDER=environment@sub.domain.fr
# EMAIL_EXTRA_HEADERS='{"X-Account-ID":1234}'
# The email address the connection email is sent from
MAGICAUTH_FROM_EMAIL=test@domain.user
ADMIN_URL=adm/
ADMIN_NAME="mon nom"
ADMIN_EMAIL=monnom@domain.user
ATTESTATION_SALT = ""
# Sessions
SESSION_COOKIE_AGE=86400 # 24 hours, in seconds
# Security measures
SESSION_COOKIE_SECURE=False # True in prod
CSRF_COOKIE_SECURE=False # True in prod
# Be careful with these
SECURE_HSTS_SECONDS=0 # should be more than 31556952 (one year) in prod
SECURE_SSL_REDIRECT=False # True in prod
# Functional tests behaviour
HEADLESS_FUNCTIONAL_TESTS = True
BYPASS_FIRST_LIVESERVER_CONNECTION = False
# COVID-19 Changes
ETAT_URGENCE_2020_LAST_DAY="23/05/2020 23:59:59 +01:00"
# Datapass information
DATAPASS_KEY = <insert_your_data>
DATAPASS_FROM_EMAIL = <insert_your_data>@<insert_your_data>.fr
DATAPASS_TO_EMAIL = <insert_your_data>@<insert_your_data>.fr
# Default region for telephone numbers in form fields.
# When adding a telephone number from outside this region number must be prefixed with
# international calling code, e.g. +33 for France, +594 for French Guiana
# or +262 for La Réunion. Otherwise, the phone number can be local
PHONENUMBER_DEFAULT_REGION=FR
# Disables searching on gouv addres API
GOUV_ADDRESS_SEARCH_API_DISABLED=1
# https://stats.data.gouv.fr/ in prod
MATOMO_INSTANCE_URL=
# 98 in prod
MATOMO_INSTANCE_SITE_ID=
SANDBOX_URL="https://sandbox.aidantsconnect.beta.gouv.fr"
WEBINAIRE_SUBFORM_URL=https://forms.sbc08.com/62bd636aec51457dee5c1167/iDPz-wQRRryM0FZseYXtpA/CYwNkaKIT0iJvW7fkcgmlA/form.html
SANDBOX_API_URL="https://sandbox.aidantsconnect.beta.gouv.fr/create_aidant"
SANDBOX_API_TOKEN="TOKEN"