2024-09-26 22:02:36 +00:00
|
|
|
---
|
|
|
|
umami_db_host: "{{ postgres.host }}"
|
2024-09-28 19:26:13 +00:00
|
|
|
umami_db_user: "{{ opentofu.postgresql_data.umami.user }}"
|
|
|
|
umami_db_pass: "{{ opentofu.postgresql_data.umami.pass }}"
|
|
|
|
umami_db_database: "{{ opentofu.postgresql_data.umami.database }}"
|
2024-09-26 22:02:36 +00:00
|
|
|
|
|
|
|
umami_hash_salt: "{{ vault_umami.hash_salt }}"
|
|
|
|
|
|
|
|
umami_docker_image: docker.umami.dev/umami-software/umami:postgresql-latest
|
|
|
|
|
|
|
|
umami_svc:
|
2024-10-18 23:01:15 +00:00
|
|
|
domain: "{{ all_services | service_get_domain(role_name) }}"
|
2025-01-09 14:44:29 +00:00
|
|
|
caddy_extra: |
|
|
|
|
handle /track-external.js {
|
|
|
|
header Content-Type text/javascript
|
|
|
|
respond <<JS
|
|
|
|
(() => {
|
|
|
|
const name = 'outbound-link-click';
|
|
|
|
document.querySelectorAll('a').forEach(a => {
|
|
|
|
if (a.host !== window.location.host && !a.getAttribute('data-umami-event')) {
|
|
|
|
a.setAttribute('data-umami-event', name);
|
|
|
|
a.setAttribute('data-umami-event-url', a.href);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})();
|
|
|
|
JS 200
|
|
|
|
}
|
2024-09-26 22:02:36 +00:00
|
|
|
port: 3000
|
|
|
|
|
|
|
|
umami_env:
|
|
|
|
DATABASE_URL: postgres://{{ umami_db_user }}:{{ umami_db_pass }}@{{ umami_db_host }}/{{ umami_db_database }}
|
|
|
|
DATABASE_TYPE: postgresql
|
|
|
|
FORCE_SSL: 1
|
|
|
|
HASH_SALT: "{{ umami_hash_salt }}"
|
|
|
|
CLIENT_IP_HEADER: X-Analytics-IP
|
|
|
|
|
|
|
|
umami_compose:
|
2024-11-07 23:05:55 +00:00
|
|
|
watchtower: update
|
2024-09-26 22:02:36 +00:00
|
|
|
image: "{{ umami_docker_image }}"
|