From 5620da7b82fe619b434400fc63d94c7d70e3d35b Mon Sep 17 00:00:00 2001 From: eric_G <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 10 Jun 2024 11:16:04 +0200 Subject: [PATCH] Testing (#122) * Upgrade to v5.0.3 (#116) Co-authored-by: OniriCorpe * Auto-update READMEs * Change url: Update trusted hosts (#119) * Testing 5.0.3~ynh1 (#117) * Upgrade to v5.0.3 (#116) Co-authored-by: OniriCorpe * Auto-update READMEs --------- Co-authored-by: YunoHost Bot Co-authored-by: eric_G <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: yunohost-bot * Update change_url Update trusted_hosts in config.ini.php * Update scripts/change_url Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> * Update change_url Create config.ini.php if it doesn't exist * Update change_url Only alter config file if it exists * Update nginx.conf --------- Co-authored-by: OniriCorpe Co-authored-by: YunoHost Bot Co-authored-by: eric_G <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: yunohost-bot Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> * Auto-update READMEs * Update manifest.toml * Auto-update READMEs * Update nginx.conf * Update nginx.conf * Update nginx.conf * Update manifest.toml * Auto-update READMEs * Update nginx.conf * Update manifest.toml * Auto-update READMEs * Update manifest.toml --------- Co-authored-by: YunoHost Bot Co-authored-by: OniriCorpe Co-authored-by: yunohost-bot Co-authored-by: CodeShakingSheep <19874562+CodeShakingSheep@users.noreply.github.com> Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> --- README.md | 2 +- README_es.md | 2 +- README_eu.md | 2 +- README_fr.md | 2 +- README_gl.md | 2 +- README_zh_Hans.md | 2 +- conf/nginx.conf | 21 +++------------------ manifest.toml | 8 ++++---- 8 files changed, 13 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 747dc22..887247c 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Matomo is the leading Free/Libre open analytics platform. At the end of the five Matomo aims to be a Free software alternative to Google Analytics and is already used on more than 1,400,000 websites. Privacy is built-in! -**Shipped version:** 5.0.3~ynh2 +**Shipped version:** 5.1.0~ynh1 **Demo:** diff --git a/README_es.md b/README_es.md index a3672f2..bca4992 100644 --- a/README_es.md +++ b/README_es.md @@ -21,7 +21,7 @@ Matomo is the leading Free/Libre open analytics platform. At the end of the five Matomo aims to be a Free software alternative to Google Analytics and is already used on more than 1,400,000 websites. Privacy is built-in! -**Versión actual:** 5.0.3~ynh2 +**Versión actual:** 5.1.0~ynh1 **Demo:** diff --git a/README_eu.md b/README_eu.md index b5847df..dc417d0 100644 --- a/README_eu.md +++ b/README_eu.md @@ -21,7 +21,7 @@ Matomo is the leading Free/Libre open analytics platform. At the end of the five Matomo aims to be a Free software alternative to Google Analytics and is already used on more than 1,400,000 websites. Privacy is built-in! -**Paketatutako bertsioa:** 5.0.3~ynh2 +**Paketatutako bertsioa:** 5.1.0~ynh1 **Demoa:** diff --git a/README_fr.md b/README_fr.md index 53f5854..a67d564 100644 --- a/README_fr.md +++ b/README_fr.md @@ -20,7 +20,7 @@ Matomo est la principale plateforme d'analyse ouverte Free/Libre. À la fin du p Matomo se veut une alternative logicielle gratuite à Google Analytics et est déjà utilisé sur plus de 1 400 000 sites Web. La confidentialité est intégrée ! -**Version incluse :** 5.0.3~ynh2 +**Version incluse :** 5.1.0~ynh1 **Démo :** diff --git a/README_gl.md b/README_gl.md index 45c4137..0891ae3 100644 --- a/README_gl.md +++ b/README_gl.md @@ -21,7 +21,7 @@ Matomo is the leading Free/Libre open analytics platform. At the end of the five Matomo aims to be a Free software alternative to Google Analytics and is already used on more than 1,400,000 websites. Privacy is built-in! -**Versión proporcionada:** 5.0.3~ynh2 +**Versión proporcionada:** 5.1.0~ynh1 **Demo:** diff --git a/README_zh_Hans.md b/README_zh_Hans.md index 84e5184..62b4850 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -21,7 +21,7 @@ Matomo is the leading Free/Libre open analytics platform. At the end of the five Matomo aims to be a Free software alternative to Google Analytics and is already used on more than 1,400,000 websites. Privacy is built-in! -**分发版本:** 5.0.3~ynh2 +**分发版本:** 5.1.0~ynh1 **演示:** diff --git a/conf/nginx.conf b/conf/nginx.conf index 6915e58..bc41c6e 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -15,7 +15,7 @@ location __PATH__/ { client_max_body_size 50M; try_files $uri $uri/ =404; - location ~ [^/]\.php(/|$) { + location ~ ^__PATH__/(index|matomo|piwik|js/index|plugins/HeatmapSessionRecording/configs)\.php$ { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; @@ -33,24 +33,9 @@ location __PATH__/ { } ## disable all access to the following directories - location ~ ^__PATH__/config/ { + location ~ ^__PATH__/(config|tmp|core|lang) { deny all; - return 403; - } - - location ~ ^__PATH__/tmp/ { - deny all; - return 403; - } - - location ~ ^__PATH__/core/ { - deny all; - return 403; - } - - location ~ ^__PATH__/lang/ { - deny all; - return 403; + return 403; # replace with 404 to not show these directories exist } location ~ ^__PATH__/\.ht { diff --git a/manifest.toml b/manifest.toml index 18c774a..7d1c4d8 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Matomo" description.en = "Analytics platform for measuring Web statistics" description.fr = "Plateforme d'analyse de mesure de statistiques Web" -version = "5.0.3~ynh2" +version = "5.1.0~ynh1" maintainers = [] @@ -51,8 +51,8 @@ ram.runtime = "50M" [resources.sources] [resources.sources.main] - url = "https://github.com/matomo-org/matomo/releases/download/5.0.3/matomo-5.0.3.tar.gz" - sha256 = "cd656ee7df4b29ac453456c6b9708d8264093ac2c99d6669d2830f31624cd626" + url = "https://github.com/matomo-org/matomo/releases/download/5.1.0/matomo-5.1.0.tar.gz" + sha256 = "0157eea9576c1052f6ba9ffc142c403e57e639797e2921b0cc236b90fb2ca21a" autoupdate.strategy = "latest_github_release" autoupdate.asset = "^matomo-.*tar.gz$" @@ -64,7 +64,7 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "mariadb-server, php8.2-curl, php8.2-gd, php8.2-cli, php8.2-mysql, php8.2-xml, php8.2-mbstring" + packages = "mariadb-server, php8.3-curl, php8.3-gd, php8.3-cli, php8.3-mysql, php8.3-xml, php8.3-mbstring" [resources.database] type = "mysql"