Update README.md
This commit is contained in:
parent
3720f4e1b2
commit
06ef6268af
41
README.md
41
README.md
|
@ -131,18 +131,20 @@ apt install postgresql postgresql-contrib
|
|||
|
||||
D'après la documentation d'installation de Gitea :
|
||||
|
||||
PostgreSQL uses md5 challenge-response encryption scheme for password authentication by default.
|
||||
Nowadays this scheme is not considered secure anymore. Use SCRAM-SHA-256 scheme instead by editing
|
||||
the postgresql.conf configuration file on the database server to:
|
||||
> PostgreSQL uses md5 challenge-response encryption scheme for password authentication by default.
|
||||
> Nowadays this scheme is not considered secure anymore. Use SCRAM-SHA-256 scheme instead by editing
|
||||
> the postgresql.conf configuration file on the database server to:
|
||||
>
|
||||
> password_encryption = scram-sha-256
|
||||
>
|
||||
> Restart PostgreSQL to apply the setting.
|
||||
|
||||
password_encryption = scram-sha-256
|
||||
|
||||
Restart PostgreSQL to apply the setting.
|
||||
|
||||
Le conseil semble judicieux donc éditer le fichier /etc/postgresql/13/main/postgresql.conf :
|
||||
Le conseil semble judicieux donc éditer le fichier `/etc/postgresql/13/main/postgresql.conf` :
|
||||
|
||||
```
|
||||
#password_encryption = md5 # md5 or scram-sha-256
|
||||
password_encryption = scram-sha-256
|
||||
```
|
||||
|
||||
Et redémarrer le service :
|
||||
|
||||
|
@ -196,34 +198,29 @@ Création de l'arborescence dédiée :
|
|||
|
||||
```
|
||||
export GITEA_WORK_DIR=/srv/gitea
|
||||
mkdir -p $GITEA_WORK_DIR/{custom,data}
|
||||
chown -R git:gitea $GITEA_WORK_DIR
|
||||
mkdir -p $GITEA_WORK_DIR/{bin,custom,data}
|
||||
chown -R git:git $GITEA_WORK_DIR
|
||||
chmod -R ug+x $GITEA_WORK_DIR
|
||||
chmod -R o-rwx $GITEA_WORK_DIR
|
||||
```
|
||||
|
||||
Création du dossier de configuration :
|
||||
```
|
||||
mkdir /etc/gitea
|
||||
mkdir /etc/git
|
||||
chown root:gitea /etc/gitea
|
||||
chmod ug+rwx /etc/gitea
|
||||
chmod o-rwx /etc/gitea
|
||||
```
|
||||
|
||||
Création du dossier de logs (optionnel) :
|
||||
```
|
||||
mkdir /var/log/gitea
|
||||
chown git.gitea /var/log/gitea
|
||||
chown git.git /var/log/gitea
|
||||
```
|
||||
|
||||
## Récupération du binaire
|
||||
|
||||
Gitea consiste en un seul fichier binaire :
|
||||
|
||||
```
|
||||
mkdir /srv/gitea/bin
|
||||
cd /srv/gitea/bin/
|
||||
```
|
||||
|
||||
Identifier la dernière version : https://dl.gitea.io/gitea/
|
||||
Gitea consiste en un seul fichier binaire. Identifier la dernière version : https://dl.gitea.io/gitea/
|
||||
|
||||
Définir la version cible :
|
||||
```
|
||||
|
@ -232,8 +229,9 @@ export GITEA_VERSION=1.XX.X
|
|||
|
||||
La télécharger :
|
||||
```
|
||||
cd /srv/gitea/bin/
|
||||
wget -O gitea https://dl.gitea.io/gitea/$GITEA_VERSION/gitea-$GITEA_VERSION-linux-amd64
|
||||
chown root.gitea . gitea
|
||||
chown root:git . gitea
|
||||
chmod g=rx . gitea
|
||||
```
|
||||
|
||||
|
@ -250,7 +248,6 @@ gpg --verify gitea-$GITEA_VERSION-linux-amd64.asc gitea
|
|||
```
|
||||
|
||||
|
||||
|
||||
## Intégration du service dans Systemd
|
||||
|
||||
La documentation de Gitea contient une page dédiée :
|
||||
|
|
Loading…
Reference in New Issue