bikepost
I have it working.
Its been a while, but pretty sure this was what solved my issue with it not displaying.
https://piwik.org/faq/troubleshooting/faq_147/
This is the error I get in console:
Refused to display {SITE..} in a frame because it set multiple 'X-Frame-Options' headers with conflicting values ('SAMEORIGIN, DENY'). Falling back to 'deny'.
Solution:
https://serverfault.com/questions/801651/nginx-x-frame-options-iframe-wordpress
In my case however, I had to remove add_header X-Frame-Options SAMEORIGIN;
from both configs.
sudo grep -R "X-Frame-Options" /etc/nginx/
, make sure nothing has that string, then try reloading.
Make you you have something like this in your sites-enabled config:
location /flarum/analytics {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?q=$uri&$args;
}
POC:
It works, here is the console errors:
Invalid 'X-Frame-Options' header encountered when loading 'https://keys-daggers.org/analytics/piwik/index.php?idSite=1&token_auth=1fd4…oduleToWidgetize=Dashboard&actionToWidgetize=index&period=month&date=today': '' is not a recognized directive. The header will be ignored.
index.php?module=Proxy&action=getCoreJs&cb=a3fb344…?cb=a3fb344……:6 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
The theme is an eyesore, but its usable, ive been lazy, and the graphs are a mofo to customize.