computer-playbook/roles/sys-srv-web-inj-compose
Kevin Veen-Birkenbach c182ecf516
Refactor and cleanup OIDC, desktop, and web-app roles
- Improved OIDC variable definitions (12_oidc.yml)
- Added account/security/profile URLs
- Restructured web-app-desktop tasks and JS handling
- Introduced oidc.js and iframe.js with runtime loader
- Fixed nginx.conf, LDAP, and healthcheck templates spacing
- Improved Lua injection for CSP and snippets
- Fixed typos (WordPress, receive, etc.)
- Added silent-check-sso nginx location

Conversation: https://chatgpt.com/share/68ae0060-4fac-800f-9f02-22592a4087d3
2025-08-26 20:44:05 +02:00
..
2025-08-16 00:01:46 +02:00
2025-08-16 00:01:46 +02:00
2025-08-16 00:01:46 +02:00
2025-08-16 00:01:46 +02:00

Nginx Global Matomo & Theming Modifier Role 🚀

This role enhances your Nginx configuration by conditionally injecting global Matomo tracking and theming elements into your HTML responses. It uses Nginx sub-filters to seamlessly add tracking scripts and CSS links to your web pages.


Features

  • Global Matomo Tracking
    The role includes Matomo tracking configuration and injects the corresponding tracking script into your HTML.

  • Global Theming
    The role injects a global CSS link for consistent theming across your site.

  • Smart Injection
    Uses Nginx's sub_filter to insert the tracking and theming snippets right before the closing </head> tag of your HTML documents.

This will automatically activate Matomo tracking and/or global theming based on your configuration.


Author

Developed by Kevin Veen-Birkenbach 😎


Happy automating! 🎉