1
Fork 0

Update gitea config

This commit is contained in:
Edgar P. Burkhart 2023-02-05 16:35:12 +01:00
parent 41401725a2
commit ae6cebf75d
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
1 changed files with 26 additions and 10 deletions

View File

@ -12,14 +12,13 @@ weight: 1
# Gitea
## Installation
Install `gitea` package.
Installer le paquet `gitea`.
## Configuration
Configuration takes place in `/etc/gitea/app.ini`. Examples are provided at
`/etc/gitea/app.example.ini`.
La configuration se fait dans le fichier `/etc/gitea/app.ini`.
Un exemple est fourni dans `/etc/gitea/app.example.ini`.
### Server
Server configuration.
### Serveur
```
[server]
PROTOCOL = unix
@ -35,14 +34,15 @@ ALLOW_GRACEFUL_RESTARTS = true
#### LFS
```
[server]
LFS_START_SERVER = true
LFS_JWT_SECRET =
```
### Database
Create user and database for `gitea` using postgres.
### Base de donnée
Créer un utilisateur et une base de donnée `gitea` avec postgres.
To use a unix socket connection to postgres, configuration should be :
Pour utiliser une connection par socket unix, la configuration est la suivante :
```
[database]
DB_TYPE = postgres
@ -51,7 +51,7 @@ NAME = gitea
USER = gitea
```
### Security
### Securité
```
[security]
INSTALL_LOCK = true
@ -103,4 +103,20 @@ ALLOWED_HOST_LIST = loopback,edgarpierre.fr,*.edgarpierre.fr
```
## Service
Gitea is started using systemd service `gitea.service`.
Gitea est démarré avec le service systemd `gitea.service`.
## Configuration Nginx
```
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name git.edgarpierre.fr;
include conf/00-hsts.conf;
location / {
include conf/50-proxy.conf;
proxy_pass http://unix:/run/gitea/gitea.socket;
}
}
```