From 6696ed9b23c773ca1adcda75ff85103b4c9b1a14 Mon Sep 17 00:00:00 2001 From: Djeex Date: Mon, 31 Aug 2026 22:12:47 +0200 Subject: [PATCH] Name and icon code blocks by real filename across the site --- app/app.config.ts | 7 ++- content/en/2.general/1.networking/3.samba.md | 4 +- content/en/3.serveex/2.core/2.docker.md | 8 ++-- content/en/3.serveex/2.core/3.swag.md | 29 +++++++++---- .../en/3.serveex/3.security/1.wireguard.md | 6 +-- .../en/3.serveex/3.security/2.authentik.md | 16 +++---- .../en/3.serveex/3.security/3.cloudflare.md | 10 ++--- .../3.serveex/4.monitoring/1.uptime-kuma.md | 8 ++-- content/en/3.serveex/4.monitoring/2.dozzle.md | 10 ++--- .../4.monitoring/3.speedtest-tracker.md | 8 ++-- content/en/3.serveex/4.monitoring/4.beszel.md | 14 +++--- content/en/3.serveex/4.monitoring/5.upsnap.md | 10 ++--- content/en/3.serveex/5.media/1.plex.md | 10 ++--- content/en/3.serveex/5.media/2.qbittorrent.md | 12 +++--- content/en/3.serveex/5.media/3.servarr.md | 10 ++--- content/en/3.serveex/6.cloud/1.immich.md | 4 +- content/en/3.serveex/6.cloud/2.nextcloud.md | 12 +++--- .../en/3.serveex/7.files/1.file-browser.md | 8 ++-- content/en/3.serveex/7.files/2.pingvin.md | 8 ++-- .../3.serveex/8.development/1.code-server.md | 12 +++--- content/en/3.serveex/8.development/2.gitea.md | 10 ++--- .../en/3.serveex/8.development/3.it-tools.md | 8 ++-- content/en/3.serveex/9.apps/1.adguard.md | 8 ++-- content/en/3.serveex/9.apps/2.vaultwarden.md | 10 ++--- content/en/4.stockeex/1.introduction.md | 2 +- content/en/5.nonsense/2.bash/3.socat-proxy.md | 2 +- .../2.bash/5.backrest-docker-stop.md | 4 +- .../6.recycled/1.deprecated/1.wireguard-14.md | 10 ++--- content/fr/2.general/1.networking/3.samba.md | 4 +- content/fr/3.serveex/2.core/2.docker.md | 8 ++-- content/fr/3.serveex/2.core/3.swag.md | 43 ++++++++++++------- .../fr/3.serveex/3.security/1.wireguard.md | 6 +-- .../fr/3.serveex/3.security/2.authentik.md | 16 +++---- .../fr/3.serveex/3.security/3.cloudflare.md | 10 ++--- .../3.serveex/4.monitoring/1.uptime-kuma.md | 8 ++-- content/fr/3.serveex/4.monitoring/2.dozzle.md | 10 ++--- .../4.monitoring/3.speedtest-tracker.md | 8 ++-- content/fr/3.serveex/4.monitoring/4.beszel.md | 14 +++--- content/fr/3.serveex/4.monitoring/5.upsnap.md | 10 ++--- content/fr/3.serveex/5.media/1.plex.md | 10 ++--- content/fr/3.serveex/5.media/2.qbittorrent.md | 12 +++--- content/fr/3.serveex/5.media/3.servarr.md | 10 ++--- content/fr/3.serveex/6.cloud/1.immich.md | 4 +- content/fr/3.serveex/6.cloud/2.nextcloud.md | 14 +++--- .../fr/3.serveex/7.files/1.file-browser.md | 8 ++-- content/fr/3.serveex/7.files/2.pingvin.md | 8 ++-- .../3.serveex/8.development/1.code-server.md | 12 +++--- content/fr/3.serveex/8.development/2.gitea.md | 10 ++--- .../fr/3.serveex/8.development/3.it-tools.md | 8 ++-- content/fr/3.serveex/9.apps/1.adguard.md | 8 ++-- content/fr/3.serveex/9.apps/2.vaultwarden.md | 10 ++--- content/fr/4.stockeex/1.introduction.md | 2 +- content/fr/5.nonsense/2.bash/3.socat-proxy.md | 2 +- .../2.bash/5.backrest-docker-stop.md | 4 +- .../6.recycled/1.deprecated/1.wireguard-14.md | 10 ++--- 55 files changed, 277 insertions(+), 252 deletions(-) diff --git a/app/app.config.ts b/app/app.config.ts index 7f0da79..3824919 100644 --- a/app/app.config.ts +++ b/app/app.config.ts @@ -31,11 +31,14 @@ export default defineAppConfig({ base: 'bg-[rgba(12,13,12,0.8)] border-[#121110]', }, }, - // Custom code-block header icons, keyed by lowercase `[label]` text - // (see ```text [Arborescence] / ```text [Directory tree] blocks). + // Custom code-block header icons. Full labels (```text [Arborescence]) + // match by exact lowercase filename; bare extensions (no filename + // match) fall back to matching any ```lang [*.ext] label. codeIcon: { 'arborescence': 'i-lucide-folder-tree', 'directory tree': 'i-lucide-folder-tree', + 'ini': 'i-lucide-settings', + 'conf': 'i-lucide-settings', }, pre: { slots: { diff --git a/content/en/2.general/1.networking/3.samba.md b/content/en/2.general/1.networking/3.samba.md index 12cf30c..e88ebee 100644 --- a/content/en/2.general/1.networking/3.samba.md +++ b/content/en/2.general/1.networking/3.samba.md @@ -48,7 +48,7 @@ Find the `workgroup` variable and name your workgroup (e.g., `workgroup = WORKGR Then scroll to the end of the file and add the following configuration: -```properties +```properties [smb.conf] [video] comment = Video folder path = /video @@ -145,7 +145,7 @@ sudo nano /smb/.credentials Write: -```properties +```properties [.credentials] username=smbuser password=password ``` diff --git a/content/en/3.serveex/2.core/2.docker.md b/content/en/3.serveex/2.core/2.docker.md index 35a79c3..3083387 100644 --- a/content/en/3.serveex/2.core/2.docker.md +++ b/content/en/3.serveex/2.core/2.docker.md @@ -84,7 +84,7 @@ sudo nano compose.yml ``` Paste the following: -```yaml +```yaml [compose.yaml] --- services: dockge: @@ -130,7 +130,7 @@ Watchtower is a container that checks for updates and pulls new images automatic - Name the stack `watchtower` - Paste the config below into the default config area in Dockge -```yaml +```yaml [compose.yaml] --- services: watchtower: @@ -158,7 +158,7 @@ services: Then fill in the `.env` section in Dockge with the following: -```properties +```properties [.env] SCHEDULE= WH_URL= ``` @@ -170,7 +170,7 @@ WH_URL= To have Watchtower monitor your other containers, add this to their `compose.yml`: -```yaml +```yaml [compose.yaml] labels: - com.centurylinklabs.watchtower.enable=true diff --git a/content/en/3.serveex/2.core/3.swag.md b/content/en/3.serveex/2.core/3.swag.md index f42ab3c..77dd58b 100644 --- a/content/en/3.serveex/2.core/3.swag.md +++ b/content/en/3.serveex/2.core/3.swag.md @@ -57,7 +57,7 @@ root Open Dockge in your browser, click on `compose`, name the stack `swag`, and copy the following config: -```yaml +```yaml [compose.yaml] --- services: swag: @@ -101,7 +101,7 @@ networks: ✨ __Tip:__ Add the watchtower label to each container to enable automatic updates -```yaml +```yaml [compose.yaml] services: swag: #... @@ -113,7 +113,7 @@ services: Then in the `.env` file: -```properties +```properties [.env] DOMAIN= DOMAINS= EMAIL= @@ -144,7 +144,7 @@ sudo nano /docker/swag/config/dns-conf/ovh.ini You should see: -```properties +```properties [ovh.ini] # Instructions: https://github.com/certbot/certbot/blob/master/certbot-dns-ovh/certbot_dns_ovh/__init__.py#L20 # Replace with your values dns_ovh_endpoint = ovh-eu @@ -174,7 +174,7 @@ sudo nano /docker/swag/config/nginx/nginx.conf Add the following line below the `http` section: -```nginx +```nginx [nginx.conf] include /config/nginx/dbip.conf; ``` @@ -201,7 +201,7 @@ sudo nano /docker/swag/config/nginx/dbip.conf Make your changes ([see documentation](https://github.com/linuxserver/docker-mods/tree/swag-dbip)), or use the following example: -```nginx +```nginx [dbip.conf] geoip2 /config/geoip2db/dbip-country-lite.mmdb { auto_reload 1w; $geoip2_data_continent_code continent code; @@ -249,18 +249,29 @@ Save and close the file. Restart the stack. In the domain config files (see next section), you can enable or disable the whitelist or blacklist ([see documentation here](https://www.forum-nas.fr/threads/tuto-installer-swag-en-docker-reverse-proxy.15057/)). In our case, the whitelist allows only French requests. The blacklist blocks only the listed countries. We'll use the blacklist, like so: -```nginx +```nginx [some-app.subdomain.conf]{11} server { listen 443 ssl; listen [::]:443 ssl; server_name some-app.*; + include /config/nginx/ssl.conf; + client_max_body_size 0; if ($geo-blacklist = no) { return 404; } location / { + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + + set $upstream_app some-app; + set $upstream_port 1234; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + } +} ``` ## Exposing Dockge @@ -284,7 +295,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/dockge.subdomain.conf Configure it like this: -```nginx +```nginx [dockge.subdomain.conf] ## Version 2023/12/19 server { @@ -333,7 +344,7 @@ By default, SWAG doesn’t recognize the name "dockge". You’ll need to add Doc Go to the SWAG stack, click `edit`, and modify the config file like this (note the `networks` section): -```yaml +```yaml [compose.yaml] services: swag: container_name: #... diff --git a/content/en/3.serveex/3.security/1.wireguard.md b/content/en/3.serveex/3.security/1.wireguard.md index f38a722..844aa11 100644 --- a/content/en/3.serveex/3.security/1.wireguard.md +++ b/content/en/3.serveex/3.security/1.wireguard.md @@ -76,7 +76,7 @@ Open Dockge, click **Compose**, and name the stack `wg_easy`. Copy the following configuration: -```yaml +```yaml [compose.yaml] --- services: wg-easy: @@ -128,7 +128,7 @@ networks: - You can customize WireGuard and web UI ports. - Add a Watchtower label for automatic updates: -```yaml +```yaml [compose.yaml] services: wg-easy: # ... @@ -209,7 +209,7 @@ sudo cp ~/wg0.conf /docker/wireguard/config/wg_confs Create the `compose.yaml` file in `/docker/wireguard`: -```yaml +```yaml [compose.yaml] services: wireguard: image: lscr.io/linuxserver/wireguard:latest diff --git a/content/en/3.serveex/3.security/2.authentik.md b/content/en/3.serveex/3.security/2.authentik.md index 118f4f1..b271dae 100644 --- a/content/en/3.serveex/3.security/2.authentik.md +++ b/content/en/3.serveex/3.security/2.authentik.md @@ -75,7 +75,7 @@ To generate the keys, we created the folders ahead of deployment using Dockge. D Open Dockge and search for "authentik" in the inactive stacks. Name the stack `authentik` and paste the following configuration, replacing `{AUTHENTIK_TAG:-2026.2}`{lang=properties} with [the latest version of Authentik](https://goauthentik.io/docs/releases). -```yaml +```yaml [compose.yaml] --- services: @@ -221,7 +221,7 @@ sudo nano /docker/swag/config/nginx/authentik-server.conf Verify that the following variables are set correctly: -```nginx +```nginx [authentik-server.conf] set $upstream_authentik authentik-server; proxy_pass http://$upstream_authentik:9000; ``` @@ -236,7 +236,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/auth.subdomain.conf Paste the following configuration: -```nginx +```nginx [auth.subdomain.conf] ## Version 2023/05/31 # Ensure your authentik container is named authentik-server # Ensure your DNS has a CNAME for authentik @@ -275,7 +275,7 @@ Save with :kbd{value="Ctrl+O"}, then :kbd{value="Enter"}, and exit with :kbd{val Go to Dockge, and edit the SWAG compose file to add the Authentik network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -441,7 +441,7 @@ sudo nano /docker/authentik-outpost/compose.yaml ``` Paste the following configuration, updating the version in `{AUTHENTIK_TAG:proxy:2024.2.3}`{lang=properties} to match your Authentik server version. -```yaml +```yaml [compose.yaml] version: "3.5" services: authentik_proxy: @@ -469,7 +469,7 @@ Go to the SWAG stack on the remote machine (or edit directly using Dockge) and a sudo nano /docker/swag/compose.yaml ``` -```yaml +```yaml [compose.yaml] services: swag: container_name: #... @@ -511,7 +511,7 @@ sudo nano /docker/authentik-outpost/.env Paste the following configuration: -```properties +```properties [.env] HOST= TOKEN= ``` @@ -546,7 +546,7 @@ sudo nano /docker/swag/config/nginx/authentik-server.conf In the file, change `authentik-server` to `authentik-outpost` as shown: -```nginx +```nginx [authentik-server.conf] set $upstream_authentik authentik-outpost; proxy_pass http://$upstream_authentik:9000; ``` diff --git a/content/en/3.serveex/3.security/3.cloudflare.md b/content/en/3.serveex/3.security/3.cloudflare.md index 89d42de..d436235 100644 --- a/content/en/3.serveex/3.security/3.cloudflare.md +++ b/content/en/3.serveex/3.security/3.cloudflare.md @@ -99,7 +99,7 @@ sudo nano /docker/swag/config/tunnelconfig.yml Paste: -```yaml +```yaml [tunnelconfig.yml] ingress: - hostname: mondomaine.fr @@ -125,7 +125,7 @@ sudo nano /docker/swag/config/nginx/nginx.conf Add the following at the end of the `http` section: -```nginx +```nginx [nginx.conf] real_ip_header X-Forwarded-For; real_ip_recursive on; include /config/nginx/cf_real-ip.conf; @@ -138,7 +138,7 @@ Save with :kbd{value="Ctrl+O"}, then :kbd{value="Enter"}, and exit with :kbd{val In Dockge, edit your SWAG stack with this: -```yaml +```yaml [compose.yaml] --- services: swag: @@ -183,7 +183,7 @@ services: ::tip{icon=""} ✨ __Tip:__ Add a Watchtower label to automate updates: -```yaml +```yaml [compose.yaml] labels: - com.centurylinklabs.watchtower.enable=true @@ -192,7 +192,7 @@ labels: Fill in your `.env` file: -```properties +```properties [.env] PUID= PGID= DOMAIN= diff --git a/content/en/3.serveex/4.monitoring/1.uptime-kuma.md b/content/en/3.serveex/4.monitoring/1.uptime-kuma.md index e7705e7..f7b7514 100644 --- a/content/en/3.serveex/4.monitoring/1.uptime-kuma.md +++ b/content/en/3.serveex/4.monitoring/1.uptime-kuma.md @@ -32,7 +32,7 @@ root Open Dockge, click on `compose`, name the stack `uptime-kuma`, then copy and paste the following: -```yaml +```yaml [compose.yaml] --- services: uptime-kuma: @@ -49,7 +49,7 @@ services: ::tip{icon=""} ✨ __Tip:__ Add the Watchtower label to each container to automate updates - ```yaml + ```yaml [compose.yaml] services: uptime-kuma: #... @@ -90,7 +90,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/stats.subdomain.conf ``` Paste the following config: -```nginx +```nginx [stats.subdomain.conf] ## Version 2023/12/19 server { @@ -145,7 +145,7 @@ Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ct In Dockge, edit the SWAG compose and add the Uptime-Kuma network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... diff --git a/content/en/3.serveex/4.monitoring/2.dozzle.md b/content/en/3.serveex/4.monitoring/2.dozzle.md index 7a30c48..512bb18 100644 --- a/content/en/3.serveex/4.monitoring/2.dozzle.md +++ b/content/en/3.serveex/4.monitoring/2.dozzle.md @@ -30,7 +30,7 @@ root Open Dockge, click on `compose`, name the stack `dozzle`, then copy and paste the following: -```yaml +```yaml [compose.yaml] --- services: dozzle: @@ -53,7 +53,7 @@ services: ::tip{icon=""} ✨ __Tip:__ Add the watchtower label to each container to automate updates - ```yaml + ```yaml [compose.yaml] services: dozzle: #... @@ -65,7 +65,7 @@ services: Fill in your domain name in the `.env` file, for example: -```properties +```properties [.env] DOMAIN=dozzle.mydomain.com ``` @@ -88,7 +88,7 @@ We assume you have created a subdomain like `dozzle.mydomain.com` in your [DNS z Go to Dockge and edit the SWAG compose file to add Dozzle’s network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -123,7 +123,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/dozzle.subdomain.conf ``` Paste the configuration below: -```nginx +```nginx [dozzle.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/en/3.serveex/4.monitoring/3.speedtest-tracker.md b/content/en/3.serveex/4.monitoring/3.speedtest-tracker.md index c85abf0..9b85080 100644 --- a/content/en/3.serveex/4.monitoring/3.speedtest-tracker.md +++ b/content/en/3.serveex/4.monitoring/3.speedtest-tracker.md @@ -44,7 +44,7 @@ Take note of the key. Open Dockge, click on `compose`, name the stack `speedtest-tracker`, then paste the following: -```yaml +```yaml [compose.yaml] --- services: speedtest-tracker: @@ -75,7 +75,7 @@ id yourusername In the `.env` file, set the variable `API_KEY` with the key you generated and add a cron-style test schedule, as well as your `PUID` and `GUID`, for example: -```properties +```properties [.env] SCHEDULE=15 */6 * * * # every 6 hours API_KEY=base64:zihejehkj8_nzhY/OjeieR= # your key PUID=1000 @@ -110,7 +110,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/speedtest.subdomain.conf Configure it like this: -```nginx +```nginx [speedtest.subdomain.conf] ## Version 2023/12/19 server { @@ -162,7 +162,7 @@ By default, SWAG doesn’t know the name "speedtest-tracker". To allow access, y Go to Dockge, and edit SWAG’s compose to include Speedtest Tracker’s network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... diff --git a/content/en/3.serveex/4.monitoring/4.beszel.md b/content/en/3.serveex/4.monitoring/4.beszel.md index 229a40c..b5f318a 100644 --- a/content/en/3.serveex/4.monitoring/4.beszel.md +++ b/content/en/3.serveex/4.monitoring/4.beszel.md @@ -36,7 +36,7 @@ root Open Dockge, click `compose`, name the stack `beszel`, and paste the following: -```yaml +```yaml [compose.yaml] --- services: beszel: @@ -69,7 +69,7 @@ services: ::tip{icon=""} ✨ __Tip:__ Add the Watchtower label to each container to automate updates. -```yaml +```yaml [compose.yaml] services: beszel: #... @@ -81,7 +81,7 @@ services: Fill out the `.env` file, for example: -```properties +```properties [.env] PORT=8090 # web UI port KEY= # private key to retrieve from Beszel when adding a system ``` @@ -115,7 +115,7 @@ You can also monitor a remote server. To do so, run the agent on the remote serv Beszel will suggest a `compose.yaml` to deploy on the remote server, or you can use: -```yaml +```yaml [compose.yaml] --- services: beszel-agent: @@ -133,7 +133,7 @@ services: And in `.env`: -```properties +```properties [.env] PORT=45876 # communication port between hub and remote agent KEY= # private key from Beszel when adding the system ``` @@ -162,7 +162,7 @@ You must have created a DNS subdomain like `beszel.mydomain.com` with a `CNAME` In Dockge, edit Swag's compose file and add Beszel’s network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -198,7 +198,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/beszel.subdomain.conf Paste: -```nginx +```nginx [beszel.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/en/3.serveex/4.monitoring/5.upsnap.md b/content/en/3.serveex/4.monitoring/5.upsnap.md index 6cdd167..4d01b04 100644 --- a/content/en/3.serveex/4.monitoring/5.upsnap.md +++ b/content/en/3.serveex/4.monitoring/5.upsnap.md @@ -31,7 +31,7 @@ root Open Dockge, click on `compose`, name the stack `upsnap`, then copy and paste the following: -```yaml +```yaml [compose.yaml] --- services: upsnap: @@ -60,7 +60,7 @@ services: ::tip{icon=""} ✨ __Tip:__ Add the watchtower label to each container to automate updates - ```yaml + ```yaml [compose.yaml] services: upsnap: #... @@ -72,7 +72,7 @@ services: Fill in the `.env`, for example: -```properties +```properties [.env] RANGE=192.168.1.0/24 # scans all devices on the local network with an IP between 192.168.0.1 and 192.168.1.255 DNS=192.168.1.1 # DNS IP to resolve domain names, typically your router’s IP ``` @@ -101,7 +101,7 @@ We assume you've created a subdomain in your [DNS zone](/general/networking/dns) Go to Dockge, and edit the SWAG compose by adding the UpSnap network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -136,7 +136,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/upsnap.subdomain.conf ``` And paste the following configuration: -```nginx +```nginx [upsnap.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/en/3.serveex/5.media/1.plex.md b/content/en/3.serveex/5.media/1.plex.md index ad1e72b..c03959c 100644 --- a/content/en/3.serveex/5.media/1.plex.md +++ b/content/en/3.serveex/5.media/1.plex.md @@ -58,7 +58,7 @@ mkdir -p /media/movies /media/library /media/tvseries Open Dockge in your browser and click `compose`. Name the stack `plex` and add the following config: -```yaml +```yaml [compose.yaml] --- services: linuxserver_plex: @@ -103,7 +103,7 @@ services: ::tip ✨ Add the Watchtower label to each container to automate updates: -```yaml +```yaml [compose.yaml] services: plex: #... @@ -127,7 +127,7 @@ id username Fill in your `.env` file with the retrieved values, for example: -```properties +```properties [.env] PUID=1000 GUID=1000 ``` @@ -182,7 +182,7 @@ We assume you have the subdomain `tautulli.mydomain.com` with a `CNAME` pointing Go to Dockge and edit SWAG’s compose file by adding Tautulli’s network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -219,7 +219,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/tautulli.subdomain.conf Ensure the configuration matches the following, and edit it if needed: -```nginx +```nginx [tautulli.subdomain.conf] ## Version 2023/05/31 # make sure that your tautulli container is named tautulli # make sure that your dns has a cname set for tautulli diff --git a/content/en/3.serveex/5.media/2.qbittorrent.md b/content/en/3.serveex/5.media/2.qbittorrent.md index f6c9a43..f6435ab 100644 --- a/content/en/3.serveex/5.media/2.qbittorrent.md +++ b/content/en/3.serveex/5.media/2.qbittorrent.md @@ -55,7 +55,7 @@ mkdir -P /media/downloads Open Dockge, click on `compose`, and name the stack `seedbox`. Paste the following config: -```yaml +```yaml [compose.yaml] services: qbit: @@ -115,7 +115,7 @@ services: ::tip{icon=""} ✨ __Tip:__ Add the Watchtower label in each container to automate updates -```yaml +```yaml [compose.yaml] services: qbittorrent: #... @@ -156,7 +156,7 @@ sudo nano /docker/gluetun/config.toml Enter: -```toml +```toml [config.toml] [[roles]] name = "t-anc/GSP-Qbittorent-Gluetun-sync-port-mod" routes = ["GET /v1/portforward"] @@ -168,7 +168,7 @@ Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ct In Dockge, fill in the variables in `.env`: -```properties +```properties [.env] PUID= GUID= UI_PORT= @@ -227,7 +227,7 @@ We assume you have the subdomain `seedbox.mydomain.com` with a `CNAME` pointing In Dockge, edit the SWAG compose file and add Gluetun’s network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -263,7 +263,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/seedbox.subdomain.conf Paste the following config (check the port): -```nginx +```nginx [seedbox.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/en/3.serveex/5.media/3.servarr.md b/content/en/3.serveex/5.media/3.servarr.md index 515bcff..bc7b497 100644 --- a/content/en/3.serveex/5.media/3.servarr.md +++ b/content/en/3.serveex/5.media/3.servarr.md @@ -64,7 +64,7 @@ Without hardlinks, the _arr_ apps will copy the files instead—**doubling the s :: Open Docker and your `plex` stack. Modify the compose file as follows: -```yaml +```yaml [compose.yaml] --- services: linuxserver_plex: @@ -198,7 +198,7 @@ services: ::tip ✨ Add the Watchtower label to each container to automate updates -```yaml +```yaml [compose.yaml] services: plex: #... @@ -216,7 +216,7 @@ services: Set your `.env` file with the variables below: -```properties +```properties [.env] PUID= GUID= MEDIA_PATH= @@ -420,7 +420,7 @@ We assume you have the subdomain `films.mydomain.com` with a `CNAME` pointing to Go to Dockge, edit the SWAG compose file, and add the Overseerr network, which is the same as Plex (since it’s in the Plex stack): -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -456,7 +456,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/films.subdomain.conf Paste the following: -```nginx +```nginx [films.subdomain.conf] ## Version 2024/07/16 # make sure that your overseerr container is named overseerr # make sure that your dns has a cname set for overseerr diff --git a/content/en/3.serveex/6.cloud/1.immich.md b/content/en/3.serveex/6.cloud/1.immich.md index a014813..f36069e 100644 --- a/content/en/3.serveex/6.cloud/1.immich.md +++ b/content/en/3.serveex/6.cloud/1.immich.md @@ -60,7 +60,7 @@ We assume that you have a subdomain `immich.yourdomain.com` with a `CNAME` point In Dockge, open the SWAG stack and edit the compose file to add Immich's network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -96,7 +96,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/immich.subdomain.conf ``` Then paste the following configuration: -```nginx +```nginx [immich.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/en/3.serveex/6.cloud/2.nextcloud.md b/content/en/3.serveex/6.cloud/2.nextcloud.md index 6391483..8eda31d 100644 --- a/content/en/3.serveex/6.cloud/2.nextcloud.md +++ b/content/en/3.serveex/6.cloud/2.nextcloud.md @@ -35,7 +35,7 @@ root Open Dockge, click on `compose`, name the stack `nextcloud` and paste the following: -```yaml +```yaml [compose.yaml] --- services: nextcloud: @@ -69,7 +69,7 @@ id username Then fill out the `.env` file with your preferred port and the values found above, for example: -```properties +```properties [.env] PUID=1000 GUID=1000 PORT=4545 @@ -92,7 +92,7 @@ We assume you have a subdomain `nextcloud.yourdomain.com` with a `CNAME` pointin In Dockge, go to your SWAG stack and edit the compose to add Nextcloud's network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -128,7 +128,7 @@ sudo nano /docker/nextcloud/config/www/nextcloud/config/config.php Paste the following before the final `);`: -```php +```php [config.php] 'trusted_proxies' => [gethostbyname('swag')], 'overwrite.cli.url' => 'https://nextcloud.example.com/', 'overwritehost' => 'nextcloud.example.com', @@ -137,7 +137,7 @@ Paste the following before the final `);`: Also add your domain in the `array` section. It should look like this: -```php +```php [config.php] array ( 0 => '192.168.0.1:444', # This line may differ—don’t change it! 1 => 'nextcloud.yourdomain.com', # Add your domain here @@ -154,7 +154,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/nextcloud.subdomain.conf Paste the following: -```nginx +```nginx [nextcloud.subdomain.conf] ## Version 2024/04/25 server { listen 443 ssl; diff --git a/content/en/3.serveex/7.files/1.file-browser.md b/content/en/3.serveex/7.files/1.file-browser.md index 2b23bb4..5f80623 100644 --- a/content/en/3.serveex/7.files/1.file-browser.md +++ b/content/en/3.serveex/7.files/1.file-browser.md @@ -21,7 +21,7 @@ description: Install File Browser to browse and manage your server files from a ## Installation Open Dockge, click on `compose`, name the stack `filebrowser`, then copy and paste the following: -```yaml +```yaml [compose.yaml] --- services: filebrowser: @@ -39,7 +39,7 @@ services: ::tip{icon=""} ✨ __Tip:__ Add the watchtower label to each container to automate updates. - ```yaml + ```yaml [compose.yaml] services: filebrowser: #... @@ -72,7 +72,7 @@ __Pre-requisite:__ We assume you've already created a subdomain like `files.your In Dockge, go to the SWAG stack and edit the compose file to add File Browser’s network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -104,7 +104,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/files.subdomain.conf And paste the following configuration: -```nginx +```nginx [files.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/en/3.serveex/7.files/2.pingvin.md b/content/en/3.serveex/7.files/2.pingvin.md index aa1434e..a312c5b 100644 --- a/content/en/3.serveex/7.files/2.pingvin.md +++ b/content/en/3.serveex/7.files/2.pingvin.md @@ -21,7 +21,7 @@ description: Install Pingvin Share, a self-hosted file sharing platform to send ## Installation Open Dockge, click `compose`, name the stack `pingvin`, then copy-paste this: -```yaml +```yaml [compose.yaml] --- services: pingvin-share: @@ -55,7 +55,7 @@ From here on, we assume the network name for Swag is `swag_default`. ::tip{icon=""} ✨ __Tip:__ Add the watchtower label to each container to automate updates. - ```yaml + ```yaml [compose.yaml] services: pingvin-share: #... @@ -88,7 +88,7 @@ We assume you have the subdomain `pingvin.mydomain.com` with a `CNAME` pointing In Dockge, go to the SWAG stack and edit the compose file to add the pingvin network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -124,7 +124,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/pingvin.subdomain.conf ``` Paste the configuration below: -```nginx +```nginx [pingvin.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/en/3.serveex/8.development/1.code-server.md b/content/en/3.serveex/8.development/1.code-server.md index f9792c2..cfb60fd 100644 --- a/content/en/3.serveex/8.development/1.code-server.md +++ b/content/en/3.serveex/8.development/1.code-server.md @@ -37,7 +37,7 @@ root Open Dockge, click on `compose`, name the stack `code-server`, and paste the following: -```yaml +```yaml [compose.yaml] --- services: code-server: @@ -63,7 +63,7 @@ services: ::tip ✨ Add the Watchtower label to each container to automate updates - ```yaml + ```yaml [compose.yaml] services: code-server: #... @@ -87,7 +87,7 @@ id yourusername Fill in the `.env` file with the values you found, for example: -```properties +```properties [.env] PW='$argon2i$v=19$m=4096,t=3,p=1$wST5QhBgk2lu1ih4DMuxvg$LS1alrVdIWtvZHwnzCM1DUGg+5DTO3Dt1d5v9XtLws4' PUID=1000 GUID=1000 @@ -108,7 +108,7 @@ __If it fails:__ check your firewall rules. ## Mount Folders You can mount folders into VS Code by adding the relevant volumes in `compose.yaml` (or via Dockge), then redeploy the container. -```yaml +```yaml [compose.yaml] services: code-server: #... @@ -128,7 +128,7 @@ __Preliminary:__ We assume you’ve created a subdomain like `code.yourdomain.co In Dockge, go to the SWAG stack and edit the compose file to add code-server’s network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -164,7 +164,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/code.subdomain.conf Paste the following configuration: -```nginx +```nginx [code.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/en/3.serveex/8.development/2.gitea.md b/content/en/3.serveex/8.development/2.gitea.md index 708d9fd..dfd781c 100644 --- a/content/en/3.serveex/8.development/2.gitea.md +++ b/content/en/3.serveex/8.development/2.gitea.md @@ -30,7 +30,7 @@ root Open Dockge, click on `compose`, name the stack `gitea`, and paste the following content: -```yaml +```yaml [compose.yaml] --- networks: gitea: @@ -59,7 +59,7 @@ services: Fill out the `.env` file with the required information, for example: -```properties +```properties [.env] UID=1000 GID=1000 ``` @@ -81,7 +81,7 @@ __Prerequisite:__ We assume you have created a subdomain such as `gitea.yourdoma In Dockge, go to the SWAG stack and edit the compose file by adding Gitea's network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -116,7 +116,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/gitea.subdomain.conf ``` Paste the configuration below: -```nginx +```nginx [gitea.subdomain.conf] ## Version 2023/12/19 server { @@ -183,7 +183,7 @@ sudo nano /docker/gitea/data/gitea/conf/app.ini Then modify the server section with your domain information: -```properties +```properties [app.ini] [server] DOMAIN = gitea.yourdomain.com SSH_DOMAIN = gitea.yourdomain.com diff --git a/content/en/3.serveex/8.development/3.it-tools.md b/content/en/3.serveex/8.development/3.it-tools.md index 864aad0..237b314 100644 --- a/content/en/3.serveex/8.development/3.it-tools.md +++ b/content/en/3.serveex/8.development/3.it-tools.md @@ -22,7 +22,7 @@ description: Install IT Tools, a self-hosted collection of handy utilities for d Open Dockge, click on `compose`, name the stack `it-tools`, and paste the following: -```yaml +```yaml [compose.yaml] --- services: it-tools: @@ -37,7 +37,7 @@ services: ::tip{icon=""} ✨ __Tip:__ Add the Watchtower label to each container to enable automatic updates. - ```yaml + ```yaml [compose.yaml] services: it-tools: #... @@ -64,7 +64,7 @@ __Pre-requisite:__ We assume you’ve created a subdomain like `tools.yourdomain In Dockge, go to the SWAG stack and edit the compose file to add the IT Tools network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -105,7 +105,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/tools.subdomain.conf Paste the configuration below: -```nginx +```nginx [tools.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/en/3.serveex/9.apps/1.adguard.md b/content/en/3.serveex/9.apps/1.adguard.md index e8c8759..20d6ab5 100644 --- a/content/en/3.serveex/9.apps/1.adguard.md +++ b/content/en/3.serveex/9.apps/1.adguard.md @@ -59,7 +59,7 @@ Open Dockge and click `compose` Name the stack `adguardhome` and paste the configuration below: -```yaml +```yaml [compose.yaml] --- services: adguardhome: @@ -83,7 +83,7 @@ services: ::tip{icon=""} ✨ __Tip:__ Add the watchtower label to each container to automate updates -```yaml +```yaml [compose.yaml] services: adguardhome: # ... @@ -114,7 +114,7 @@ Do not use Cloudflare tunnels to expose AdGuard, and make sure any proxying is d In Dockge, go to the SWAG stack and edit the compose file to add the AdGuard network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -151,7 +151,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/adguard.subdomain.conf Paste the configuration below: -```nginx +```nginx [adguard.subdomain.conf] ## Version 2023/05/31 # make sure that your adguard container is named adguard # make sure that your dns has a cname set for adguard diff --git a/content/en/3.serveex/9.apps/2.vaultwarden.md b/content/en/3.serveex/9.apps/2.vaultwarden.md index cacb59d..743f6db 100644 --- a/content/en/3.serveex/9.apps/2.vaultwarden.md +++ b/content/en/3.serveex/9.apps/2.vaultwarden.md @@ -31,7 +31,7 @@ root Open Dockge, click on `compose`, name the stack `vaultwarden`, and paste the following: -```yaml +```yaml [compose.yaml] --- services: vaultwarden: @@ -67,7 +67,7 @@ services: ::tip{icon=""} ✨ __Tip:__ Add the Watchtower label in each container to automate updates -```yaml +```yaml [compose.yaml] services: vaultwarden: #... @@ -87,7 +87,7 @@ Copy the result securely. In the `.env` file, enter the following variables: -```properties +```properties [.env] URL= TOKEN= ``` @@ -115,7 +115,7 @@ The main benefit of Vaultwarden is being able to access it remotely from any dev In Dockge, go to the SWAG stack and edit the compose file to add the Vaultwarden network: -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -151,7 +151,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/vault.subdomain.conf And paste the following configuration: -```nginx +```nginx [vault.subdomain.conf] server { listen 443 ssl; listen [::]:443 ssl; diff --git a/content/en/4.stockeex/1.introduction.md b/content/en/4.stockeex/1.introduction.md index fb059c9..31ca91e 100644 --- a/content/en/4.stockeex/1.introduction.md +++ b/content/en/4.stockeex/1.introduction.md @@ -9,7 +9,7 @@ navigation: :ellipsis{left=0px width=40rem top=10rem blur=140px zIndex=60} # Stockeex -```console +```console [Terminal] sudo systemctl status stockeex-article currently writing, come back later... -- diff --git a/content/en/5.nonsense/2.bash/3.socat-proxy.md b/content/en/5.nonsense/2.bash/3.socat-proxy.md index 9b586c4..c23cfd6 100644 --- a/content/en/5.nonsense/2.bash/3.socat-proxy.md +++ b/content/en/5.nonsense/2.bash/3.socat-proxy.md @@ -29,7 +29,7 @@ In short: For example, with Beszel, the configuration would look like this: -```yaml +```yaml [compose.yaml] services: socat-proxy: image: git.djeex.fr/djeex/socat-proxy:latest diff --git a/content/en/5.nonsense/2.bash/5.backrest-docker-stop.md b/content/en/5.nonsense/2.bash/5.backrest-docker-stop.md index 04f8cca..f15cff5 100644 --- a/content/en/5.nonsense/2.bash/5.backrest-docker-stop.md +++ b/content/en/5.nonsense/2.bash/5.backrest-docker-stop.md @@ -27,7 +27,7 @@ To allow **Backrest** to communicate securely with Docker, we’ll use [Docker S This avoids exposing the full Docker socket and grants only the necessary permissions. Here’s an example Docker stack: -```yaml +```yaml [compose.yaml] --- services: backrest: @@ -109,7 +109,7 @@ sleep 10 Once the scripts are in place and configured for the proper **Backrest** hooks, you just need to add the label `backrest.backup.stop=true` to the `compose.yaml` files of the containers that should stop and restart during backups: -```yaml +```yaml [compose.yaml] services: your_service: ... diff --git a/content/en/6.recycled/1.deprecated/1.wireguard-14.md b/content/en/6.recycled/1.deprecated/1.wireguard-14.md index d4b4408..b98a685 100644 --- a/content/en/6.recycled/1.deprecated/1.wireguard-14.md +++ b/content/en/6.recycled/1.deprecated/1.wireguard-14.md @@ -77,7 +77,7 @@ Open Dockge, click `compose`, and name the stack `wg_easy`. Paste the following configuration: -```yaml +```yaml [compose.yaml] --- services: wg-easy: @@ -114,8 +114,8 @@ services: - You can also specify your own wireguard port with `WG_PORT` - Add the Watchtower label to enable automatic updates -```yaml -services +```yaml [compose.yaml] +services: wg-easy: #... labels: @@ -126,7 +126,7 @@ services In `.env`: -```properties +```properties [.env] HOST= PW= ADDRESS= @@ -210,7 +210,7 @@ sudo nano /docker/wireguard/compose.yaml Paste: -```yaml +```yaml [compose.yaml] services: wireguard: image: lscr.io/linuxserver/wireguard:latest diff --git a/content/fr/2.general/1.networking/3.samba.md b/content/fr/2.general/1.networking/3.samba.md index b41a784..e0a22da 100644 --- a/content/fr/2.general/1.networking/3.samba.md +++ b/content/fr/2.general/1.networking/3.samba.md @@ -47,7 +47,7 @@ Localisez la variable `workgroup` et nommez votre workgroup, par exemple `workgr Puis allez à la fin du fichier et collez la configuration suivante -```properties +```properties [smb.conf] [video] comment = Dossier video path = /video @@ -144,7 +144,7 @@ sudo nano /smb/.credentials Configurez comme suit : -```properties +```properties [.credentials] username=smbuser password=motdepasse ``` diff --git a/content/fr/3.serveex/2.core/2.docker.md b/content/fr/3.serveex/2.core/2.docker.md index 99c52b0..c1dc476 100644 --- a/content/fr/3.serveex/2.core/2.docker.md +++ b/content/fr/3.serveex/2.core/2.docker.md @@ -84,7 +84,7 @@ sudo nano compose.yml ``` Appuyer sur `i` pour rentrer en modif et copiez-collez ceci. -```yaml +```yaml [compose.yaml] --- services: dockge: @@ -129,7 +129,7 @@ Watchtower est un conteneur qui permet de vérifier les mise à jour et d'instal - Nommez la stack `watchtower` - Copiez collez la configuration ci-dessous à la place de la configuration par défaut dans Dockge -```yaml +```yaml [compose.yaml] --- services: watchtower: @@ -157,7 +157,7 @@ services: Puis remplissez les données ci-dessous dans l'encart ".env" de Dockge -```properties +```properties [.env] SCHEDULE= WH_URL= ``` @@ -169,7 +169,7 @@ WH_URL= Pour que Watchtower surveille vos autres conteneurs, ajoutez ceci à vos conteneurs dans leur compose.yml : -```yaml +```yaml [compose.yaml] labels: - com.centurylinklabs.watchtower.enable=true diff --git a/content/fr/3.serveex/2.core/3.swag.md b/content/fr/3.serveex/2.core/3.swag.md index 3d63615..6e6f3c4 100644 --- a/content/fr/3.serveex/2.core/3.swag.md +++ b/content/fr/3.serveex/2.core/3.swag.md @@ -101,7 +101,7 @@ networks: ✨ __Astuce :__ ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mises à jour - ```yaml + ```yaml [compose.yaml] services: swag: #... @@ -113,7 +113,7 @@ ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mise Puis dans le `.env` : -```properties +```properties [.env] DOMAIN= DOMAINS= EMAIL= @@ -144,7 +144,7 @@ sudo nano /docker/swag/config/dns-conf/ovh.ini Voici ce qui s'affiche : -```properties +```properties [ovh.ini] # Instructions: https://github.com/certbot/certbot/blob/master/certbot-dns-ovh/certbot_dns_ovh/__init__.py#L20 # Replace with your values dns_ovh_endpoint = ovh-eu @@ -173,7 +173,7 @@ sudo nano /docker/swag/config/nginx/nginx.conf Et ajoutez la ligne suivante en dessous de la section `http` : -```nginx +```nginx [nginx.conf] include /config/nginx/dbip.conf ``` @@ -200,7 +200,7 @@ sudo nano /docker/swag/config/nginx/dbip.conf Faites vos modifications ([voir documentation](https://github.com/linuxserver/docker-mods/tree/swag-dbip)), ou prenez l'exemple suivant: -```nginx +```nginx [dbip.conf] geoip2 /config/geoip2db/dbip-country-lite.mmdb { auto_reload 1w; $geoip2_data_continent_code continent code; @@ -251,18 +251,29 @@ Sauvegardez et quittez. Redémarrez la stack. Dans les fichiers de conf des domaines (section suivante), vous pourrez activer ou désactiver la whitelist ou la blacklist ([voir documentation ici](https://www.forum-nas.fr/threads/tuto-installer-swag-en-docker-reverse-proxy.15057/)). Dans notre cas, la whitelist laisse uniquement passer les requêtes françaises. La blacklist laisse passer tout le monde sauf la liste de pays mentionnée. On utilisera donc la blacklist, sur ce modèle : -```nginx - server { - listen 443 ssl; - listen [::]:443 ssl; +```nginx [some-app.subdomain.conf]{11} +server { + listen 443 ssl; + listen [::]:443 ssl; - server_name some-app.*; - include /config/nginx/ssl.conf; - client_max_body_size 0; + server_name some-app.*; - if ($geo-blacklist = no) { return 404; } + include /config/nginx/ssl.conf; - location / { + client_max_body_size 0; + + if ($geo-blacklist = no) { return 404; } + + location / { + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + + set $upstream_app some-app; + set $upstream_port 1234; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + } +} ``` ## Exposer Dockge @@ -286,7 +297,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/dockge.subdomain.conf Paramétrez le comme tel : -```nginx +```nginx [dockge.subdomain.conf] ## Version 2023/12/19 server { @@ -348,7 +359,7 @@ Par défaut, SWAG ne connait pas le nom "dockge". Pour qu'il puisse y accéder, Rendez-vous sur la stack de SWAG, puis cliquez sur `éditer`, et ajouter le réseau de dockge dans le fichier de conf sur ce modele (les champs `networks`) : -```yaml +```yaml [compose.yaml] services: swag: container_name: #... diff --git a/content/fr/3.serveex/3.security/1.wireguard.md b/content/fr/3.serveex/3.security/1.wireguard.md index a2e4e15..40ac25d 100644 --- a/content/fr/3.serveex/3.security/1.wireguard.md +++ b/content/fr/3.serveex/3.security/1.wireguard.md @@ -75,7 +75,7 @@ Ouvrez Dockge, cliquez sur `compose` et nommez la stack `wg_easy`. Copiez la configuration suivante : -```yaml +```yaml [compose.yaml] --- services: wg-easy: @@ -127,7 +127,7 @@ networks: - Vous pouvez personnaliser le port de wireguard et de la webui au lieu des ports par défaut. - Ajoutez le label de watchtower afin d'automatiser les mises à jour - ```yaml + ```yaml [compose.yaml] services: wg-easy: #... @@ -218,7 +218,7 @@ Creez le `compose.yaml` dans `/docker/wireguard `: sudo nano /docker/wireguard/compose.yaml ``` Copiez la configuration ci-dessous -```yaml +```yaml [compose.yaml] services: wireguard: image: lscr.io/linuxserver/wireguard:latest diff --git a/content/fr/3.serveex/3.security/2.authentik.md b/content/fr/3.serveex/3.security/2.authentik.md index b99bce6..dae29f5 100644 --- a/content/fr/3.serveex/3.security/2.authentik.md +++ b/content/fr/3.serveex/3.security/2.authentik.md @@ -73,7 +73,7 @@ Afin de générer la clé, nous avons créé les dossiers en amont du déploieme Ouvrez dockge, et cherchez "authentik" dans les stack inactives. Nommez la stack authentik et collez la configuration suivante, en changeant les chiffres de `{AUTHENTIK_TAG:-2026.2}`{lang=properties} par [la dernière version de Authentik](https://goauthentik.io/docs/releases). -```yaml +```yaml [compose.yaml] --- services: @@ -218,7 +218,7 @@ sudo nano /docker/swag/config/nginx/authentik-server.conf Vérifiez que dans chaque cas les variables ci-dessous sont correctes : -```nginx +```nginx [authentik-server.conf] set $upstream_authentik authentik-server; proxy_pass http://$upstream_authentik:9000; ``` @@ -234,7 +234,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/auth.subdomain.conf Collez la configuration suivante : -```nginx +```nginx [auth.subdomain.conf] ## Version 2023/05/31 # make sure that your authentik container is named authentik-server # make sure that your dns has a cname set for authentik @@ -276,7 +276,7 @@ Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez a Rendez-vous dans dockge, et éditez le compose de SWAG en ajoutant le réseau d'Authentik : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -442,7 +442,7 @@ sudo nano /docker/authentik-outpost/compose.yaml ``` Collez la configuration suivante, en changeant les chiffres de `{AUTHENTIK_TAG:proxy:2024.2.3}`{lang=properties} par la meme version que celle de votre serveur Authentik. -```yaml +```yaml [compose.yaml] version: "3.5" services: authentik_proxy: @@ -474,7 +474,7 @@ Rendez-vous sur la stack de SWAG de la machine distante (ou remplissez directeme sudo nano /docker/swag/compose.yaml ``` -```yaml +```yaml [compose.yaml] services: swag: container_name: #... @@ -516,7 +516,7 @@ sudo nano /docker/authentik-outpost/.env Collez la configuration suivante -```properties +```properties [.env] HOST= TOKEN= ``` @@ -550,7 +550,7 @@ sudo nano /docker/swag/config/nginx/authentik-server.conf Dans le fichier, changez `authentik-server` par `authentik-outpost` comme suit : -```nginx +```nginx [authentik-server.conf] set $upstream_authentik authentik-outpost; proxy_pass http://$upstream_authentik:9000; ``` diff --git a/content/fr/3.serveex/3.security/3.cloudflare.md b/content/fr/3.serveex/3.security/3.cloudflare.md index e204408..9403983 100644 --- a/content/fr/3.serveex/3.security/3.cloudflare.md +++ b/content/fr/3.serveex/3.security/3.cloudflare.md @@ -98,7 +98,7 @@ sudo nano /docker/swag/config/tunnelconfig.yml Collez la configuration ci-dessous -```yaml +```yaml [tunnelconfig.yml] ingress: - hostname: mondomaine.fr @@ -123,7 +123,7 @@ sudo nano /docker/swag/config/nginx/nginx.conf ``` Collez la configuration ci-dessous à la fin de la section `http` -```nginx +```nginx [nginx.conf] real_ip_header X-Forwarded-For; real_ip_recursive on; include /config/nginx/cf_real-ip.conf; @@ -135,7 +135,7 @@ Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez a Ouvrez Dockge, éditez la stack SWAG avec cette configuration -```yaml +```yaml [compose.yaml] --- services: swag: @@ -180,7 +180,7 @@ services: ::tip{icon=""} ✨ __Astuce :__ ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mises à jour - ```yaml + ```yaml [compose.yaml] services: swag: #... @@ -192,7 +192,7 @@ services: Et renseignez le `.env` les infos que vous avez trouvées et notées tout au long de ce guide -```properties +```properties [.env] PUID= PGID= DOMAIN= diff --git a/content/fr/3.serveex/4.monitoring/1.uptime-kuma.md b/content/fr/3.serveex/4.monitoring/1.uptime-kuma.md index 3e5442b..8ee5869 100644 --- a/content/fr/3.serveex/4.monitoring/1.uptime-kuma.md +++ b/content/fr/3.serveex/4.monitoring/1.uptime-kuma.md @@ -31,7 +31,7 @@ root Ouvrez Dockge, cliquez sur `compose`, appelez la stack `uptime-kuma` puis copiez collez ceci : -```yaml +```yaml [compose.yaml] --- services: uptime-kuma: @@ -48,7 +48,7 @@ services: ::tip{icon=""} ✨ __Astuce :__ ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mises à jour - ```yaml + ```yaml [compose.yaml] services: uptime-kuma: #... @@ -89,7 +89,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/stats.subdomain.conf ``` Collez la configuration ci-dessous : -```nginx +```nginx [stats.subdomain.conf] ## Version 2023/12/19 server { @@ -143,7 +143,7 @@ Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez a Rendez-vous dans dockge, et éditez le compose de SWAG en ajoutant le réseau d'Uptime-Kuma : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... diff --git a/content/fr/3.serveex/4.monitoring/2.dozzle.md b/content/fr/3.serveex/4.monitoring/2.dozzle.md index 868e418..891fa71 100644 --- a/content/fr/3.serveex/4.monitoring/2.dozzle.md +++ b/content/fr/3.serveex/4.monitoring/2.dozzle.md @@ -29,7 +29,7 @@ root Ouvrez Dockge, cliquez sur `compose`, appelez la stack `dozzle` puis copiez collez ceci : -```yaml +```yaml [compose.yaml] --- services: dozzle: @@ -52,7 +52,7 @@ services: ::tip{icon=""} ✨ __Astuce :__ ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mises à jour - ```yaml + ```yaml [compose.yaml] services: dozzle: #... @@ -64,7 +64,7 @@ services: Renseignez le `.env` votre nom de domaine, par exemple -```properties +```properties [.env] DOMAIN=dozzle.mondomaine.fr ``` @@ -87,7 +87,7 @@ Nous partons du principe que vous avez créé dans votre [zone DNS](/fr/general/ Rendez-vous dans dockge, et éditez le compose de SWAG en ajoutant le réseau de Dozzle : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -122,7 +122,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/dozzle.subdomain.conf ``` Collez la configuration ci-dessous : -```nginx +```nginx [dozzle.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/fr/3.serveex/4.monitoring/3.speedtest-tracker.md b/content/fr/3.serveex/4.monitoring/3.speedtest-tracker.md index eaf500f..64769f6 100644 --- a/content/fr/3.serveex/4.monitoring/3.speedtest-tracker.md +++ b/content/fr/3.serveex/4.monitoring/3.speedtest-tracker.md @@ -43,7 +43,7 @@ Notez la clé. Ouvrez Dockge, cliquez sur `compose`, appelez la stack `speedtest-tracker` puis copiez collez ceci : -```yaml +```yaml [compose.yaml] --- services: speedtest-tracker: @@ -74,7 +74,7 @@ id nomdutilisateur Dans `.env` renseignez la variable `API_KEY` avec la clé que vous avez générée et un planning de test au format cron, ainsi que vos `PUID` et `GUID`, par exemple : -```properties +```properties [.env] SCHEDULE=15 */6 * * * # toutes les 6h API_KEY=base64:zihejehkj8_nzhY/OjeieR= # votre clé PUID=1000 @@ -109,7 +109,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/speedtest.subdomain.conf Paramétrez le comme tel : -```nginx +```nginx [speedtest.subdomain.conf] ## Version 2023/12/19 server { @@ -172,7 +172,7 @@ Par défaut, swag ne connait pas le nom "speedtest-tracker". Pour qu'il puisse y Rendez-vous dans dockge, et éditez le compose de SWAG en ajoutant le réseau de Speedtest Tracker : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... diff --git a/content/fr/3.serveex/4.monitoring/4.beszel.md b/content/fr/3.serveex/4.monitoring/4.beszel.md index 35377e2..b02bcb8 100644 --- a/content/fr/3.serveex/4.monitoring/4.beszel.md +++ b/content/fr/3.serveex/4.monitoring/4.beszel.md @@ -36,7 +36,7 @@ root Ouvrez Dockge, cliquez sur `compose`, appelez la stack `beszel` puis copiez collez ceci : -```yaml +```yaml [compose.yaml] --- services: beszel: @@ -69,7 +69,7 @@ services: ::tip{icon=""} ✨ __Astuce :__ ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mises à jour - ```yaml + ```yaml [compose.yaml] services: beszel: #... @@ -81,7 +81,7 @@ services: Renseignez le `.env`, par exemple : -```properties +```properties [.env] PORT=8090 # port de la webui KEY= # clé privée à récupérer dans Beszel lors que vous ajoutez un système ``` @@ -114,7 +114,7 @@ Vous pouvez également monitorer un serveur distant. Pour cela vous avez juste Beszel vous proposera de copier directement le `compose.yaml` à déployer sur votre serveur distant, ou vous pouvez le configurer comme suit : -```yaml +```yaml [compose.yaml] --- services: beszel-agent: @@ -132,7 +132,7 @@ services: Et dans le `.env` : -```properties +```properties [.env] PORT=45876 # port de communication entre votre hub et l'agent à distance KEY= # clé privée à récupérer dans Beszel lors que vous ajoutez un système ``` @@ -160,7 +160,7 @@ Nous partons du principe que vous avez créé dans votre [zone DNS](/fr/general/ Rendez-vous dans dockge, et éditez le compose de SWAG en ajoutant le réseau de Beszel : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -195,7 +195,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/beszel.subdomain.conf ``` Collez la configuration ci-dessous : -```nginx +```nginx [beszel.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/fr/3.serveex/4.monitoring/5.upsnap.md b/content/fr/3.serveex/4.monitoring/5.upsnap.md index 89b5902..528b919 100644 --- a/content/fr/3.serveex/4.monitoring/5.upsnap.md +++ b/content/fr/3.serveex/4.monitoring/5.upsnap.md @@ -30,7 +30,7 @@ root Ouvrez Dockge, cliquez sur `compose`, appelez la stack `upsnap` puis copiez collez ceci : -```yaml +```yaml [compose.yaml] --- services: upsnap: @@ -59,7 +59,7 @@ services: ::tip{icon=""} ✨ __Astuce :__ ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mises à jour - ```yaml + ```yaml [compose.yaml] services: upsnap: #... @@ -71,7 +71,7 @@ services: Renseignez le `.env`, par exemple : -```properties +```properties [.env] RANGE=192.168.1.0/24 # scan toutes les machines sur le réseau local ayant une adresse IP comprise entre 192.168.0.1 et 192.168.1.255 DNS=192.168.1.1 # IP du dns à utiliser pour résoudre les noms de domaines, ici dans l'exemple c'est généralement l'IP du routeur ``` @@ -100,7 +100,7 @@ Nous partons du principe que vous avez créé dans votre [zone DNS](/fr/general/ Rendez-vous dans dockge, et éditez le compose de SWAG en ajoutant le réseau de UpSnap : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -135,7 +135,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/upsnap.subdomain.conf ``` Collez la configuration ci-dessous : -```nginx +```nginx [upsnap.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/fr/3.serveex/5.media/1.plex.md b/content/fr/3.serveex/5.media/1.plex.md index a8043a4..9472a85 100644 --- a/content/fr/3.serveex/5.media/1.plex.md +++ b/content/fr/3.serveex/5.media/1.plex.md @@ -57,7 +57,7 @@ mkdir -p /media/movies /media/library /media/tvseries Ouvrez Dockge dans votre navigeateur, et cliquez sur `compose`. Nommez la stack `plex` et ajoutez la config suivante : -```yaml +```yaml [compose.yaml] --- services: linuxserver_plex: @@ -102,7 +102,7 @@ services: ::tip ✨ Ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mises à jour - ```yaml + ```yaml [compose.yaml] services: plex: #... @@ -125,7 +125,7 @@ id nomdutilisateur ``` Et renseignez le `.env` avec les infos que vous avez trouvées, par exemple : -```properties +```properties [.env] PUID=1000 GUID=1000 ``` @@ -177,7 +177,7 @@ Nous partons du principe que vous avez le sous-domaine `tautulli.mondomaine.fr` Rendez-vous dans dockge, et éditez le compose de SWAG en ajoutant le réseau de Tautulli : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -214,7 +214,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/tautulli.subdomain.conf Et vérifiez que la configuration correspond bien à ceci, sinon éditez le fichier : -```nginx +```nginx [tautulli.subdomain.conf] ## Version 2023/05/31 # make sure that your tautulli container is named tautulli # make sure that your dns has a cname set for tautulli diff --git a/content/fr/3.serveex/5.media/2.qbittorrent.md b/content/fr/3.serveex/5.media/2.qbittorrent.md index 043bba7..89ef6fd 100644 --- a/content/fr/3.serveex/5.media/2.qbittorrent.md +++ b/content/fr/3.serveex/5.media/2.qbittorrent.md @@ -54,7 +54,7 @@ mkdir -P /media/downloads Ouvrez Dockge, cliquez sur `compose` et nommez la stack `seedbox`. Collez la config ci-dessous : -```yaml +```yaml [compose.yaml] --- services: qbit: @@ -115,7 +115,7 @@ services: ::tip{icon=""} ✨ __Astuce :__ ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mises à jour - ```yaml + ```yaml [compose.yaml] services: qbittorrent: #... @@ -156,7 +156,7 @@ sudo nano /docker/gluetun/config.toml Éditez le comme suit en ajoutant la clée que vous avez générée : -```toml +```toml [config.toml] [[roles]] name = "t-anc/GSP-Qbittorent-Gluetun-sync-port-mod" routes = ["GET /v1/portforward"] @@ -166,7 +166,7 @@ apikey = "votre_clée" # clée que vous avez générée précédemment Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}. Rendez-vous dans Dockge, et renseignez les variables dans `.env`: -```properties +```properties [.env] PUID= GUID= UI_PORT= @@ -225,7 +225,7 @@ Nous partons du principe que vous avez le sous-domaine `seedbox.mondomaine.fr` a Rendez-vous dans dockge, et éditez le compose de SWAG en ajoutant le réseau de Gluetun : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -261,7 +261,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/seedbox.subdomain.conf Copiez la configuration ci-dessous, en prenant soin de vérifier le port : -```nginx +```nginx [seedbox.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/fr/3.serveex/5.media/3.servarr.md b/content/fr/3.serveex/5.media/3.servarr.md index 37e5a07..a3b9963 100644 --- a/content/fr/3.serveex/5.media/3.servarr.md +++ b/content/fr/3.serveex/5.media/3.servarr.md @@ -62,7 +62,7 @@ __Attention :__ Respectez bien ce type de structure de fichier, notamment le dos Ouvrez dockge et votre stack `plex`. Modifiez le compose comme ceci : -```yaml +```yaml [compose.yaml] --- services: linuxserver_plex: @@ -196,7 +196,7 @@ services: ::tip ✨ Ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mises à jour - ```yaml + ```yaml [compose.yaml] services: plex: #... @@ -214,7 +214,7 @@ services: Renseignez le `.env` avec les variables ci-dessous -```properties +```properties [.env] PUID= GUID= MEDIA_PATH= @@ -417,7 +417,7 @@ Nous partons du principe que vous avez le sous-domaine `films.mondomaine.fr` ave Rendez-vous dans dockge, et éditez le compose de SWAG en ajoutant le réseau d'overseer, qui est celui de Plex car dans la stack Plex : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -453,7 +453,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/films.subdomain.conf Collez la configuration suivante : -```nginx +```nginx [films.subdomain.conf] ## Version 2024/07/16 # make sure that your overseerr container is named overseerr # make sure that your dns has a cname set for overseerr diff --git a/content/fr/3.serveex/6.cloud/1.immich.md b/content/fr/3.serveex/6.cloud/1.immich.md index 956134f..6ddcba0 100644 --- a/content/fr/3.serveex/6.cloud/1.immich.md +++ b/content/fr/3.serveex/6.cloud/1.immich.md @@ -59,7 +59,7 @@ Nous partons du principe que vous avez le sous-domaine `immich.mondomaine.fr` av Dans Dockge, rendez-vous dans la stack de SWAG et éditez le compose en ajoutant le réseau de immich : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -95,7 +95,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/immich.subdomain.conf ``` Collez la configuration ci-dessous : -```nginx +```nginx [immich.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/fr/3.serveex/6.cloud/2.nextcloud.md b/content/fr/3.serveex/6.cloud/2.nextcloud.md index c7b89be..0c6f25f 100644 --- a/content/fr/3.serveex/6.cloud/2.nextcloud.md +++ b/content/fr/3.serveex/6.cloud/2.nextcloud.md @@ -34,7 +34,7 @@ root Ouvrez Dockge, cliquez sur `compose`, appelez la stack `nextcloud` puis copiez collez ceci : -```yaml +```yaml [compose.yaml] --- services: nextcloud: @@ -67,7 +67,7 @@ id nomdutilisateur ``` Et renseignez le `.env` avec le port souhaité, et les infos que vous avez trouvées, par exemple : -```properties +```properties [.env] PUID=1000 GUID=1000 PORT=4545 @@ -90,7 +90,7 @@ Nous partons du principe que vous avez le sous-domaine `nextcloud.mondomaine.fr` Dans Dockge, rendez-vous dans la stack de SWAG et éditez le compose en ajoutant le réseau de nextcloud : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -126,14 +126,14 @@ sudo nano /docker/nextcloud/config/www/nextcloud/config/config.php Copiez les informations suivantes __avant__ `);`. -```js +```php [config.php] 'trusted_proxies' => [gethostbyname('swag')], 'overwrite.cli.url' => 'https://nextcloud.example.com/', 'overwritehost' => 'nextcloud.example.com', 'overwriteprotocol' => 'https', ``` Ajoutez également votre nom de domaine dans la section `array` , cela devrait ressembler à ceci -```js +```php [config.php] array ( 0 => '192.168.0.1:444', # Cette ligne est surement différente chez vous, ne la modifiez pas ! 1 => 'nextcloud.mondomaine.fr', # Renseignez votre domaine @@ -144,11 +144,11 @@ Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez a Dans les dossiers de Swag, créez le fichier `nextcloud.subdomain.conf`. ```bash [Terminal] -sudo nano /docker/swag/config/nginx/proxy-confs/nexctloud.subdomain.conf +sudo nano /docker/swag/config/nginx/proxy-confs/nextcloud.subdomain.conf ``` Collez la configuration ci-dessous : -```nginx +```nginx [nextcloud.subdomain.conf] ## Version 2024/04/25 server { listen 443 ssl; diff --git a/content/fr/3.serveex/7.files/1.file-browser.md b/content/fr/3.serveex/7.files/1.file-browser.md index c6b2b37..f247365 100644 --- a/content/fr/3.serveex/7.files/1.file-browser.md +++ b/content/fr/3.serveex/7.files/1.file-browser.md @@ -20,7 +20,7 @@ description: Installer File Browser pour parcourir et gérer les fichiers de vot ## Installation Ouvrez Dockge, cliquez sur `compose`, appelez la stack `filebrowser` puis copiez collez ceci : -```yaml +```yaml [compose.yaml] --- services: filebrowser: @@ -38,7 +38,7 @@ services: ::tip{icon=""} ✨ __Astuce :__ ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mises à jour - ```yaml + ```yaml [compose.yaml] services: filebrowser: #... @@ -71,7 +71,7 @@ __Au préalable :__ nous partons du principe que vous avez créé dans votre [zo Dans Dockge, rendez-vous dans la stack de SWAG et éditez le compose en ajoutant le réseau de filebrowser : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -102,7 +102,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/files.subdomain.conf ``` Collez la configuration ci-dessous : -```nginx +```nginx [files.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/fr/3.serveex/7.files/2.pingvin.md b/content/fr/3.serveex/7.files/2.pingvin.md index c0880b3..400878b 100644 --- a/content/fr/3.serveex/7.files/2.pingvin.md +++ b/content/fr/3.serveex/7.files/2.pingvin.md @@ -20,7 +20,7 @@ description: Installer Pingvin Share, une plateforme d'envoi de fichiers auto-h ## Installation Ouvrez Dockge, cliquez sur `compose`, appelez la stack `pingvin` puis copiez collez ceci : -```yaml +```yaml [compose.yaml] --- services: pingvin-share: @@ -54,7 +54,7 @@ Ici nous partons du principe que le nom du réseau de Swag est `swag_default`. ::tip{icon=""} ✨ __Astuce :__ ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mises à jour - ```yaml + ```yaml [compose.yaml] services: pingvin-share: #... @@ -88,7 +88,7 @@ Nous partons du principe que vous avez le sous-domaine `pingvin.mondomaine.fr` a Dans Dockge, rendez-vous dans la stack de SWAG et éditez le compose en ajoutant le réseau de pingvin : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -124,7 +124,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/pingvin.subdomain.conf ``` Collez la configuration ci-dessous : -```nginx +```nginx [pingvin.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/fr/3.serveex/8.development/1.code-server.md b/content/fr/3.serveex/8.development/1.code-server.md index 4148ff1..8529649 100644 --- a/content/fr/3.serveex/8.development/1.code-server.md +++ b/content/fr/3.serveex/8.development/1.code-server.md @@ -36,7 +36,7 @@ root Ouvrez Dockge, cliquez sur `compose`, appelez la stack `code-server` puis copiez collez ceci : -```yaml +```yaml [compose.yaml] --- services: code-server: @@ -62,7 +62,7 @@ services: ::tip ✨ Ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mises à jour - ```yaml + ```yaml [compose.yaml] services: code-server: #... @@ -86,7 +86,7 @@ id nomdutilisateur Et renseignez le `.env` avec les infos que vous avez trouvées, par exemple : -```properties +```properties [.env] PW='$argon2i$v=19$m=4096,t=3,p=1$wST5QhBgk2lu1ih4DMuxvg$LS1alrVdIWtvZHwnzCM1DUGg+5DTO3Dt1d5v9XtLws4' PUID=1000 GUID=1000 @@ -107,7 +107,7 @@ __En cas d'échec :__ vérifiez les règles de votre pare-feu. ## Monter des dossiers Vous pouvez monter les dossiers à partager dans vscode en ajoutant les volumes concernés dans le compose.yaml (ou via dockge), et en redéployant le conteneur. -```yaml +```yaml [compose.yaml] services: code-server: #... @@ -127,7 +127,7 @@ __Au préalable :__ Nous partons du principe que vous avez créé dans votre [zo Dans Dockge, rendez-vous dans la stack de SWAG et éditez le compose en ajoutant le réseau de code-server : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -162,7 +162,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/code.subdomain.conf ``` Collez la configuration ci-dessous : -```nginx +```nginx [code.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/fr/3.serveex/8.development/2.gitea.md b/content/fr/3.serveex/8.development/2.gitea.md index 515be44..8621ad8 100644 --- a/content/fr/3.serveex/8.development/2.gitea.md +++ b/content/fr/3.serveex/8.development/2.gitea.md @@ -29,7 +29,7 @@ root Ouvrez Dockge, cliquez sur `compose`, appelez la stack `gitea` puis copiez collez ceci : -```yaml +```yaml [compose.yaml] --- networks: gitea: @@ -57,7 +57,7 @@ services: ``` Et renseignez le `.env` avec les infos que vous avez trouvées, par exemple : -```properties +```properties [.env] UID=1000 GID=1000 ``` @@ -79,7 +79,7 @@ __Au préalable :__ nous partons du principe que vous avez créé dans votre [zo Dans Dockge, rendez-vous dans la stack de SWAG et éditez le compose en ajoutant le réseau de gitea : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -114,7 +114,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/gitea.subdomain.conf ``` Collez la configuration ci-dessous : -```nginx +```nginx [gitea.subdomain.conf] ## Version 2023/12/19 server { @@ -181,7 +181,7 @@ sudo nano /docker/gitea/data/gitea/conf/app.ini Et modifiez la section serveur avec les infos de votre domaine -```properties +```properties [app.ini] [server] DOMAIN = gitea.mondomaine.fr SSH_DOMAIN = gitea.mondomaine.fr diff --git a/content/fr/3.serveex/8.development/3.it-tools.md b/content/fr/3.serveex/8.development/3.it-tools.md index a14fc0e..5941f20 100644 --- a/content/fr/3.serveex/8.development/3.it-tools.md +++ b/content/fr/3.serveex/8.development/3.it-tools.md @@ -21,7 +21,7 @@ description: Installer IT Tools, une collection auto-hébergée d'utilitaires pr Ouvrez Dockge, cliquez sur `compose`, appelez la stack `it-tools` puis copiez collez ceci : -```yaml +```yaml [compose.yaml] --- services: it-tools: @@ -36,7 +36,7 @@ services: ::tip{icon=""} ✨ __Astuce :__ ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mises à jour - ```yaml + ```yaml [compose.yaml] services: it-tools: #... @@ -63,7 +63,7 @@ __Au préalable :__ nous partons du principe que vous avez créé dans votre [zo Dans Dockge, rendez-vous dans la stack de SWAG et éditez le compose en ajoutant le réseau de it-tools : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -103,7 +103,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/tools.subdomain.conf ``` Collez la configuration ci-dessous : -```nginx +```nginx [tools.subdomain.conf] ## Version 2023/12/19 server { diff --git a/content/fr/3.serveex/9.apps/1.adguard.md b/content/fr/3.serveex/9.apps/1.adguard.md index d33835e..b04f65c 100644 --- a/content/fr/3.serveex/9.apps/1.adguard.md +++ b/content/fr/3.serveex/9.apps/1.adguard.md @@ -57,7 +57,7 @@ Ouvrez Dockge, et cliquez sur `compose` Nommez la stack `adguardhome` et copiez la configuration ci-dessous -```yaml +```yaml [compose.yaml] --- services: @@ -83,7 +83,7 @@ services: ::tip{icon=""} ✨ __Astuce :__ Ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mises à jour - ```yaml + ```yaml [compose.yaml] services: adguardhome: #... @@ -114,7 +114,7 @@ N'utilisez pas les tunnels cloudflare pour exposer Adguard, et désactivez tout Dans Dockge, rendez-vous dans la stack de SWAG et éditez le compose en ajoutant le réseau d'adguard : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -151,7 +151,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/adguard.subdomain.conf Copiez la configuration ci-dessous : -```nginx +```nginx [adguard.subdomain.conf] ## Version 2023/05/31 # make sure that your adguard container is named adguard # make sure that your dns has a cname set for adguard diff --git a/content/fr/3.serveex/9.apps/2.vaultwarden.md b/content/fr/3.serveex/9.apps/2.vaultwarden.md index 8c68e55..a28cde5 100644 --- a/content/fr/3.serveex/9.apps/2.vaultwarden.md +++ b/content/fr/3.serveex/9.apps/2.vaultwarden.md @@ -30,7 +30,7 @@ root Ouvrez Dockge, cliquez sur `compose`, appelez la stack `vaultwarden` puis copiez collez ceci : -```yaml +```yaml [compose.yaml] --- services: vaultwarden: @@ -67,7 +67,7 @@ services: ::tip{icon=""} ✨ __Astuce :__ Ajoutez le label de watchtower dans chaque conteneur afin d'automatiser les mises à jour - ```yaml + ```yaml [compose.yaml] services: vaultwarden: #... @@ -87,7 +87,7 @@ Copiez le résultat précieusement et gardez en tête le mot de passe que vous a Dans le `.env`, renseignez les variables suivantes : -```properties +```properties [.env] URL= TOKEN= ``` @@ -115,7 +115,7 @@ Tout l'intérêt d'une telle solution, c'est de pouvoir y accéder à distance e Dans Dockge, rendez-vous dans la stack de SWAG et éditez le compose en ajoutant le réseau de vaultwarden : -```yaml +```yaml [compose.yaml] services: swag: container_name: # ... @@ -150,7 +150,7 @@ sudo nano /docker/swag/config/nginx/proxy-confs/vault.subdomain.conf ``` Collez la configuration ci-dessous : -```nginx +```nginx [vault.subdomain.conf] server { listen 443 ssl; listen [::]:443 ssl; diff --git a/content/fr/4.stockeex/1.introduction.md b/content/fr/4.stockeex/1.introduction.md index daf9016..14909d8 100644 --- a/content/fr/4.stockeex/1.introduction.md +++ b/content/fr/4.stockeex/1.introduction.md @@ -8,7 +8,7 @@ navigation: :ellipsis{left=0px width=40rem top=10rem blur=140px zIndex=60} # Stockeex -```console +```console [Terminal] sudo systemctl status stockeex-article currently writing, come back later... -- diff --git a/content/fr/5.nonsense/2.bash/3.socat-proxy.md b/content/fr/5.nonsense/2.bash/3.socat-proxy.md index fe1872b..79a2de4 100644 --- a/content/fr/5.nonsense/2.bash/3.socat-proxy.md +++ b/content/fr/5.nonsense/2.bash/3.socat-proxy.md @@ -28,7 +28,7 @@ En gros : Par exemple, pour Beszel cela rendrait comme ceci : -```yaml +```yaml [compose.yaml] services: socat-proxy: image: git.djeex.fr/djeex/socat-proxy:latest diff --git a/content/fr/5.nonsense/2.bash/5.backrest-docker-stop.md b/content/fr/5.nonsense/2.bash/5.backrest-docker-stop.md index 368073c..2bbca11 100644 --- a/content/fr/5.nonsense/2.bash/5.backrest-docker-stop.md +++ b/content/fr/5.nonsense/2.bash/5.backrest-docker-stop.md @@ -25,7 +25,7 @@ Pour cela nous allons avoir besoin d'un script bash et de connecter Backrest au Pour faire communiquer **Backrest** et Docker en toute sécurité, nous utiliserons [Docker Socket Proxy](https://github.com/linuxserver/docker-socket-proxy), afin de n'accorder que les droits nécessaires plutot que d'exposer l'intégralité du socket à Docker. Voici donc la stack : -```yaml +```yaml [compose.yaml] --- services: backrest: @@ -105,7 +105,7 @@ sleep 10 ## Le label Une fois les scripts renseignés et paramétrés pour les bons hooks dans **Backrest**, vous n'avez plus qu'à ajouter le libellé `backrest.backup.stop=true` dans les fichiers `compose.yaml` des conteneurs à éteindre et rallumer durant les sauvegardes : -```yaml +```yaml [compose.yaml] services: votre_service: ... diff --git a/content/fr/6.recycled/1.deprecated/1.wireguard-14.md b/content/fr/6.recycled/1.deprecated/1.wireguard-14.md index 1118653..dd45c9b 100644 --- a/content/fr/6.recycled/1.deprecated/1.wireguard-14.md +++ b/content/fr/6.recycled/1.deprecated/1.wireguard-14.md @@ -77,7 +77,7 @@ Ouvrez Dockge, cliquez sur `compose` et nommez la stack `wg_easy`. Copiez la configuration suivante : -```yaml +```yaml [compose.yaml] --- services: wg-easy: @@ -113,8 +113,8 @@ services: - Vous pouvez personnaliser le port de wireguard avec `WG_PORT` au lieu du port par defaut `51820` - Ajoutez le label de watchtower afin d'automatiser les mises à jour - ```yaml - services + ```yaml [compose.yaml] + services: wg-easy: #... labels: @@ -124,7 +124,7 @@ services: Dans `.env` : -```properties +```properties [.env] HOST= PW= ADDRESS= @@ -206,7 +206,7 @@ Creez le `compose.yaml` dans `/docker/wireguard `: sudo nano /docker/wireguard/compose.yaml ``` Appuyez sur `i` pour rentrer en modification et copiez la configuration ci-dessous -```yaml +```yaml [compose.yaml] services: wireguard: image: lscr.io/linuxserver/wireguard:latest