Compare commits
3 commits
d012f5ab52
...
fbe3d2f240
Author | SHA1 | Date | |
---|---|---|---|
fbe3d2f240 | |||
ae6cebf75d | |||
41401725a2 |
3 changed files with 83 additions and 12 deletions
|
@ -1,10 +1,10 @@
|
|||
---
|
||||
title: "Services"
|
||||
weight: 1
|
||||
bookFlatSection: true
|
||||
# bookFlatSection: true
|
||||
# bookToc: true
|
||||
# bookHidden: false
|
||||
# bookCollapseSection: false
|
||||
bookCollapseSection: true
|
||||
# bookComments: false
|
||||
# bookSearchExclude: false
|
||||
---
|
||||
|
|
55
content/docs/server/services/cockpit.md
Normal file
55
content/docs/server/services/cockpit.md
Normal file
|
@ -0,0 +1,55 @@
|
|||
---
|
||||
title: "Cockpit"
|
||||
weight: 1
|
||||
# bookFlatSection: false
|
||||
# bookToc: true
|
||||
# bookHidden: false
|
||||
# bookCollapseSection: false
|
||||
# bookComments: false
|
||||
# bookSearchExclude: false
|
||||
---
|
||||
|
||||
# Cockpit
|
||||
|
||||
## Installation
|
||||
Installer la paquet `cockpit`.
|
||||
|
||||
### Dépendances optionnelles
|
||||
- `cockpit-pcp`: monitoring,
|
||||
- `cockpit-storaged`: gestion du stockage,
|
||||
- `cockpit-podman`: gestion de containers `podman`,
|
||||
- `cockpit-machines`: gestion de machines virtuelles avec `libvirt`,
|
||||
- `networkmanager`: gestion de la connexion réseau,
|
||||
- `firewalld`: gestion du pare-feu,
|
||||
|
||||
## Configuration
|
||||
### Configuration du reverse proxy
|
||||
```
|
||||
[WebService]
|
||||
ProtocolHeader = X-Forwarded-Proto
|
||||
ForwardedForHeader = X-Forwarded-For
|
||||
```
|
||||
#### Configuration Nginx
|
||||
```
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name cockpit.edgarpierre.fr;
|
||||
include conf/00-hsts.conf;
|
||||
|
||||
location / {
|
||||
include conf/50-proxy.conf;
|
||||
include conf/50-ws-proxy.conf;
|
||||
|
||||
proxy_pass http://localhost:9090;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Mise-à-jour des certificats
|
||||
#### Script de déploiement certbot
|
||||
```
|
||||
/usr/bin/install -o cockpit-ws -g cockpit-ws -m 600 /etc/letsencrypt/live/huascaran.burkhart.ovh/privkey.pem /etc/cockpit/ws-certs.d/50-certbot.key
|
||||
/usr/bin/install -o cockpit-ws -g cockpit-ws -m 600 /etc/letsencrypt/live/huascaran.burkhart.ovh/fullchain.pem /etc/cockpit/ws-certs.d/50-certbot.cert
|
||||
/usr/bin/systemctl restart cockpit
|
||||
```
|
|
@ -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