-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env.local.template
260 lines (207 loc) · 8.98 KB
/
.env.local.template
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
# For local development, copy this file to env.local
# Whenever changes to the env variables are made, add them here and commit in the .env.local.template file
# Variables for both front-end and back-end.
# The variables are available through the define(...) (vite.config.ts) functionality in the Front-end
# In BFF the values are available through process.env.
MA_APP_MODE=development # development | unittest | production
# Set by the build server, passed in pipeline
MA_BUILD_ID='-1'
# The main domain of the various OTAP servers. e.g acc.mijn.amsterdam.nl, test.mijn.amsterdam.nl, mijn.amsterdam.nl
MA_FRONTEND_URL=http://localhost:3000
# The last commit deployed in the build
MA_GIT_SHA='-1'
# The server environment Development Test Acceptance Production
MA_OTAP_ENV=development
# Used for local development. The user identifier (bsn, email, kvk). This values is used to query the remote api's.
# Can be used only if no MA_TEST_ACCOUNTS are defined.
MA_PROFILE_DEV_ID=''
# For Test environment a list of username=$userid,username2=$userid2 etc.
MA_TEST_ACCOUNTS=''
MA_TEST_ACCOUNTS_EH=''
################################################
################################################
# Debugging options
################################################
################################################
# Set to 1 to enable BFF Debug information. Enables log-that-http to debug outgoing requests.
DEBUG=0
# Logs response data from outgoing requests/incoming responses before any transformation.
# A comma separated list of keywords / pathsegments can be used to log specific requests. For example: zorgned/aanvragen,gpass
DEBUG_RESPONSE_DATA=
# Log-that-http specific settings
LOG_THAT_HTTP_HEADERS=false
LOG_THAT_HTTP_BODY=false
################################################
################################################
# Referenced by import.meta in the front-end only. These variables are BUILD-TIME variables
# which means they have to be set when the npm run build command is executed.
################################################
################################################
# The BFF api base url.
REACT_APP_BFF_API_URL=http://localhost:5000/api/v1
# The account id for identifying us at the analytics server (PwikiPro)
REACT_APP_ANALYTICS_ID=''
# (Not for Development)
#SSO TAP Urls // the urls you can find / add in "https://dev.azure.com/CloudCompetenceCenter/MijnAmsterdam/_git/mijn-amsterdam-infra?path=/pipelines/jobs/apps/btd-frontend-variables.yaml"
REACT_APP_SSO_URL_BELASTINGEN=$BFF_MOCK_API_BASE_URL/sso/portaal/belastingen
REACT_APP_SSO_URL_BELASTINGEN_ZAKELIJK=$BFF_MOCK_API_BASE_URL/sso/portaal/belastingen
REACT_APP_SSO_URL_SUBSIDIES=$BFF_MOCK_API_BASE_URL/sso/portaal/subsidies
REACT_APP_SSO_URL_MIJNERFPACHT=$BFF_MOCK_API_BASE_URL/sso/portaal/mijnerfpacht
REACT_APP_SSO_URL_MIJNERFPACHT_ZAKELIJK=$BFF_MOCK_API_BASE_URL/sso/portaal/mijnerfpacht
REACT_APP_SSO_URL_ERFPACHT_ZAKELIJK=$BFF_MOCK_API_BASE_URL/sso/portaal/erfpachtzakelijk
REACT_APP_SSO_URL_MILIEUZONE=$BFF_MOCK_API_BASE_URL/sso/portaal/milieuzone
REACT_APP_SSO_URL_SVWI=$BFF_MOCK_API_BASE_URL/sso/portaal/svwi
################################################
################################################
# BFF Variables referenced through process.env.
################################################
################################################
# Base url of api
BFF_API_BASE_URL=http://localhost:5000/api/v1
# Set of development TEST keys
DEV_API_KEY='1234567890abcdefghijkl'
DEV_ENC_KEY_256='FaKeKeYtT9jQBEGYCvS?H2rEh3hukwDz'
DEV_ENC_KEY_128='ThIsIsFaKe+36v9y'
# Api key for data.amsterdam api's
BFF_DATA_AMSTERDAM_API_KEY=$DEV_API_KEY
# Encryption key for general purposes
BFF_GENERAL_ENCRYPTION_KEY=$DEV_ENC_KEY_256
# API Keys for external consumers
BFF_EXTERNAL_CONSUMER_API_KEY_1='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
BFF_EXTERNAL_CONSUMER_API_KEY_2='yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
# The host+port of the BFF server
BFF_HOST=localhost
BFF_PORT=5000
# If set to false every outgoing http call will be made without cache check, do not use in Prod because things will slow down immensely
BFF_REQUEST_CACHE_ENABLED=true
# Monitoring settings
APPLICATIONINSIGHTS_CONNECTION_STRING=''
REACT_APP_MONITORING_CONNECTION_STRING=''
# ( A+P ) Mijn Amsterdam cert/key identification
BFF_SERVER_CLIENT_CERT=''
BFF_SERVER_CLIENT_KEY=''
# DB Enabled?
BFF_DB_ENABLED=false
# PG Database
PGHOST=
PGUSER=
PGPORT=5432
PGDATABASE=postgres
PGPASSWORD=
BFF_LOGIN_COUNT_TABLE=login_count
BFF_LOGIN_SESSION_BLACKLIST_TABLE=session_blacklist
# Variables for the login count admin
BFF_LOGIN_COUNT_ADMIN_PW=welkom123
BFF_LOGIN_COUNT_SALT=$DEV_ENC_KEY_256
# OIDC related variables
BFF_OIDC_CLIENT_ID_DIGID=mijnamsterdam
BFF_OIDC_CLIENT_ID_EHERKENNING=mijnamsterdam1
BFF_OIDC_CLIENT_ID_YIVI=mijnamsterdam2
BFF_OIDC_ISSUER_BASE_URL=$BFF_API_BASE_URL
BFF_OIDC_SECRET=xxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxx
BFF_OIDC_BASE_URL=http://localhost:5000
BFF_OIDC_BASE_PATH=/api/v1/auth
BFF_OIDC_CALLBACK=/callback
BFF_OIDC_LOGIN=/login
BFF_OIDC_LOGOUT=/logout
BFF_OIDC_YIVI_POST_LOGIN_REDIRECT=$MA_FRONTEND_URL
BFF_OIDC_YIVI_POST_LOGOUT_REDIRECT=$MA_FRONTEND_URL/inloggen-met-yivi
# Shared OIDC secret
BFF_OIDC_SECRET=xxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxx
BFF_OIDC_USERINFO_ENDPOINT=''
################################################
################################################
# Remote API Config variables
################################################
################################################
# Build up URL to mock server
BFF_MOCK_API_ORIGIN=http://localhost:3100
BFF_MOCK_API_BASE_PATH=mocks-api
BFF_MOCK_API_BASE_URL=$BFF_MOCK_API_ORIGIN/$BFF_MOCK_API_BASE_PATH
# AFIS
BFF_AFIS_API_BASE_URL=$BFF_MOCK_API_BASE_URL/afis/RESTAdapter
BFF_AFIS_CLIENT_ID=mijnamsterdam
BFF_AFIS_CLIENT_SECRET=$DEV_ENC_KEY_256
BFF_ENABLEU_AFIS_API_KEY=$DEV_API_KEY
BFF_AFIS_DIRECT_CONNECT_ENABLED=false
# Belastingen
BFF_BELASTINGEN_BEARER_TOKEN=$DEV_ENC_KEY_256
# (Only used in ACC because of user id incompatibility in remote acc system)
BFF_BELASTINGEN_BSN_TRANSLATIONS=''
BFF_BELASTINGEN_ENDPOINT=$BFF_MOCK_API_BASE_URL/belastingen
# Bezwaren
BFF_BEZWAREN_API=$BFF_MOCK_API_BASE_URL/bezwaren
BFF_BEZWAREN_APIKEY=$DEV_ENC_KEY_256
BFF_BEZWAREN_EMPLOYEE_ID=1
BFF_BEZWAREN_TOKEN_KEY=$DEV_ENC_KEY_256
BFF_BEZWAREN_USER=user1
# Milieuzone
BFF_CLEOPATRA_API_ENDPOINT=$BFF_MOCK_API_BASE_URL/milieuzone
BFF_CLEOPATRA_PUBLIC_KEY_CERT=''
# Klachten + AVG
BFF_ENABLEU_2_SMILE_ENDPOINT=$BFF_MOCK_API_BASE_URL/smile
BFF_SMILE_PASSWORD=smile1
BFF_SMILE_USERNAME=smile1
# Krefia (Koppel api)
BFF_KREFIA_API_BASE_URL=$BFF_MOCK_API_BASE_URL/krefia-koppel-api
# Bodem/Loodmetingen
BFF_LOOD_API_URL=$BFF_MOCK_API_BASE_URL/loodmetingen
BFF_LOOD_OAUTH=$BFF_MOCK_API_BASE_URL/loodmetingen/auth
BFF_LOOD_USERNAME=lood
BFF_LOOD_PWD=welkom123
BFF_LOOD_TENANT=tenant123
# Landelijk Vakantie Verhuur registratienummer
BFF_LVV_API_KEY=$DEV_API_KEY
BFF_LVV_API_URL=$BFF_MOCK_API_BASE_URL/vakantieverhuur
# MijnErfpacht portaal
BFF_MIJN_ERFPACHT_API_KEY=$DEV_API_KEY
BFF_MIJN_ERFPACHT_API_URL=$BFF_MOCK_API_BASE_URL/erfpacht
BFF_MIJN_ERFPACHT_ENCRYPTION_KEY_V2=$DEV_ENC_KEY_128
# Erfpacht v2
BFF_ERFPACHT_API_URL=$BFF_MOCK_API_BASE_URL/erfpachtv2
BFF_ENABLEU_ERFPACHT_API_KEY=$DEV_API_KEY
# MKS (Makelaarsuite) BRP + HR data
BFF_MKS_API_BASE_URL=$BFF_MOCK_API_BASE_URL/mks-koppel-api
# Parkeren
BFF_PARKEREN_FRONTOFFICE_API_BASE_URL=$BFF_MOCK_API_BASE_URL/parkeren-frontoffice
BFF_PARKEREN_API_BASE_URL=$BFF_MOCK_API_BASE_URL/parkeren-api
BFF_PARKEREN_API_TOKEN=$DEV_API_KEY
BFF_PARKEREN_PORTAAL_URL=$BFF_MOCK_API_BASE_URL/sso/portaal/parkeren
# Subsidies
BFF_SISA_API_ENDPOINT=$BFF_MOCK_API_BASE_URL/subsidies/ # trailing slash required.
BFF_SISA_CLIENT_ID=client1
BFF_SISA_CLIENT_SECRET=$DEV_ENC_KEY_256
BFF_SISA_ENCRYPTION_KEY=$DEV_ENC_KEY_256
# Vergunningen (decos) Koppel api
BFF_VERGUNNINGEN_API_BASE_URL=$BFF_MOCK_API_BASE_URL/vergunningen-koppel-api
# Vergunningen V2
BFF_DECOS_API_BASE_URL=$BFF_MOCK_API_BASE_URL/decos
BFF_DECOS_API_USERNAME=username
BFF_DECOS_API_PASSWORD=p@55word
BFF_DECOS_API_ADRES_BOEKEN_BSN='bookKeyA';
BFF_DECOS_API_ADRES_BOEKEN_KVK='bookKey1';
# Zorgned WMO + AV
BFF_ZORGNED_AV_CERT=''
BFF_ZORGNED_AV_KEY=''
BFF_ZORGNED_API_BASE_URL=$BFF_MOCK_API_BASE_URL/zorgned
BFF_ZORGNED_API_TOKEN=$DEV_API_KEY
# Stadspas
BFF_GPASS_API_BASE_URL=$BFF_MOCK_API_BASE_URL/gpass
BFF_GPASS_API_TOKEN=$DEV_API_KEY
# WPI Koppelapi
BFF_WPI_API_BASE_URL=$BFF_MOCK_API_BASE_URL/wpi-koppel-api
# WPI Portaal
BFF_SVWI_API_BASE_URL=$BFF_MOCK_API_BASE_URL/svwi
# B&B Vergunningen
BFF_POWERBROWSER_API_KEY=$DEV_API_KEY
BFF_POWERBROWSER_TOKEN_API_KEY=$DEV_API_KEY
BFF_POWERBROWSER_API_URL=$BFF_MOCK_API_BASE_URL/powerbrowser
# CMS Maintenance notifications
BFF_CMS_BASE_URL=$BFF_MOCK_API_BASE_URL/cms
# Amsterdam APP
BFF_AMSAPP_ADMINISTRATIENUMMER_DELIVERY_ENDPOINT=$BFF_MOCK_API_BASE_URL/amsapp/session/credentials
BFF_AMSAPP_API_KEY=$DEV_API_KEY
BFF_AMSAPP_NONCE='123456789123456789123456'
# SalesForce
BFF_SALESFORCE_API_BASE_URL=$BFF_MOCK_API_BASE_URL/salesforce