Update gitea config
This commit is contained in:
parent
41401725a2
commit
ae6cebf75d
1 changed files with 26 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue