diff --git a/bin/setup_configuration.sh b/bin/setup_configuration.sh index ee172d5e..9082f4fe 100755 --- a/bin/setup_configuration.sh +++ b/bin/setup_configuration.sh @@ -6,4 +6,4 @@ #set -e src/manage.py migrate -src/manage.py setup_configuration --no-selftest +src/manage.py setup_configuration --yaml-file setup_configuration/data.yaml diff --git a/docker-compose.yml b/docker-compose.yml index d9303442..d1762c5e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -36,14 +36,6 @@ services: - OPENNOTIFICATIES_SUPERUSER_USERNAME=admin - OPENNOTIFICATIES_SUPERUSER_EMAIL=admin@localhost - DJANGO_SUPERUSER_PASSWORD=admin - # setup_configuration env vars - - OPENNOTIFICATIES_DOMAIN=web:8000 - - OPENNOTIFICATIES_ORGANIZATION=ON - - AUTORISATIES_API_ROOT=https://open-zaak.example.nl/autorisaties/api/v1/ - - NOTIF_OPENZAAK_CLIENT_ID=notif-client-id - - NOTIF_OPENZAAK_SECRET=notif-secret - - OPENZAAK_NOTIF_CLIENT_ID=oz-client-id - - OPENZAAK_NOTIF_SECRET=oz-secret healthcheck: test: ["CMD", "python", "-c", "import requests; exit(requests.head('http://localhost:8000/admin/').status_code not in [200, 302])"] interval: 30s @@ -57,6 +49,7 @@ services: - 8000:8000 volumes: &app-volumes - media:/app/media # Shared media volume to get access to saved OAS files + - ./docker/setup_configuration:/app/setup_configuration depends_on: web-init: condition: service_completed_successfully diff --git a/docker/setup_configuration/data.yaml b/docker/setup_configuration/data.yaml new file mode 100644 index 00000000..69d8b5a3 --- /dev/null +++ b/docker/setup_configuration/data.yaml @@ -0,0 +1,37 @@ +zgw_consumers_config_enable: True +zgw_consumers: + services: + - identifier: autorisaties-api + label: Objecttypen API test + api_root: http://localhost:8001/autorisaties/api/v1/ + api_type: ac + auth_type: zgw + client_id: open-notificaties + secret: oPMsHCEuoP9Qh8vP06D7 + user_id: open-notificaties + user_representation: Open Notificaties Demodam + +autorisaties_api_config_enable: True +autorisaties_api: + # Configure Open Notificaties to make use of Open Zaak's Autorisaties API + authorizations_api_service_identifier: autorisaties-api + +vng_api_common_credentials_config_enable: True +vng_api_common_credentials: + items: + # Credentials for Open Zaak to be able to make requests to Open Notificaties + - identifier: open-zaak + secret: G2LIVfXal1J93puQkV3O + +notifications_config_enable: True +notifications_config: + # No notifications_api_service necessary, because Open Notificaties doesn't send + # notifications to itself + notification_delivery_max_retries: 5 + notification_delivery_retry_backoff: 3 + notification_delivery_retry_backoff_max: 30 + +site_config_enable: True +site_config: + domain: opennotificaties.local:8000 + organization: Demodam