- Replace status_code [200,301,302] with explicit 'status_code: 200' - Use '(status | default(0) | int) != 200' for consistent reachability detection - Remove deprecated Jinja usage inside when-conditions - Replace string-rendered conditions with native boolean checks - Improve Mailu routine trigger logic by tightening status evaluation - Cleanup unused no_log directives Reference: https://chatgpt.com/share/692f04b5-5698-800f-a355-9e9b70cf97d7
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'ssub_filterto 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! 🎉