Skip to content

Commit 448d864

Browse files
committed
Setup django-setup-configuration via docker-compose
1 parent c4d0040 commit 448d864

File tree

5 files changed

+63
-33
lines changed

5 files changed

+63
-33
lines changed

bin/setup_configuration.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ SCRIPTPATH=$(dirname "$SCRIPT")
1212
${SCRIPTPATH}/wait_for_db.sh
1313

1414
src/manage.py migrate
15-
src/manage.py setup_configuration --no-selftest
15+
src/manage.py setup_configuration \
16+
--yaml-file /app/setup_configuration/data.yaml

django-setup-config.env

-11
This file was deleted.

docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ services:
107107
<<: *web-service
108108
container_name: open-inwoner-web-init
109109
ports: []
110-
env_file:
111-
- django-setup-config.env
112110
command: /setup_configuration.sh
111+
volumes:
112+
- ./docker/setup_configuration:/app/setup_configuration
113113

114114
nginx:
115115
image: nginx

docker/setup_configuration/data.yaml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
zgw_consumers_config_enable: True
2+
zgw_consumers:
3+
services:
4+
- identifier: zaken-test
5+
label: Open Zaak - Zaken API
6+
api_root: http://localhost:8003/zaken/api/v1/
7+
api_type: zrc
8+
auth_type: zgw
9+
client_id: test-vcr
10+
secret: test-vcr
11+
- identifier: documenten-test
12+
label: Open Zaak - Documenten API
13+
api_root: http://localhost:8003/documenten/api/v1/
14+
api_type: drc
15+
auth_type: zgw
16+
client_id: test-vcr
17+
secret: test-vcr
18+
- identifier: catalogi-test
19+
label: Open Zaak - Catalogi API
20+
api_root: http://localhost:8003/catalogi/api/v1/
21+
api_type: ztc
22+
auth_type: zgw
23+
client_id: test-vcr
24+
secret: test-vcr
25+
- identifier: besluiten-test
26+
label: Open Zaak - Besluiten API
27+
api_root: http://localhost:8003/besluiten/api/v1/
28+
api_type: brc
29+
auth_type: zgw
30+
client_id: test-vcr
31+
secret: test-vcr
32+
- identifier: selectielijst
33+
label: Open Zaak (public) - Selectielijst API
34+
api_root: https://selectielijst.openzaak.nl/api/v1/
35+
api_type: orc
36+
auth_type: no_auth
37+
38+
openzaak_config_enable: true
39+
openzaak_config:
40+
zaak_max_confidentiality: openbaar
41+
document_max_confidentiality: vertrouwelijk
42+
max_upload_size: 50
43+
skip_notification_statustype_informeren: false
44+
reformat_esuite_zaak_identificatie: true
45+
fetch_eherkenning_zaken_with_rsin: false
46+
use_zaak_omschrijving_as_title: 'true'
47+
order_statuses_by_date_set: false
48+
title_text: title text from setup configuration
49+
enable_categories_filtering_with_zaken: true
50+
action_required_deadline_days: 1874
51+
zaken_filter_enabled: 'true'
52+
allowed_file_extensions:
53+
- .pdf
54+
- .txt
55+
api_groups:
56+
- zaken_api_identifier: zaken-test
57+
documenten_api_identifier: documenten-test
58+
catalogi_api_identifier: catalogi-test

src/open_inwoner/conf/app/setup_configuration.py

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,8 @@
11
from ..utils import config
22

33
SETUP_CONFIGURATION_STEPS = [
4-
"open_inwoner.configurations.bootstrap.zgw.ZakenAPIConfigurationStep",
5-
"open_inwoner.configurations.bootstrap.zgw.CatalogiAPIConfigurationStep",
6-
"open_inwoner.configurations.bootstrap.zgw.DocumentenAPIConfigurationStep",
7-
"open_inwoner.configurations.bootstrap.zgw.FormulierenAPIConfigurationStep",
4+
"zgw_consumers.contrib.setup_configuration.steps.ServiceConfigurationStep",
85
"open_inwoner.configurations.bootstrap.zgw.ZGWAPIsConfigurationStep",
9-
"open_inwoner.configurations.bootstrap.kic.KlantenAPIConfigurationStep",
10-
"open_inwoner.configurations.bootstrap.kic.ContactmomentenAPIConfigurationStep",
11-
"open_inwoner.configurations.bootstrap.kic.KICAPIsConfigurationStep",
12-
"open_inwoner.configurations.bootstrap.siteconfig.SiteConfigurationStep",
13-
"open_inwoner.configurations.bootstrap.auth.DigiDOIDCConfigurationStep",
14-
"open_inwoner.configurations.bootstrap.auth.eHerkenningOIDCConfigurationStep",
15-
"open_inwoner.configurations.bootstrap.auth.AdminOIDCConfigurationStep",
16-
"open_inwoner.configurations.bootstrap.auth.DigiDSAMLConfigurationStep",
17-
"open_inwoner.configurations.bootstrap.auth.eHerkenningSAMLConfigurationStep",
18-
"open_inwoner.configurations.bootstrap.cms.CMSBenefitsConfigurationStep",
19-
"open_inwoner.configurations.bootstrap.cms.CMSCasesConfigurationStep",
20-
"open_inwoner.configurations.bootstrap.cms.CMSCollaborateConfigurationStep",
21-
"open_inwoner.configurations.bootstrap.cms.CMSInboxConfigurationStep",
22-
"open_inwoner.configurations.bootstrap.cms.CMSProductsConfigurationStep",
23-
"open_inwoner.configurations.bootstrap.cms.CMSProfileConfigurationStep",
246
]
257
OIP_ORGANIZATION = config("OIP_ORGANIZATION", "")
268

0 commit comments

Comments
 (0)