Skip to content
Snippets Groups Projects
Commit 5b8282d2 authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

fix(stats): fix empty matomo stats

parent 71fca367
Branches
Tags
2 merge requests!480V2.2.0,!465Resolve "MATOMO"
...@@ -39,6 +39,7 @@ server { ...@@ -39,6 +39,7 @@ server {
location ~ /index.html|.*\.json$ { location ~ /index.html|.*\.json$ {
expires -1; expires -1;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
sub_filter '</head>' '$matomo_script</head>';
} }
location / { location / {
...@@ -48,8 +49,8 @@ server { ...@@ -48,8 +49,8 @@ server {
} }
# First attempt to serve request as file, then # First attempt to serve request as file, then
# as directory, then fall back to displaying a 404. # as directory, then fall back to displaying a 404.
# Angular routed apps must fall back to index.html ( https://angular.io/guide/deployment#server-configuration )
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
sub_filter '</head>' '$matomo_script</head>';
} }
location /api { location /api {
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment