From d0966ac9f9b2611d51662a05906c18258347abf0 Mon Sep 17 00:00:00 2001 From: Valentin Date: Sat, 20 Jul 2024 03:29:03 +0200 Subject: [PATCH] suppression matomo backup.sh et liens README --- README.md | 20 ++++++++++---------- assets/webhook.sh | 4 ---- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 59a94c9..fbd75ef 100644 --- a/README.md +++ b/README.md @@ -38,14 +38,14 @@ Tested and optimised for [OVH VPS Starter](https://www.ovhcloud.com/fr/vps/cheap 2. Create a user 3. Setup ssh, firewall and fail2ban 4. Add swapfile -5. Install Caddy webserver -6. Install MariaDB -7. Setup the Directus Database -8. Install Node +5. Install [**C**addy](https://caddyserver.com/) webserver +6. Install [MariaDB](https://mariadb.org/) +7. Setup the [**D**irectus](https://directus.io/) Database +8. Install [Node](https://nodejs.org/fr) 9. Prompt for the url -10. Install and run Directus +10. Install and run [**D**irectus](https://directus.io/) 11. Setup backup -12. Setup node exporter +12. Setup [node exporter](https://github.com/prometheus/node_exporter) 13. Install and run the front-end 14. Setup a webhook @@ -55,7 +55,7 @@ Tested and optimised for [OVH VPS Starter](https://www.ovhcloud.com/fr/vps/cheap `userdel --remove-home debian` -1. Configure DNS Zone +1. Configure [DNS Zone](https://help.ovhcloud.com/csm/fr-dns-edit-dns-zone) ``` Domain : | Type : A | Target : Domain : cms. | Type : A | Target : @@ -63,14 +63,14 @@ Domain : www. | Type : A | Target : ``` -2. Set Directus roles +2. Set [Directus roles](https://docs.directus.io/user-guide/user-management/users-roles-permissions.html) ``` Website role Read content collections and directus_files User role All permissions on content collections, directus_files and directus_folders ``` -3. Create a webhook +3. Create a [Gitea](https://about.gitea.com/) webhook `/settings/hooks/gitea/new` ``` Target URL https:///webhook.php @@ -78,7 +78,7 @@ Branch filter prod Authorization Header generate a safe string using : openssl rand -base64 32 ``` -4. Setup Umami tracking +4. Setup [Umami](https://umami.is/) tracking Add a new website to track from the Umami interface as an admin user diff --git a/assets/webhook.sh b/assets/webhook.sh index e14db23..9ec6bb8 100644 --- a/assets/webhook.sh +++ b/assets/webhook.sh @@ -13,10 +13,6 @@ fi jq '.scripts |= with_entries(.value |= gsub("\\bnuxt \\b"; "./node_modules/nuxt/bin/nuxt.mjs "))' package.json > temp.json && mv temp.json package.json -if [ -f "/var/www/repositories/${repo_name}/plugins/matomo-plugin.client.js" ]; then - npm install --save vue-matomo -fi - node --max-old-space-size=250 `which npm` install -y node --max-old-space-size=250 `which npm` run generate --prerender