✨ feat(docker): Ajoute la variable d'environnement APP_SECRET et Umami dans prod
✨ feat(twig/base): Ajoute le script Umami pour le suivi des statistiques en production
This commit is contained in:
@@ -92,6 +92,9 @@
|
||||
{% block stylesheets %}{% endblock %}
|
||||
<script type="text/javascript" src="/ts.js" async></script>
|
||||
{{ vite_asset('app.js', []) }}
|
||||
{% if app.environment == "prod" %}
|
||||
<script defer src="https://datas.e-cosplay.fr/script.js" data-website-id="b929d372-fbea-403e-9ae2-781433828787"></script>
|
||||
{% endif %}
|
||||
|
||||
</head>
|
||||
{# Le corps aura un fond gris clair pour correspondre au fond du logo #}
|
||||
|
||||
@@ -8,6 +8,7 @@ services:
|
||||
DATABASE_URL: postgresql://umami:umami@datas_db:5432/umami
|
||||
DATABASE_TYPE: postgresql
|
||||
APP_SECRET: replace-me-with-a-random-string
|
||||
|
||||
depends_on:
|
||||
datas_db:
|
||||
condition: service_healthy
|
||||
|
||||
Reference in New Issue
Block a user