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 # Gitea
## Installation ## Installation
Install `gitea` package. Installer le paquet `gitea`.
## Configuration ## Configuration
Configuration takes place in `/etc/gitea/app.ini`. Examples are provided at La configuration se fait dans le fichier `/etc/gitea/app.ini`.
`/etc/gitea/app.example.ini`. Un exemple est fourni dans `/etc/gitea/app.example.ini`.
### Server ### Serveur
Server configuration.
``` ```
[server] [server]
PROTOCOL = unix PROTOCOL = unix
@ -35,14 +34,15 @@ ALLOW_GRACEFUL_RESTARTS = true
#### LFS #### LFS
``` ```
[server]
LFS_START_SERVER = true LFS_START_SERVER = true
LFS_JWT_SECRET = LFS_JWT_SECRET =
``` ```
### Database ### Base de donnée
Create user and database for `gitea` using postgres. 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] [database]
DB_TYPE = postgres DB_TYPE = postgres
@ -51,7 +51,7 @@ NAME = gitea
USER = gitea USER = gitea
``` ```
### Security ### Securité
``` ```
[security] [security]
INSTALL_LOCK = true INSTALL_LOCK = true
@ -103,4 +103,20 @@ ALLOWED_HOST_LIST = loopback,edgarpierre.fr,*.edgarpierre.fr
``` ```
## Service ## 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;
}
}
```