Skip to content

Commit

Permalink
🔧 [maykinmedia/django-setup-configuration#1] add settings for setup_c…
Browse files Browse the repository at this point in the history
…onfiguration
  • Loading branch information
annashamray committed Feb 21, 2024
1 parent 297c431 commit ee14899
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion src/openzaak/conf/includes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"mozilla_django_oidc",
"mozilla_django_oidc_db",
"log_outgoing_requests",
"django_setup_configuration"
"django_setup_configuration",
# Project applications.
"openzaak",
"openzaak.accounts",
Expand Down Expand Up @@ -709,6 +709,16 @@
#
LOG_OUTGOING_REQUESTS_DB_SAVE = config("LOG_OUTGOING_REQUESTS_DB_SAVE", default=False)


#
# Django setup configuration
#
SETUP_CONFIGURATION_STEPS = [
"openzaak.config.bootstrap.site.SiteConfigurationStep",
"openzaak.config.bootstrap.notifications.AuthNotificationStep",
"openzaak.config.bootstrap.notifications.NotificationsAPIConfigurationStep",
]

#
# OpenZaak configuration
#
Expand All @@ -731,3 +741,20 @@

# Name of the cache used to store responses for requests made when importing catalogi
IMPORT_REQUESTS_CACHE_NAME = config("IMPORT_REQUESTS_CACHE_NAME", "import_requests")

# Settings for setup_configuration command
# for sites config
OPENZAAK_SITES_CONFIG_ENABLE = config("OPENZAAK_SITES_CONFIG_ENABLE", default=True)
OPENZAAK_ORGANIZATION = config("OPENZAAK_ORGANIZATION", "")
# for notif -> OZ config
NOTIF_OPENZAAK_CONFIG_ENABLE = config("NOTIF_OPENZAAK_CONFIG_ENABLE", default=True)
NOTIF_OPENZAAK_CLIENT_ID = config("NOTIF_OPENZAAK_CLIENT_ID", "")
NOTIF_OPENZAAK_SECRET = config("NOTIF_OPENZAAK_SECRET", "")
# for OZ -> notif config
OPENZAAK_NOTIF_CONFIG_ENABLE = config("OPENZAAK_NOTIF_CONFIG_ENABLE", default=True)
NOTIF_API_ROOT = config("NOTIF_API_ROOT", "")
if NOTIF_API_ROOT and not NOTIF_API_ROOT.endswith("/"):
NOTIF_API_ROOT = f"{NOTIF_API_ROOT.strip()}/"
NOTIF_API_OAS = config("NOTIF_API_OAS", default=f"{NOTIF_API_ROOT}schema/openapi.yaml")
OPENZAAK_NOTIF_CLIENT_ID = config("OPENZAAK_NOTIF_CLIENT_ID", "")
OPENZAAK_NOTIF_SECRET = config("OPENZAAK_NOTIF_SECRET", "")

0 comments on commit ee14899

Please sign in to comment.