Translation #2
This commit is contained in:
		@@ -1,3 +1,4 @@
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
navigation: true
 | 
			
		||||
title: Uptime-Kuma
 | 
			
		||||
@@ -8,19 +9,19 @@ main:
 | 
			
		||||
# Uptime-Kuma
 | 
			
		||||
 | 
			
		||||
::alert{type="info"}
 | 
			
		||||
🎯 __Objectifs :__
 | 
			
		||||
- Installer et déployer Uptime-Kuma
 | 
			
		||||
- Exposer Uptime Kuma
 | 
			
		||||
- (Optionnel) Protéger Uptime-Kuma avec Authentik
 | 
			
		||||
🎯 __Goals:__
 | 
			
		||||
- Install and deploy Uptime-Kuma
 | 
			
		||||
- Expose Uptime-Kuma
 | 
			
		||||
- (Optional) Protect Uptime-Kuma with Authentik
 | 
			
		||||
::
 | 
			
		||||
 | 
			
		||||
[Uptime-Kuma ](https://github.com/louislam/uptime-kuma)est un conteneur dédié au monitoring de services. Le principe est d'envoyer des requêtes régulières à vos services afin de déterminer s'ils sont en lignes ou non, et de vous alerter le cas échéant. Uptime-Kuma est développé par le meme développeur que Dockge. 
 | 
			
		||||
[Uptime-Kuma](https://github.com/louislam/uptime-kuma) is a container dedicated to service monitoring. The principle is to regularly send requests to your services to determine if they are online, and alert you if not. Uptime-Kuma is developed by the same developer as Dockge.
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
## Installation
 | 
			
		||||
---
 | 
			
		||||
Structure des dossiers
 | 
			
		||||
Folder structure
 | 
			
		||||
 | 
			
		||||
```console
 | 
			
		||||
root
 | 
			
		||||
@@ -30,7 +31,7 @@ root
 | 
			
		||||
        └── compose.yaml
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Ouvrez Dockge, cliquez sur `compose`, appelez la stack `uptime-kuma` puis copiez collez ceci :
 | 
			
		||||
Open Dockge, click on `compose`, name the stack `uptime-kuma`, then copy and paste the following:
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
---
 | 
			
		||||
@@ -45,7 +46,7 @@ services:
 | 
			
		||||
    restart: always
 | 
			
		||||
```
 | 
			
		||||
::alert{type="success"}
 | 
			
		||||
✨ __Astuce :__ ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mises à jour
 | 
			
		||||
✨ __Tip:__ Add the Watchtower label to each container to automate updates
 | 
			
		||||
 | 
			
		||||
    ```yaml
 | 
			
		||||
    services:
 | 
			
		||||
@@ -55,39 +56,39 @@ services:
 | 
			
		||||
          - com.centurylinklabs.watchtower.enable=true
 | 
			
		||||
::
 | 
			
		||||
 | 
			
		||||
Vous n'avez plus qu'à accéder à l'outil via `http://ipdevotreserveur:3200`.
 | 
			
		||||
You can now access the tool via `http://yourserverip:3200`.
 | 
			
		||||
 | 
			
		||||
::alert{type="danger"}
 | 
			
		||||
:::list{type="danger"}
 | 
			
		||||
- __En cas d'échec :__ vérifiez les règles de votre pare-feu.
 | 
			
		||||
- __If it fails:__ check your firewall rules.
 | 
			
		||||
:::
 | 
			
		||||
::
 | 
			
		||||
 | 
			
		||||
## Exposer avec Swag
 | 
			
		||||
## Expose with Swag
 | 
			
		||||
---
 | 
			
		||||
::alert{type="info"}
 | 
			
		||||
📋 __Au préalable :__ 
 | 
			
		||||
📋 __Before you begin:__ 
 | 
			
		||||
<br/><br/>
 | 
			
		||||
Nous partons du principe que vous avez le sous-domaine `stats.mondomaine.fr` avec un `CNAME` qui pointe vers `mondomaine.fr` dans votre [zone DNS](/generalites/dns). Et que bien sûr, [à moins que vous utilisiez Cloudflare Zero Trust](/serveex/securite/cloudflare), le port `443` de votre box pointe bien sur le port `443` de votre serveur via [les règles NAT](/generalites/nat).
 | 
			
		||||
We assume you have the subdomain `stats.mydomain.com` with a `CNAME` pointing to `mydomain.com` in your [DNS zone](/generalites/dns). And of course, [unless you're using Cloudflare Zero Trust](/serveex/securite/cloudflare), port `443` of your router should point to port `443` of your server via [NAT rules](/generalites/nat).
 | 
			
		||||
::
 | 
			
		||||
 | 
			
		||||
::alert{type="warning"}
 | 
			
		||||
:::list{type="warning"}
 | 
			
		||||
- Uptime-Kuma n'utilise pas d'authentification multifacteur. Exposer Uptime-Kuma sur internet pourrait compromettre les machines auxquelles il est relié. Ne le faite que si vous utilisez un systeme d'authentification multifacteur comme [Authentik](/serveex/securite/authentik/). Sinon, n'exposez pas avec SWAG et utilisez plutôt un VPN comme [Wireguard](/serveex/securite/wireguard).
 | 
			
		||||
- Uptime-Kuma does not use multi-factor authentication. Exposing Uptime-Kuma on the internet could compromise the machines it monitors. Only do this if you're using an MFA system like [Authentik](/serveex/securite/authentik/). Otherwise, don’t expose it with SWAG; use a VPN like [Wireguard](/serveex/securite/wireguard) instead.
 | 
			
		||||
:::
 | 
			
		||||
::
 | 
			
		||||
 | 
			
		||||
Dans les dossiers de Swag, créez le fichier `stats.subdomain.conf`.
 | 
			
		||||
In the Swag folders, create the `stats.subdomain.conf` file.
 | 
			
		||||
 | 
			
		||||
::alert{type="success"}
 | 
			
		||||
✨ __Astuce pour les allergiques au terminal :__
 | 
			
		||||
vous pouvez utiliser [File Browser](/serveex/files/file-browser) pour naviguer dans vos fichier et éditer vos documents au lieu d'utiliser les commandes du terminal.
 | 
			
		||||
✨ __Tip for those who dislike the terminal:__
 | 
			
		||||
you can use [File Browser](/serveex/files/file-browser) to browse and edit your files instead of using terminal commands.
 | 
			
		||||
::
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
sudo vi /docker/swag/config/nginx/proxy-confs/stats.subdomain.conf
 | 
			
		||||
```
 | 
			
		||||
Entrez en modification avec la touche `i` et collez la configuration ci-dessous :
 | 
			
		||||
Enter insert mode with `i` and paste the following config:
 | 
			
		||||
 | 
			
		||||
```nginx
 | 
			
		||||
## Version 2023/12/19
 | 
			
		||||
@@ -139,43 +140,48 @@ server {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
 | 
			
		||||
 | 
			
		||||
Rendez-vous dans dockge, et éditez le compose de SWAG en ajoutant le réseau d'Uptime-Kuma :
 | 
			
		||||
Press `Esc`, then save and exit with `:x` and `Enter`.
 | 
			
		||||
 | 
			
		||||
In Dockge, edit the SWAG compose and add the Uptime-Kuma network:
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
services:
 | 
			
		||||
  swag:
 | 
			
		||||
     container_name: # ...
 | 
			
		||||
      # ... 
 | 
			
		||||
     networks:                 # Relie le conteneur au réseau custom 
 | 
			
		||||
     networks:                 # Link container to custom network 
 | 
			
		||||
      # ...           
 | 
			
		||||
      - uptime-kuma            # Nom du réseau déclaré dans la stack
 | 
			
		||||
    
 | 
			
		||||
networks:                      # Définit le réseau custom
 | 
			
		||||
      - uptime-kuma            # Name of the declared network
 | 
			
		||||
 | 
			
		||||
networks:                      # Define custom network
 | 
			
		||||
  # ...
 | 
			
		||||
  uptime-kuma:                 # Nom du réseau déclaré dans la stack
 | 
			
		||||
    name: uptime-kuma_default  # Nom véritable du réseau externe
 | 
			
		||||
    external: true             # Précise que c'est un réseau à rechercher en externe
 | 
			
		||||
  uptime-kuma:                 # Name of the declared network
 | 
			
		||||
    name: uptime-kuma_default  # Actual name of the external network
 | 
			
		||||
    external: true             # Specifies it's an external network
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Relancez la stack et patientez le temps que SWAG soit complètement opérationnel.
 | 
			
		||||
Restart the stack and wait until SWAG is fully operational.
 | 
			
		||||
 | 
			
		||||
::alert{type="info"}
 | 
			
		||||
:::list{type="info"}
 | 
			
		||||
- Ici nous partons du principe que le nom du réseau de Uptime-Kuma est `uptime-kuma_default`. Vous pouvez vérifier que la connexion est opérationnelle en visitant le dashboard de SWAG en tapant `http://ipduserveur:81`.
 | 
			
		||||
- Here we assume that the network name of Uptime-Kuma is `uptime-kuma_default`. You can verify the connection by visiting SWAG's dashboard at `http://yourserverip:81`.
 | 
			
		||||
:::
 | 
			
		||||
::
 | 
			
		||||
 | 
			
		||||
Et voilà, vous avez exposé Uptime-Kuma, vous pouvez y accéder en tapant `https://stats.mondomaine.fr`
 | 
			
		||||
That's it! Uptime-Kuma is now exposed, and you can access it via `https://stats.mydomain.com`.
 | 
			
		||||
 | 
			
		||||
::alert{type="success"}
 | 
			
		||||
✨ __Astuce :__ 
 | 
			
		||||
✨ __Tip:__ 
 | 
			
		||||
<br/><br>
 | 
			
		||||
Vous pouvez protéger cette app avec Authentik en ouvrant `stats.subodmain.conf` et en retirant les `#` devant `include /config/nginx/authentik-server.conf;`{lang=nginx} et `include /config/nginx/authentik-location.conf;`{lang=nginx}. N'oubliez pas de [créer une application et un fournisseur dans Authentik](/serveex/securite/authentik#protéger-une-app-par-reverse-proxy). Si vous souhaitez que la page publique de stats soit joignable par tout le monde sans authentification:
 | 
			
		||||
You can protect this app with Authentik by opening `stats.subdomain.conf` and uncommenting the lines:  
 | 
			
		||||
`include /config/nginx/authentik-server.conf;`  
 | 
			
		||||
and  
 | 
			
		||||
`include /config/nginx/authentik-location.conf;`.  
 | 
			
		||||
Don’t forget to [create an application and provider in Authentik](/serveex/securite/authentik#protéger-une-app-par-reverse-proxy). If you want the public stats page to be accessible without authentication:
 | 
			
		||||
 | 
			
		||||
- Editez le fournisseur d'Uptime-Kuma
 | 
			
		||||
- Dans *paramètres avancés du protocole > chemins authentifiés*, saisissez :
 | 
			
		||||
- Edit the Uptime-Kuma provider
 | 
			
		||||
- In *Advanced Protocol Settings > Authenticated Paths*, enter:
 | 
			
		||||
 | 
			
		||||
    ```properties
 | 
			
		||||
    ^/$
 | 
			
		||||
@@ -188,11 +194,10 @@ Vous pouvez protéger cette app avec Authentik en ouvrant `stats.subodmain.conf`
 | 
			
		||||
    ^/metrics    
 | 
			
		||||
::
 | 
			
		||||
 | 
			
		||||
Déployez à nouveau la stack.
 | 
			
		||||
 | 
			
		||||
Uptime-Kuma sera ainsi joignable directement depuis internet en tapant `https://stats.mondomaine.fr`.
 | 
			
		||||
Redeploy the stack.
 | 
			
		||||
 | 
			
		||||
Uptime-Kuma will then be publicly reachable via `https://stats.mydomain.com`.
 | 
			
		||||
 | 
			
		||||
::alert{type="success"}
 | 
			
		||||
✨ __Astuce :__ Si vous utilisez Authentik et que vous ne craignez pas d'exposer votre panneau admin à votre réseau local, vous pouvez désactiver l'authentification d'Uptime-Kuma via les paramètres, afin de ne garder que celle d'Authentik.
 | 
			
		||||
::
 | 
			
		||||
✨ __Tip:__ If you're using Authentik and don't mind exposing the admin panel to your local network, you can disable Uptime-Kuma's native authentication in its settings and rely solely on Authentik.
 | 
			
		||||
::
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user