diff --git a/README.md b/README.md index a03ffd0..7b9eafd 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,28 @@ make down make help # View all available commands ``` +The preferred way to configure the shared footer behavior is directly in the +WordPress theme via: + +- `Appearance > Customize > Footer integration` + +There you configure the webhook secret and optional allowlist used by WordPress +to receive the footer artifacts pushed by the static site build. + +On the static-site build side, the webhook publisher is configured with runtime +environment variables. + +Priority order is: + +1. theme configuration (`Appearance > Customize > Footer integration`) +2. runtime environment variables for the site build webhook +3. existing locally stored footer artifact in WordPress + +The site build webhook expects: + +- `LIBRESIGN_FOOTER_WEBHOOK_URL` +- `LIBRESIGN_FOOTER_WEBHOOK_SECRET` + You can pass component names after `make up` to start only part of the local stack: diff --git a/site b/site index 401b7f0..1f751f6 160000 --- a/site +++ b/site @@ -1 +1 @@ -Subproject commit 401b7f045163abaad7804b441ad4ee103bebd818 +Subproject commit 1f751f6e8adddf4c5accb5b04085a7308ef5379c diff --git a/wordpress-docker b/wordpress-docker index 2f41d9e..6053d4d 160000 --- a/wordpress-docker +++ b/wordpress-docker @@ -1 +1 @@ -Subproject commit 2f41d9ec5e4e896b8fab199cdccaa23f66e24d61 +Subproject commit 6053d4df9140a11cc3ab64a59c26a5ff64aa4c46