linux:owncloud
Inhaltsverzeichnis
owncloud
ownCloud ist eine freie Software für das Speichern von Daten (Filehosting) auf einem eigenen Server.
Piwik-Integration
Tracking-Code
vi /var/www/ho2e/owncloud/apps/files_sharing/templates/public.php
<header>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//ho2e.de/piwik/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 3]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('s cript')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js' ; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//ho2e.de/piwik/piwik.php?idsite=3" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
Policy
vi /var/www/ho2e/owncloud/config/config.php
„custom_csp_policy“ ⇒ „default-src 'self'; script-src 'self' https://ho2e.d e/piwik/ 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; fr ame-src *; img-src *; font-src 'self' data:; media-src *“,
vi /var/www/ho2e/owncloud/config/config.php
Siehe auch
linux/owncloud.txt · Zuletzt geändert: von move
