mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-02 23:49:14 +00:00
This commit introduces several improvements to the Matomo initialization workflow: - Moves the Matomo reachability check into sys-front-inj-all/tasks/01_dependencies.yml. - Ensures web-app-matomo is only initialized when the endpoint is unreachable. - Avoids condition inheritance on include_role by removing block-level when conditions. - Adds explicit guarding conditions (inj_enabled.matomo, run_once_web_app_matomo usage). - Ensures Matomo-dependent injections (CSS, Desktop, Logout, CDN) are skipped for Matomo itself. - Fixes incorrect status_code format (now using YAML list format). - Moves utils/run_once.yml to the top of 01_core.yml to prevent recursive re-invocation of web-app-matomo. - Cleans Matomo config/main.yml feature definitions and clarifies which features are disabled during initial bootstrap. - Removes legacy global Matomo bootstrap from 02_server.yml, centralizing logic in sys-front-inj-all. - Fixes typo in inj_enabled task name. This results in a robust, idempotent, recursion-safe Matomo bootstrap sequence that works across all injected web domains.
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
features:
|
|
central_database: true
|
|
oauth2: false
|
|
|
|
# Matomo can't use the following settings - At least not on the initial setup run
|
|
desktop: false # Didn't work in frame didn't have high priority @todo figure out why and solve it
|
|
css: false
|
|
logout: false
|
|
matomo: false
|
|
server:
|
|
csp:
|
|
whitelist:
|
|
script-src-elem:
|
|
- https://cdn.matomo.cloud
|
|
style-src-elem:
|
|
- https://fonts.googleapis.com
|
|
flags:
|
|
script-src-attr:
|
|
unsafe-eval: true
|
|
script-src-elem:
|
|
unsafe-inline: true
|
|
unsafe-eval: true
|
|
style-src-attr:
|
|
unsafe-inline: true
|
|
unsafe-eval: true
|
|
domains:
|
|
canonical:
|
|
- "matomo.{{ PRIMARY_DOMAIN }}"
|
|
aliases: []
|
|
excluded_ips: "{{ networks.internet.values() | list }}"
|
|
|
|
docker:
|
|
services:
|
|
matomo:
|
|
image: "matomo"
|
|
version: "latest"
|
|
name: "matomo"
|
|
backup:
|
|
no_stop_required: true
|
|
database:
|
|
enabled: true
|
|
redis:
|
|
enabled: false
|
|
volumes:
|
|
data: matomo_data
|