From 6a7d645b5372bb29611bea35e9f22d884d471d99 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 9 Jan 2023 20:00:16 +0100 Subject: [PATCH] fiw typos --- ressources/git-static-site/EN/index.php | 24 ++++++++++++------------ ressources/git-static-site/index.php | 13 +++++++++---- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/ressources/git-static-site/EN/index.php b/ressources/git-static-site/EN/index.php index 9a81974..b70e93f 100644 --- a/ressources/git-static-site/EN/index.php +++ b/ressources/git-static-site/EN/index.php @@ -24,7 +24,7 @@

Creating and maintaining a site with git

-

In this post, I will show you how to manage a simple static site with a git repository. I will mention but needless to say that you can apply this approach on any other server.

+

In this post, I will show you how to manage a simple static website with a git repository. I will mention but you can apply this approach on any other server.

The root

@@ -32,7 +32,7 @@

With Yunohost, if you don't want to get your hands too dirty with nginx configuration, we'll have to install a "sandbox", an empty app that will become the root of our site.

-

When I first installed Yunohost, this app was available from the interface but it seems that it is no longer the case. You will have to copy and paste this link in the "Install custom app" form at the bottom of the installation page.

+

When I first installed Yunohost, this app was available from the interface but now have to copy and paste this link in the "Install custom app" form at the bottom of the installation page.

https://github.com/YunoHost-Apps/multi_webapp_ynh @@ -49,12 +49,11 @@ DISABLE_GIT_HOOKS = false

(complete list of options)

-

Remember to restart gitea

+

Remember to restart gitea:

$ yunohost service restart gitea
-

Vous pourrez maintenant créer un post-receive hook sur votre dépot.

-

You'll then be able to create a post-receive hook on your repository.

+

You'll then be able to create a post-receive hook on your repository. (on the repo got to Settings -> Git Hooks)

#!/bin/sh
 
@@ -86,7 +85,7 @@ git --work-tree=$TARGET checkout --force
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
-

You can increase the limit by editing /etc/nginx/conf.d/git.domain.tld.d/gitea.conf (on the server this time)

+

You can increase the limit by adding the following line in /etc/nginx/conf.d/git.domain.tld.d/gitea.conf (on the server this time)

client_max_body_size 50M;
@@ -98,8 +97,6 @@ git --work-tree=$TARGET checkout --force

Autoindex / basic file server

-

Si vous voulez pouvoir vous consulter l'arborescence de votre serveur depuis n'importe quel navigateur, vous pouvez activer l'autoindex en modifiant le fichier /etc/nginx/conf.d/domain.tld.d/webapp_domain.tld_.conf

-

If you want to be able to browse the whole file system of your domain from any web browser, you can edit /etc/nginx/conf.d/domain.tld.d/webapp_domain.tld_.conf

location / {
@@ -107,15 +104,18 @@ git --work-tree=$TARGET checkout --force
alias /path/to/root/ ; } -

Attention cependant, tout le monde pourra voir ce que vous avez sur votre serveur. En ce qui concerne les fichiers statiques (CSS, JS, police d'écriture...) utilisés sur les pages publiées, tout le monde peut déjà les voir, d'une manière contournée.

+

Be careful though as everybody will be able to access it.

-

Be carfull though as everybody will be able to access it.

- -

The only issue that comes to mind, regarding this visibility, would be if you were to store "hard-coded" passwords in text file, but it's a liabily that you should avoid in any case.

+

The only issue that comes to mind, regarding this visibility, would be if you were to store "hard-coded" passwords in text file, but it's a very bad practice that you should avoid anyway.

I use the autoindex to easily find font files or some javascript libraries.

+ +
+ +
+ diff --git a/ressources/git-static-site/index.php b/ressources/git-static-site/index.php index 702ea50..1c1b855 100644 --- a/ressources/git-static-site/index.php +++ b/ressources/git-static-site/index.php @@ -24,7 +24,7 @@

Créer et maintenir à jour un site avec git

-

Dans ce billet, je vais présenter une manière de gérer un site web statique via un dépôt git. Je ferais certaines références à mais il va sans dire que cette approche peut se décliner sur n'importe quel serveur.

+

Dans ce billet, je vais présenter une manière de gérer un site web statique via un dépôt git. Je ferais certaines références à mais cette approche peut se décliner sur n'importe quel serveur.

La racine

@@ -32,7 +32,7 @@

Sur Yunohost, si on ne veut pas mettre les mains dans les configs nginx, il va falloir installer un "bac à sable", une application vide qui sera la racine de notre site.

-

Lors de ma première installation de Yunohost, cette appli était disponible depuis l'interface mais il semblerait que ce ne soit plus le cas. Il faudra donc copier-coller ce lien dans le formulaire "Install custom app" en bas de la page d'installation.

+

Lors de ma première installation de Yunohost, cette appli était disponible depuis l'interface mais il faut maintenant copier-coller ce lien dans le formulaire "Install custom app" en bas de la page d'installation.

https://github.com/YunoHost-Apps/multi_webapp_ynh @@ -54,7 +54,7 @@ DISABLE_GIT_HOOKS = false
$ yunohost service restart gitea
-

Vous pourrez maintenant créer un post-receive hook sur votre dépot.

+

Vous pourrez maintenant créer un post-receive hook sur votre dépot. (sur le dépot: Settings -> Git Hooks)

#!/bin/sh
 
@@ -90,7 +90,7 @@ git --work-tree=$TARGET checkout --force
client_max_body_size 50M;
-

Puis redémarrer nginx avec la commande:

+

Puis redémarrer nginx:

$ yunohost service restart nginx
@@ -112,6 +112,11 @@ git --work-tree=$TARGET checkout --force

Sur un domaine j'utilise l'autoindex pour facilement retrouver des fichiers de police (.woff, .ttf) ou quelques librairies javascript.

+ +
+ +
+