Skip to content

Commit 203f516

Browse files
committed
Update docker-compose based setup-configuration with examples and docs
1 parent e9d3c08 commit 203f516

File tree

4 files changed

+127
-14
lines changed

4 files changed

+127
-14
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

+123
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# Admin OIDC
2+
oidc_db_config_enable: true
3+
oidc_db_config_admin_auth:
4+
items:
5+
- identifier: admin-oidc
6+
enabled: True
7+
oidc_rp_client_id: testid
8+
oidc_rp_client_secret: 7DB3KUAAizYCcmZufpHRVOcD0TOkNO3I
9+
oidc_rp_scopes_list:
10+
- openid
11+
- email
12+
- profile
13+
oidc_rp_sign_algo: RS256
14+
endpoint_config:
15+
oidc_op_authorization_endpoint: https://example.com/realms/test/protocol/openid-connect/auth
16+
oidc_op_token_endpoint: https://example.com/realms/test/protocol/openid-connect/token
17+
oidc_op_user_endpoint: https://example.com/realms/test/protocol/openid-connect/userinfo
18+
username_claim:
19+
- sub
20+
groups_claim:
21+
- roles
22+
claim_mapping:
23+
first_name:
24+
- given_name
25+
sync_groups: true
26+
sync_groups_glob_pattern: '*'
27+
default_groups:
28+
- Functioneel beheer
29+
make_users_staff: true
30+
superuser_group_names:
31+
- superuser
32+
oidc_use_nonce: true
33+
oidc_nonce_size: 32
34+
oidc_state_size: 32
35+
userinfo_claims_source: id_token
36+
37+
# Setup service connectivity
38+
zgw_consumers_config_enable: True
39+
zgw_consumers:
40+
services:
41+
- identifier: zaken-test
42+
label: Open Zaak - Zaken API
43+
api_root: http://localhost:8003/zaken/api/v1/
44+
api_type: zrc
45+
auth_type: zgw
46+
client_id: test-vcr
47+
secret: test-vcr
48+
- identifier: documenten-test
49+
label: Open Zaak - Documenten API
50+
api_root: http://localhost:8003/documenten/api/v1/
51+
api_type: drc
52+
auth_type: zgw
53+
client_id: test-vcr
54+
secret: test-vcr
55+
- identifier: catalogi-test
56+
label: Open Zaak - Catalogi API
57+
api_root: http://localhost:8003/catalogi/api/v1/
58+
api_type: ztc
59+
auth_type: zgw
60+
client_id: test-vcr
61+
secret: test-vcr
62+
- identifier: besluiten-test
63+
label: Open Zaak - Besluiten API
64+
api_root: http://localhost:8003/besluiten/api/v1/
65+
api_type: brc
66+
auth_type: zgw
67+
client_id: test-vcr
68+
secret: test-vcr
69+
- identifier: selectielijst
70+
label: Open Zaak (public) - Selectielijst API
71+
api_root: https://selectielijst.openzaak.nl/api/v1/
72+
api_type: orc
73+
auth_type: no_auth
74+
- identifier: klanten-test
75+
label: eSuite klanten API
76+
api_root: http://localhost:8003/klanten/api/v1/
77+
api_type: kc
78+
auth_type: zgw
79+
client_id: test-vcr
80+
secret: test-vcr
81+
- identifier: contactmomenten-test
82+
label: eSuite contactmomemnten API
83+
api_root: http://localhost:8003/contactmomenten/api/v1/
84+
api_type: cmc
85+
auth_type: zgw
86+
client_id: test-vcr
87+
secret: test-vcr
88+
89+
openzaak_config_enable: true
90+
openzaak_config:
91+
zaak_max_confidentiality: openbaar
92+
document_max_confidentiality: vertrouwelijk
93+
max_upload_size: 50
94+
skip_notification_statustype_informeren: false
95+
reformat_esuite_zaak_identificatie: true
96+
fetch_eherkenning_zaken_with_rsin: false
97+
use_zaak_omschrijving_as_title: 'true'
98+
order_statuses_by_date_set: false
99+
title_text: title text from setup configuration
100+
enable_categories_filtering_with_zaken: true
101+
action_required_deadline_days: 1874
102+
zaken_filter_enabled: 'true'
103+
allowed_file_extensions:
104+
- .pdf
105+
- .txt
106+
api_groups:
107+
- zaken_api_identifier: zaken-test
108+
documenten_api_identifier: documenten-test
109+
catalogi_api_identifier: catalogi-test
110+
111+
openklant_config_enable: true
112+
openklant_config:
113+
klanten_service_identifier: klanten-test
114+
contactmomenten_service_identifier: contactmomenten-test
115+
exclude_contactmoment_kanalen: []
116+
register_email: [email protected]
117+
register_contact_moment: true
118+
register_bronorganisatie_rsin: '837194569'
119+
register_channel: email
120+
register_type: bericht
121+
register_employee_id: '1234'
122+
use_rsin_for_innNnpId_query_parameter: true
123+
send_email_confirmation: false

0 commit comments

Comments
 (0)