Switch editing instructions from vim to nano and use kbd for keys

This commit is contained in:
Djeex
2026-08-30 18:49:10 +02:00
parent 2608bf64eb
commit bb1a482a8d
50 changed files with 210 additions and 210 deletions
+6 -6
View File
@@ -49,10 +49,10 @@ Now, edit the file `/etc/samba/smb.conf`.
::
```sh
sudo vim /etc/samba/smb.conf
sudo nano /etc/samba/smb.conf
```
Find the `workgroup` variable, press `i` to enter insert mode, and name your workgroup (e.g., `workgroup = WORKGROUP`).
Find the `workgroup` variable and name your workgroup (e.g., `workgroup = WORKGROUP`).
Then scroll to the end of the file and add the following configuration:
@@ -68,7 +68,7 @@ Then scroll to the end of the file and add the following configuration:
inherit permissions = yes
```
Press `Esc` to exit insert mode, then type `:x` and press `Enter` to save and exit.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
### Create a Samba User and Group
@@ -149,10 +149,10 @@ Create it in the `/smb` folder:
```sh
sudo mkdir /smb
sudo vi /smb/.credentials
sudo nano /smb/.credentials
```
Enter insert mode (`i`) and write:
Write:
```properties
username=smbuser
@@ -162,7 +162,7 @@ password=password
* `smbuser`: the user we created on the `remote-machine`
* `password`: the password set earlier
Press `Esc`, then `:x` and `Enter` to save and exit.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
Set proper file permissions:
@@ -46,7 +46,7 @@ Some essential apps youll likely need at some point, so might as well install
```sh
sudo apt update
sudo apt upgrade
sudo apt install vim btop ranger git duf neofetch samba cifs-utils tree unzip
sudo apt install nano btop ranger git duf neofetch samba cifs-utils tree unzip
```
Additionally:
+4 -4
View File
@@ -78,13 +78,13 @@ cd /docker
sudo mkdir dockge
```
Then create the `compose.yml` file in this folder using `vim`:
Then create the `compose.yml` file in this folder using `nano`:
```sh
cd /docker/dockge
sudo vi compose.yml
sudo nano compose.yml
```
Press `i` to enter insert mode and paste the following:
Paste the following:
```yaml
---
@@ -107,7 +107,7 @@ services:
- DOCKGE_STACKS_DIR=/docker
```
Press `Esc` and type `:x` to save and exit.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
To launch the container:
+6 -6
View File
@@ -140,7 +140,7 @@ You can use [File Browser](/serveex/files/file-browser) to browse and edit files
::
```sh
sudo vi /docker/swag/config/dns-conf/ovh.ini
sudo nano /docker/swag/config/dns-conf/ovh.ini
```
You should see:
@@ -163,14 +163,14 @@ Set the following permissions:
* `POST /domain/zone/*`
* `DELETE /domain/zone/*`
Note the 3 keys temporarily and enter them in `ovh.ini`. (In vim, press `i` to edit, `Esc` when done, `:x` to save and exit)
Note the 3 keys temporarily and enter them in `ovh.ini`. (In nano, just start typing, then :kbd{value="Ctrl+O"}, :kbd{value="Enter"}, :kbd{value="Ctrl+X"} to save and exit)
Save and exit the file.
Save with :kbd{value="Ctrl+O"}, then :kbd{value="Enter"}, and exit with :kbd{value="Ctrl+X"}.
Now configure swag to access DBIP, the geolocation-based access control module. Open the `nginx.conf` file:
```sh
sudo vi /docker/swag/config/nginx/nginx.conf
sudo nano /docker/swag/config/nginx/nginx.conf
```
Add the following line below the `http` section:
@@ -199,7 +199,7 @@ This configuration can be enabled or disabled per service (see the Dockge exampl
Open `dbip.conf`:
```sh
sudo vi /docker/swag/config/nginx/dbip.conf
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:
@@ -283,7 +283,7 @@ Dockge does not support multi-factor authentication. Exposing it online could co
Open the `dockge.subdomain.conf` file:
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/dockge.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/dockge.subdomain.conf
```
Configure it like this:
@@ -198,10 +198,10 @@ sudo mkdir -p /docker/wireguard/config/wg_confs
Create the `wg0.conf` file:
```sh
sudo vi /docker/wireguard/config/wg_confs/wg0.conf
sudo nano /docker/wireguard/config/wg_confs/wg0.conf
```
Enter insert mode (`i`), paste the downloaded configuration, then save (`Esc``:x`).
Paste the downloaded configuration, then save with :kbd{value="Ctrl+O"}, :kbd{value="Enter"}, and exit with :kbd{value="Ctrl+X"}.
::tip
**Alternative method:** Transfer the file via SFTP and move it:
+20 -20
View File
@@ -69,7 +69,7 @@ sudo echo "AUTHENTIK_SECRET_KEY=$(openssl rand 60 | base64)" >> .env
To generate the keys, we created the folders ahead of deployment using Dockge. Dockge will prevent you from creating a stack with the same name in these folders unless a `compose.yml` file exists. So, create an empty `compose.yml` so it appears as an inactive stack:
```sh
sudo vi /docker/authentik/compose.yml
sudo nano /docker/authentik/compose.yml
```
::
@@ -218,7 +218,7 @@ You can use [File Browser](/serveex/files/file-browser) to navigate and edit fil
::
```sh
sudo vi /docker/swag/config/nginx/authentik-server.conf
sudo nano /docker/swag/config/nginx/authentik-server.conf
```
Verify that the following variables are set correctly:
@@ -228,15 +228,15 @@ set $upstream_authentik authentik-server;
proxy_pass http://$upstream_authentik:9000;
```
If not, press `i` to enter edit mode, make the necessary changes, then save and exit by pressing `Esc` followed by `:x`.
If not, make the necessary changes, then save with :kbd{value="Ctrl+O"}, :kbd{value="Enter"}, and exit with :kbd{value="Ctrl+X"}.
Create the `auth.subdomain.conf` file:
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/auth.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/auth.subdomain.conf
```
Press `i` to enter edit mode and paste the following configuration:
Paste the following configuration:
```nginx
## Version 2023/05/31
@@ -273,7 +273,7 @@ server {
}
```
Save and exit by pressing `Esc` then `:x`.
Save with :kbd{value="Ctrl+O"}, then :kbd{value="Enter"}, and exit with :kbd{value="Ctrl+X"}.
Go to Dockge, and edit the SWAG compose file to add the Authentik network:
@@ -349,12 +349,12 @@ Why do this when Dockge already has authentication? Because Dockge uses weak HTT
Edit the file `dockge.mydomain.com`:
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/dockge.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/dockge.subdomain.conf
```
Press `i` to enter edit mode and uncomment the two lines `#include /config/nginx/authentik-server.conf;`
Uncomment the two lines `#include /config/nginx/authentik-server.conf;`
Press `Esc`, type `:x`, and press `Enter` to save and exit.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
Done! Now when accessing `https://dockge.mydomain.com`, youll be redirected to the Authentik login screen.
@@ -417,7 +417,7 @@ docker_map_ports: true
docker_labels: null
```
Save and exit.
Save with :kbd{value="Ctrl+O"}, then :kbd{value="Enter"}, and exit with :kbd{value="Ctrl+X"}.
On the list of created outposts, locate the new one and click _Show details_ at the end of the line. Carefully copy the access token.
@@ -443,9 +443,9 @@ Create the `compose.yaml` file or paste the configuration directly into Dockge i
Via command line:
```sh
sudo vi /docker/authentik-outpost/compose.yaml
sudo nano /docker/authentik-outpost/compose.yaml
```
Enter edit mode by pressing `i` and paste the following configuration, updating the version in `{AUTHENTIK_TAG:proxy:2024.2.3}`{lang=properties} to match your Authentik server version.
Paste the following configuration, updating the version in `{AUTHENTIK_TAG:proxy:2024.2.3}`{lang=properties} to match your Authentik server version.
```yaml
version: "3.5"
@@ -472,7 +472,7 @@ services:
Go to the SWAG stack on the remote machine (or edit directly using Dockge) and add the authentik-outpost network in the configuration file like this (see `networks` section):
```sh
sudo vi /docker/swag/compose.yaml
sudo nano /docker/swag/compose.yaml
```
```yaml
@@ -491,7 +491,7 @@ networks: # Define the custom network
external: true # Marks it as an external network
```
Press `Esc`, then type `:x` and press `Enter` to save and exit.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
::note
@@ -512,10 +512,10 @@ Create (or fill using Dockge) the `.env` file in the `authentik-outpost` directo
Via command line:
```sh
sudo vi /docker/authentik-outpost/.env
sudo nano /docker/authentik-outpost/.env
```
Enter edit mode with `i` and paste the following configuration:
Paste the following configuration:
```properties
HOST=
@@ -529,7 +529,7 @@ Fill in the values:
| `HOST`{lang=properties} | The URL of your Authentik server | `https://auth.domain.com` |
| `TOKEN`{lang=properties} | The previously copied access token | `Q2pVEqsTNRkJSO9SkJzU3KZ2` |
Press `Esc`, then type `:x` and press `Enter` to save and exit.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
If using Dockge, deploy the stack.
@@ -547,17 +547,17 @@ Now, lets configure SWAG.
Open the `authentik-server.conf` file:
```sh
sudo vi /docker/swag/config/nginx/authentik-server.conf
sudo nano /docker/swag/config/nginx/authentik-server.conf
```
In the file, press `i` to enter edit mode and change `authentik-server` to `authentik-outpost` as shown:
In the file, change `authentik-server` to `authentik-outpost` as shown:
```nginx
set $upstream_authentik authentik-outpost;
proxy_pass http://$upstream_authentik:9000;
```
Save and exit with `Esc`, then `:x` and `Enter`.
Save with :kbd{value="Ctrl+O"}, then :kbd{value="Enter"}, and exit with :kbd{value="Ctrl+X"}.
Then configure the applications to protect as you did on your main server, whether they are [native](/serveex/security/authentik/#protecting-a-native-app) or protected via [reverse proxy](/serveex/security/authentik#protecting-an-app-via-reverse-proxy).
@@ -97,10 +97,10 @@ Create a file `tunnelconfig.yml` to reference in your SWAG `compose.yaml`.
::
```sh
sudo vi /docker/swag/config/tunnelconfig.yml
sudo nano /docker/swag/config/tunnelconfig.yml
```
Press `i` to enter insert mode and paste:
Paste:
```yaml
ingress:
@@ -114,7 +114,7 @@ ingress:
- service: http_status:404
```
Press `Esc`, then save and exit with `:x` and `Enter`.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
### Cloudflare Real IP Configuration
@@ -123,10 +123,10 @@ Now configure _Cloudflare Real IP_.
Open the `nginx.conf` file:
```sh
sudo vi /docker/swag/config/nginx/nginx.conf
sudo nano /docker/swag/config/nginx/nginx.conf
```
Press `i` and add the following at the end of the `http` section:
Add the following at the end of the `http` section:
```nginx
real_ip_header X-Forwarded-For;
@@ -135,7 +135,7 @@ include /config/nginx/cf_real-ip.conf;
set_real_ip_from 127.0.0.1;
```
Save and exit with `:x`.
Save with :kbd{value="Ctrl+O"}, then :kbd{value="Enter"}, and exit with :kbd{value="Ctrl+X"}.
### Docker Compose
@@ -87,9 +87,9 @@ you can use [File Browser](/serveex/files/file-browser) to browse and edit your
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/stats.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/stats.subdomain.conf
```
Enter insert mode with `i` and paste the following config:
Paste the following config:
```nginx
## Version 2023/12/19
@@ -142,7 +142,7 @@ server {
}
```
Press `Esc`, then save and exit with `:x` and `Enter`.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
In Dockge, edit the SWAG compose and add the Uptime-Kuma network:
@@ -121,9 +121,9 @@ In the Swag folder, create the `dozzle.subdomain.conf` file.
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/dozzle.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/dozzle.subdomain.conf
```
Enter edit mode by pressing `i` and paste the configuration below:
Paste the configuration below:
```nginx
## Version 2023/12/19
@@ -176,7 +176,7 @@ server {
}
```
Press `Esc`, then save and exit by typing `:x` and pressing `Enter`.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
And there you go, Dozzle is now exposed!
@@ -107,7 +107,7 @@ Speedtest Tracker does not use multi-factor authentication. Exposing it on the i
Open the `speedtest.subdomain.conf` file:
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/speedtest.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/speedtest.subdomain.conf
```
Configure it like this:
@@ -195,10 +195,10 @@ In Swags config folders, create `beszel.subdomain.conf`.
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/beszel.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/beszel.subdomain.conf
```
Press `i` to enter insert mode and paste:
Paste:
```nginx
## Version 2023/12/19
@@ -244,7 +244,7 @@ server {
}
```
Press `Esc`, type `:x`, and hit `Enter` to save and exit.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
Thats it—Beszel is now exposed!
@@ -134,9 +134,9 @@ In the Swag folders, create the file `upsnap.subdomain.conf`.
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/upsnap.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/upsnap.subdomain.conf
```
Enter edit mode by pressing `i`, and paste the following configuration:
And paste the following configuration:
```nginx
## Version 2023/12/19
@@ -189,7 +189,7 @@ server {
}
```
Press `Escape`, then save and exit by typing `:x` and pressing `Enter`.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
And thats it — youve exposed UpSnap!
+3 -3
View File
@@ -217,10 +217,10 @@ Copy and rename the file `tautulli.subdomain.conf.sample` to `tautulli.subdomain
```sh
sudo cp /docker/swag/config/nginx/proxy-confs/tautulli.subdomain.conf.sample /docker/swag/config/nginx/proxy-confs/tautulli.subdomain.conf
sudo vi /docker/swag/config/nginx/proxy-confs/tautulli.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/tautulli.subdomain.conf
```
Ensure the configuration matches the following. If needed, press `i` to edit:
Ensure the configuration matches the following, and edit it if needed:
```nginx
## Version 2023/05/31
@@ -305,7 +305,7 @@ server {
✨ You can protect this app with Authentik by removing the `#` before `include /config/nginx/authentik-server.conf;` and `include /config/nginx/authentik-location.conf;`. Dont forget to [create an application and provider in Authentik](/serveex/security/authentik#protecting-an-app-via-reverse-proxy).
::
Press `Esc` then save and quit by typing `:x`
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
Wait a few minutes, then open `http://tautulli.mydomain.com` in your browser.
@@ -152,10 +152,10 @@ sudo mkdir /docker/gluetun
Create the `config.toml` file:
```sh
sudo vi /docker/gluetun/config.toml
sudo nano /docker/gluetun/config.toml
```
Press `i` to edit and enter:
Enter:
```toml
[[roles]]
@@ -165,7 +165,7 @@ auth = "apikey"
apikey = "your_key_here" # key you just generated
```
Press `Esc` then type `:x` to save and exit.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
In Dockge, fill in the variables in `.env`:
@@ -261,10 +261,10 @@ Now create/edit `seedbox.subdomain.conf`.
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/seedbox.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/seedbox.subdomain.conf
```
Press `i` and paste the following config (check the port):
Paste the following config (check the port):
```nginx
## Version 2023/12/19
@@ -321,7 +321,7 @@ server {
✨ You can secure this app with Authentik by uncommenting the `authentik-server.conf` and `authentik-location.conf` lines. Dont forget to [create an app and provider in Authentik](/serveex/security/authentik#protecting-an-app-via-reverse-proxy).
::
Press `Esc`, type `:x` to save and quit.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
Wait a few minutes, then go to `https://seedbox.mydomain.com`—you should land on the Qbittorrent interface.
+3 -3
View File
@@ -458,10 +458,10 @@ Create and edit the file `films.subdomain.conf`:
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/films.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/films.subdomain.conf
```
Enter insert mode by pressing `i`:
Paste the following:
```nginx
## Version 2024/07/16
@@ -522,7 +522,7 @@ server {
}
```
Press `Escape`, then type `:x` and press `Enter` to save and exit.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
Wait a few minutes, then visit `http://films.mydomain.com` in your browser.
+3 -3
View File
@@ -94,9 +94,9 @@ __Tip:__ You can use [File Browser](/serveex/files/file-browser) to navigate and
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/immich.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/immich.subdomain.conf
```
Press `i` to enter insert mode, then paste the following configuration:
Then paste the following configuration:
```nginx
## Version 2023/12/19
@@ -157,7 +157,7 @@ server {
}
```
Press `Esc`, type `:x`, then hit `Enter` to save and exit.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
That's it! Immich is now accessible from the internet. Dont forget to install the [iOS](https://apps.apple.com/us/app/immich/id1613945652) / [Android](https://play.google.com/store/apps/details?id=app.alextran.immich) apps to sync your devices.
+6 -6
View File
@@ -125,10 +125,10 @@ In Nextclouds files, edit the `config.php` file:
::
```sh
sudo vi /docker/nextcloud/config/www/nextcloud/config/config.php
sudo nano /docker/nextcloud/config/www/nextcloud/config/config.php
```
Enter edit mode with `i` and paste the following before the final `);`:
Paste the following before the final `);`:
```php
'trusted_proxies' => [gethostbyname('swag')],
@@ -146,15 +146,15 @@ array (
),
```
Press `Esc`, then save and exit by typing `:x` and hitting Enter.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
In Swags folders, create the file `nextcloud.subdomain.conf`:
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/nextcloud.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/nextcloud.subdomain.conf
```
Enter edit mode with `i` and paste the following:
Paste the following:
```nginx
## Version 2024/04/25
@@ -188,7 +188,7 @@ server {
}
```
Press `Esc`, save and exit with `:x` then Enter.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
Thats it—youve exposed Nextcloud! Dont forget to install [the desktop and mobile apps](https://nextcloud.com/install/).
@@ -101,10 +101,10 @@ Restart the stack by clicking "deploy" and wait for SWAG to fully initialize.
In the Swag folders, create the file `files.subdomain.conf`.
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/files.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/files.subdomain.conf
```
Enter insert mode by pressing `i`, and paste the following configuration:
And paste the following configuration:
```nginx
## Version 2023/12/19
@@ -156,7 +156,7 @@ server {
}
```
Press `Esc`, then save and exit with `:x` followed by `Enter`.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
Thats it—File Browser is now exposed!
+3 -3
View File
@@ -122,9 +122,9 @@ __Tip:__ you can use [File Browser](/serveex/files/file-browser) to browse your
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/pingvin.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/pingvin.subdomain.conf
```
Press `i` to enter edit mode and paste the configuration below:
Paste the configuration below:
```nginx
## Version 2023/12/19
@@ -178,7 +178,7 @@ server {
```
Press `Escape`, then save and quit by typing `:x` and pressing `Enter`.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
That's it, you've exposed Pingvin!
@@ -162,10 +162,10 @@ Inside the Swag config folders, create the file `code.subdomain.conf`.
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/code.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/code.subdomain.conf
```
Enter insert mode with `i` and paste the following configuration:
Paste the following configuration:
```nginx
## Version 2023/12/19
@@ -217,7 +217,7 @@ server {
}
```
Press `Esc`, then save and exit by typing `:x` and pressing `Enter`.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
Thats it — code-server is now exposed!
@@ -114,9 +114,9 @@ Inside the Swag folders, create the file `gitea.subdomain.conf`.
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/gitea.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/gitea.subdomain.conf
```
Press `i` to enter edit mode and paste the configuration below:
Paste the configuration below:
```nginx
## Version 2023/12/19
@@ -175,15 +175,15 @@ server {
}
```
Press `Esc`, then save and exit by typing `:x` and hitting `Enter`.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
Now open the `app.ini` file from the container's file system:
```sh
sudo vi /docker/gitea/data/gitea/conf/app.ini
sudo nano /docker/gitea/data/gitea/conf/app.ini
```
Press `i` to edit, then modify the server section with your domain information:
Then modify the server section with your domain information:
```properties
[server]
@@ -192,7 +192,7 @@ SSH_DOMAIN = gitea.yourdomain.com
ROOT_URL = https://gitea.yourdomain.com/
```
Press `Esc`, save and exit with `:x`, then restart the container.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit, then restart the container.
And thats it! Gitea is now exposed to the web.
@@ -102,10 +102,10 @@ Inside the Swag folders, create the file `tools.subdomain.conf`.
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/tools.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/tools.subdomain.conf
```
Enter edit mode by pressing `i` and paste the configuration below:
Paste the configuration below:
```nginx
## Version 2023/12/19
@@ -158,7 +158,7 @@ server {
}
```
Press `Esc`, then save and exit by typing `:x` and pressing `Enter`.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
And thats it — IT Tools is now exposed!
+3 -3
View File
@@ -148,10 +148,10 @@ You can use [File Browser](/serveex/files/file-browser) to browse and edit files
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/adguard.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/adguard.subdomain.conf
```
Edit the file by pressing `i` and then pasting the configuration below:
Paste the configuration below:
```nginx
## Version 2023/05/31
@@ -237,7 +237,7 @@ You can protect this app with Authentik by opening `adguard.subdomain.conf` and
- Under *Advanced Protocol Settings > Authenticated Paths*, enter `^/dns-query`
::
Press `Esc`, then save and exit by typing `:x`
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
And that's it! AdGuard is now exposed!
+3 -3
View File
@@ -148,10 +148,10 @@ In SWAG's config folder, create the file `vault.subdomain.conf`:
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/vault.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/vault.subdomain.conf
```
Press `i` to edit, and paste the following configuration:
And paste the following configuration:
```nginx
server {
@@ -237,7 +237,7 @@ server {
}
```
Press `Esc`, then type `:x` and press `Enter` to save and exit.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
And there you go — Vaultwarden is now exposed! Visit `https://vault.yourdomain.com/admin` to access the admin panel and paste the password you specified when generatique the `ADMIN_TOKEN`. For more information, see the [Bitwarden documentation](https://bitwarden.com/help/).
@@ -208,10 +208,10 @@ sudo cp ~/wg0.conf /docker/wireguard/config/wg_confs
Create `compose.yaml` in `/docker/wireguard`:
```sh
sudo vi /docker/wireguard/compose.yaml
sudo nano /docker/wireguard/compose.yaml
```
Press `i` to enter insert mode and paste:
Paste:
```yaml
services:
@@ -233,7 +233,7 @@ services:
restart: unless-stopped
```
Press `Esc` then type `:x` to save and exit.
Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ctrl+X"} to exit.
Start the container:
+6 -6
View File
@@ -48,10 +48,10 @@ Ensuite nous allons éditer le fichier `/etc/samba/smb.conf`
::
```sh
sudo vim /etc/samba/smb.conf
sudo nano /etc/samba/smb.conf
```
Localisez la variable `workgroup` puis passez en mode modification en appuyant sur `i` et nommez votre worgroup, par exemple `::::properties workgroup = WORKGROUP`
Localisez la variable `workgroup` et nommez votre workgroup, par exemple `workgroup = WORKGROUP`
Puis allez à la fin du fichier et collez la configuration suivante
@@ -66,7 +66,7 @@ Puis allez à la fin du fichier et collez la configuration suivante
force directory mode = 770
inherit permissions = yes
```
Appuyez sur `Echap` pour quitter le mode notification puis tapez `:x` et appuyez sur `Entrée` pour sauvegarder et quitter.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
### Créer un utilisateur et un groupe pour Samba
@@ -147,9 +147,9 @@ Nous allons le créer dans le dossier `/smb`.
```sh
sudo mkdir /smb
sudo vi /smb/.credentials
sudo nano /smb/.credentials
```
Passez en mode modification en appuyant sur `i` et configurez comme suit :
Configurez comme suit :
```properties
username=smbuser
@@ -159,7 +159,7 @@ password=motdepasse
- `smbuser` : L'utilisateur que nous avons configuré sur la `machine-distante`
- `motdepasse` : Le mot de passe que nous avons configuré sur la `machine-distante`
Appuyez sur `Echap` afin de quitter le mode modification, puis tapez `:x` et appuyez sur `Entrée` pour sauvegarder et quitter.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Nous allons modifier les permissions du dossier afin que seul le propriétaire puis lire et écrire dans ce fichier.
@@ -45,7 +45,7 @@ Quelques app que vous utiliserez forcément à un moment donné, autant les inst
```sh
sudo apt update
sudo apt upgrade
sudo apt install vim btop ranger git duf neofetch samba cifs-utils tree unzip
sudo apt install nano btop ranger git duf neofetch samba cifs-utils tree unzip
```
En plus :
+3 -3
View File
@@ -78,11 +78,11 @@ cd /docker
sudo mkdir dockge
```
Puis créez le fichier `compose.yml` dans ce dossier avec l'outil vim que vous avez installé préalablement (dans les outils CLI)
Puis créez le fichier `compose.yml` dans ce dossier avec l'outil nano que vous avez installé préalablement (dans les outils CLI)
```sh
cd /docker/dockge
sudo vi compose.yml
sudo nano compose.yml
```
Appuyer sur `i` pour rentrer en modif et copiez-collez ceci.
@@ -107,7 +107,7 @@ services:
- DOCKGE_STACKS_DIR=/docker
```
Appuyez sur `Echap` pour quitter le mode modif et tapez `:x` pour enregistrer et quitter
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Pour lancer le conteneur, tapez :
+5 -5
View File
@@ -140,7 +140,7 @@ vous pouvez utiliser [File Browser](/fr/serveex/files/file-browser) pour navigue
::
```sh
sudo vi /docker/swag/config/dns-conf/ovh.ini
sudo nano /docker/swag/config/dns-conf/ovh.ini
```
Voici ce qui s'affiche :
@@ -162,14 +162,14 @@ Les permissions à configurer sont les suivantes :
* ``POST /domain/zone/*``
* ``DELETE /domain/zone/*``
Notez les 3 clés temporairement et renseignez le fichier `ovh.ini`. (avec vim, `i` pour passer en modif, `Echap` quand c'est fini, `:x` pour sauvegarder et quitter)
Notez les 3 clés temporairement et renseignez le fichier `ovh.ini`. (avec nano, écrivez directement, puis :kbd{value="Ctrl+O"}, :kbd{value="Entrée"}, :kbd{value="Ctrl+X"} pour sauvegarder et quitter)
Sauvegardez et quittez le fichier.
Configurez aussi swag pour qu'il accède à DBIP, le module de gestion des accès par géolocalisation /Ouvrez le fichier nginx.conf
```sh
sudo vi /docker/swag/config/nginx/nginx.conf
sudo nano /docker/swag/config/nginx/nginx.conf
```
Et ajoutez la ligne suivante en dessous de la section `http` :
@@ -198,7 +198,7 @@ La configuration est activable ou désactivable pour chaque service qui sera pro
Ouvrez `dbip.conf` :
```sh
sudo vi /docker/swag/config/nginx/dbip.conf
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:
@@ -285,7 +285,7 @@ Dockge n'utilise pas d'authentification multifacteur. Exposer Dockge sur interne
Ouvrez le fichier dockge.subdomain.conf :
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/dockge.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/dockge.subdomain.conf
```
Paramétrez le comme tel :
@@ -201,10 +201,10 @@ sudo mkdir -p /docker/wireguard/config/wg_confs
Créez le fichier `wg0.conf`
```sh
sudo vi /docker/wireguard/config/wg_confs/wg0.conf
sudo nano /docker/wireguard/config/wg_confs/wg0.conf
```
Rentrez en édition en appuyant sur `i` puis Copiez collez le contenu du `wg0.conf` que vous avez téléchargé. Puis sortez du mode édition en appuyant sur `Echap` puis tapez `:x`.
Copiez-collez le contenu du `wg0.conf` que vous avez téléchargé, puis enregistrez avec :kbd{value="Ctrl+O"} et :kbd{value="Entrée"}, et quittez avec :kbd{value="Ctrl+X"}.
::tip
✨ __Astuce :__ Un autre moyen est de transférer le fichier par sftp dans le dossier `/home/nomdutilisateur` puis de le copier dans le bon dossier :
@@ -215,7 +215,7 @@ Rentrez en édition en appuyant sur `i` puis Copiez collez le contenu du `wg0.co
Creez le `compose.yaml` dans `/docker/wireguard `:
```sh
sudo vi /docker/wireguard/compose.yaml
sudo nano /docker/wireguard/compose.yaml
```
Appuyez sur `i` pour rentrer en modification et copiez la configuration ci-dessous
```yaml
@@ -238,7 +238,7 @@ services:
restart: unless-stopped
```
Appuyez sur `Echap` puis tapez `:x` pour quitter et sauvegarder.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Lancez le conteneur :
```sh
+19 -19
View File
@@ -67,7 +67,7 @@ sudo echo "AUTHENTIK_SECRET_KEY=$(openssl rand 60 | base64)" >> .env
Afin de générer la clé, nous avons créé les dossiers en amont du déploiement via Dockge. Dockge vous empechera de créer une stack du meme nom dans ces dossiers s'il n'existe pas de `compose.yml`. Il faut donc créer un `compose.yml` vide afin que ce dernier la reconnaisse comme existante dans les stacks inactives :
```sh
sudo vi /docker/authentik/compose.yml
sudo nano /docker/authentik/compose.yml
```
::
@@ -215,7 +215,7 @@ vous pouvez utiliser [File Browser](/fr/serveex/files/file-browser) pour navigue
::
```sh
sudo vi /docker/swag/config/nginx/authentik-server.conf
sudo nano /docker/swag/config/nginx/authentik-server.conf
```
Vérifiez que dans chaque cas les variables ci-dessous sont correctes :
@@ -225,16 +225,16 @@ set $upstream_authentik authentik-server;
proxy_pass http://$upstream_authentik:9000;
```
Si ce n'est pas le cas, passez en mode modification en tapant `i` et éditez les. Sauvegardez et quittez en tapant sur `Echap` puis `:x`.
Si ce n'est pas le cas, éditez-les, puis enregistrez avec :kbd{value="Ctrl+O"} et :kbd{value="Entrée"}, et quittez avec :kbd{value="Ctrl+X"}.
Créez le fichier `auth.subdomain.conf`
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/auth.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/auth.subdomain.conf
```
Appuyez sur `i` pour rentrer en mode modification puis collez la configuration suivante :
Collez la configuration suivante :
```nginx
## Version 2023/05/31
@@ -274,7 +274,7 @@ server {
}
```
Sauvegardez et quittez en appuyant sur `Echap` puis en tapant `:x`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Rendez-vous dans dockge, et éditez le compose de SWAG en ajoutant le réseau d'Authentik :
@@ -350,12 +350,12 @@ Pourquoi le faire alors que Dockge a déjà une page d'authentification ? Tout s
Ensuite rendez-vous dans le fichier `dockge.mondomaine.fr`.
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/dockge.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/dockge.subdomain.conf
```
Puis entrez en modification en appuyant sur `i` et enlevez les `#` des deux lignes `#include /config/nginx/authentik-server.conf;`{lang=nginx}.
Puis enlevez les `#` des deux lignes `#include /config/nginx/authentik-server.conf;`{lang=nginx}.
Appuyez sur `Echap` puis tapez `:x` et appuyez sur `Entrée` pour sauvegarder et quitter.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Et voilà ! En tapant `https://dockge.mondomaine.fr`, vous tomberez à présent sur la mire d'authentification de authentik.
@@ -444,9 +444,9 @@ Créez le fichier `compose.yaml` ou copiez la configuration directement dans le
En ligne de commande :
```sh
sudo vi /docker/authentik-outpost/compose.yaml
sudo nano /docker/authentik-outpost/compose.yaml
```
Entrez en mode modification avec `i` et 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.
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
version: "3.5"
@@ -477,7 +477,7 @@ services:
Rendez-vous sur la stack de SWAG de la machine distante (ou remplissez directement si vous avez [Dockge](/fr/serveex/core/docker#installer-dockge-pour-gérer-et-déployer-les-conteneurs)) et ajoutez le réseau de authentik-outpost dans le fichier de conf sur ce modele (les champs `networks`) :
```sh
sudo vi /docker/swag/compose.yaml
sudo nano /docker/swag/compose.yaml
```
```yaml
@@ -496,7 +496,7 @@ networks: # Définit le réseau custom
external: true # Précise que c'est un réseau à rechercher en externe
```
Appuyez sur `Echap` puis tapez `:x` et appuyez sur `Entrée` pour sauvegarder et quitter.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
::note
@@ -517,10 +517,10 @@ Creez (ou remplissez directement si vous avez [Dockge](/fr/serveex/core/docker#i
En ligne de commande :
```sh
sudo vi /docker/authentik-outpost/.env
sudo nano /docker/authentik-outpost/.env
```
Entrez en mode modification avec `i` et collez la configuration suivante
Collez la configuration suivante
```properties
HOST=
@@ -533,7 +533,7 @@ Remplissez comme suit
| `HOST`{lang=properties} | L'url de votre serveur authentik | `https://auth.domaine.fr` |
| `TOKEN`{lang=properties} | Le token que vous avez précédemment copié précieusement | `Q2pVEqsTNRkJSO9SkJzU3KZ2` |
Appuyez sur `Echap` puis tapez `:x` et appuyez sur `Entrée` pour sauvegarder et quitter.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Si vous avez [Dockge](/fr/serveex/core/docker#installer-dockge-pour-g"rer-et-d"ployer-les-conteneurs), déployez la stack.
@@ -551,17 +551,17 @@ Nous allons a présent configurer SWAG.
Ouvrez le fichier `authentik-server.conf`.
```sh
sudo vi /docker/swag/config/nginx/authentik-server.conf
sudo nano /docker/swag/config/nginx/authentik-server.conf
```
Dans le fichier, passez en mode modification en tapant `i` et changez `authentik-server` par `authentik-outpost` comme suit :
Dans le fichier, changez `authentik-server` par `authentik-outpost` comme suit :
```nginx
set $upstream_authentik authentik-outpost;
proxy_pass http://$upstream_authentik:9000;
```
Sauvegardez et quittez en tapant sur `Echap` puis `:x` et sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Ensuite, configurez les applications à protéger selon si elles sont [natives](/fr/serveex/security/authentik#protéger-une-app-native) ou par [proxy](/fr/serveex/security/authentik#protéger-une-app-par-reverse-proxy) comme vous l'avez fait sur votre serveur principal.
@@ -96,10 +96,10 @@ Pour configurer les tunnels, nous aurons besoin de créer un fichier `tunnelconf
::
```sh
sudo vi /docker/swag/config/tunnelconfig.yml
sudo nano /docker/swag/config/tunnelconfig.yml
```
Entrez en modification avec la touche `i` et collez la configuration ci-dessous
Collez la configuration ci-dessous
```yaml
ingress:
@@ -113,7 +113,7 @@ ingress:
- service: http_status:404
```
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
### Configuration de Cloudflare Real IP
@@ -122,9 +122,9 @@ A présent, nous allons configurer le bon fonctionnement du mode _Cloudflare Rea
Ouvrez le fichier `nginx.conf`
```sh
sudo vi /docker/swag/config/nginx/nginx.conf
sudo nano /docker/swag/config/nginx/nginx.conf
```
Entrez en modification avec la touche `i` et collez la configuration ci-dessous à la fin de la section `http`
Collez la configuration ci-dessous à la fin de la section `http`
```nginx
real_ip_header X-Forwarded-For;
@@ -132,7 +132,7 @@ real_ip_recursive on;
include /config/nginx/cf_real-ip.conf;
set_real_ip_from 127.0.0.1;
```
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
### Docker compose
@@ -86,9 +86,9 @@ vous pouvez utiliser [File Browser](/fr/serveex/files/file-browser) pour navigue
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/stats.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/stats.subdomain.conf
```
Entrez en modification avec la touche `i` et collez la configuration ci-dessous :
Collez la configuration ci-dessous :
```nginx
## Version 2023/12/19
@@ -140,7 +140,7 @@ server {
}
}
```
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Rendez-vous dans dockge, et éditez le compose de SWAG en ajoutant le réseau d'Uptime-Kuma :
@@ -120,9 +120,9 @@ Dans les dossiers de Swag, créez le fichier `dozzle.subdomain.conf`.
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/dozzle.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/dozzle.subdomain.conf
```
Entrez en modification avec la touche `i` et collez la configuration ci-dessous :
Collez la configuration ci-dessous :
```nginx
## Version 2023/12/19
@@ -175,7 +175,7 @@ server {
}
```
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Et voilà, vous avez exposé Dozzle !
@@ -106,7 +106,7 @@ Speedtest Tracker n'utilise pas d'authentification multifacteur. Exposer Speedte
Ouvrez le fichier speedtest.subdomain.conf :
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/speedtest.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/speedtest.subdomain.conf
```
Paramétrez le comme tel :
@@ -193,9 +193,9 @@ Dans les dossiers de Swag, créez le fichier `beszel.subdomain.conf`.
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/beszel.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/beszel.subdomain.conf
```
Entrez en modification avec la touche `i` et collez la configuration ci-dessous :
Collez la configuration ci-dessous :
```nginx
## Version 2023/12/19
@@ -248,7 +248,7 @@ server {
}
```
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Et voilà, vous avez exposé Beszel !
@@ -133,9 +133,9 @@ Dans les dossiers de Swag, créez le fichier `upsnap.subdomain.conf`.
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/upsnap.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/upsnap.subdomain.conf
```
Entrez en modification avec la touche `i` et collez la configuration ci-dessous :
Collez la configuration ci-dessous :
```nginx
## Version 2023/12/19
@@ -188,7 +188,7 @@ server {
}
```
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Et voilà, vous avez exposé UpSnap !
+3 -3
View File
@@ -212,10 +212,10 @@ Copiez en renommant le fichier `tautulli.subdomain.conf.sample` en `tautulli.sub
```sh
sudo cp /docker/swag/config/nginx/proxy-confs/tautulli.subdomain.conf.sample /docker/swag/config/nginx/proxy-confs/tautulli.subdomain.conf
sudo vi /docker/swag/config/nginx/proxy-confs/tautulli.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/tautulli.subdomain.conf
```
Et vérifiez que la configuration correspond bien à ceci, sinon éditez le fichier en appuyant sur `i`:
Et vérifiez que la configuration correspond bien à ceci, sinon éditez le fichier :
```nginx
## Version 2023/05/31
@@ -300,7 +300,7 @@ server {
✨ Vous pouvez protéger cette app avec Authentik 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](/fr/serveex/security/authentik#protéger-une-app-par-reverse-proxy).
::
Appuyez sur `Echap` puis sauvegardez et quittez en tappant `:x`
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Patientez quelques minutes puis tapez dans votre navigateur `http://tautulli.mondomaine.fr`.
@@ -152,10 +152,10 @@ sudo mkdir /docker/gluetun
Et créez le fichier `config.toml`
```sh
sudo vi /docker/gluetun/config.toml
sudo nano /docker/gluetun/config.toml
```
Entrez en modification en tapant `i` et éditez le comme suit en ajoutant la clée que vous avez générée :
Éditez le comme suit en ajoutant la clée que vous avez générée :
```toml
[[roles]]
@@ -165,7 +165,7 @@ auth = "apikey"
apikey = "votre_clée" # clée que vous avez générée précédemment
```
Appuyez sur `échap` et quittez en sauvegardant en tapant `:x`. Rendez-vous dans Dockge, et renseignez les variables dans `.env`:
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
PUID=
@@ -259,10 +259,10 @@ Puis nous allons créer et éditer le fichier `seedbox.subdomain.conf`.
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/seedbox.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/seedbox.subdomain.conf
```
Entrez en modification en appuyant sur `i` et copiez la configuration ci-dessous, en prenant soin de vérifier le port :
Copiez la configuration ci-dessous, en prenant soin de vérifier le port :
```nginx
## Version 2023/12/19
@@ -318,7 +318,7 @@ server {
✨ Vous pouvez protéger cette app avec Authentik 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](/fr/serveex/security/authentik#protéger-une-app-par-reverse-proxy).
::
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Patientez quelques minutes puis tapez dans votre navigateur `https://seedbox.mondomaine.fr`, vous arriverez sur l'interface de Qbittorrent.
+3 -3
View File
@@ -455,10 +455,10 @@ Créez le fichier `films.subdomain.conf` et éditez le :
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/films.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/films.subdomain.conf
```
Rentrez en édition en appuyant sur `i`:
Collez la configuration suivante :
```nginx
## Version 2024/07/16
@@ -519,7 +519,7 @@ server {
}
```
Appuyez sur `Echap` puis sauvegardez et quittez en tappant `:x`
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Patientez quelques minutes puis tapez dans votre navigateur `http://films.mondomaine.fr`.
+3 -3
View File
@@ -93,9 +93,9 @@ __Astuce :__ vous pouvez utiliser [File Browser](/fr/serveex/files/file-browser)
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/immich.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/immich.subdomain.conf
```
Entrez en modification avec la touche `i` et collez la configuration ci-dessous :
Collez la configuration ci-dessous :
```nginx
## Version 2023/12/19
@@ -158,7 +158,7 @@ server {
}
```
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Et voilà, vous avez exposé Immich ! N'oubliez pas d'installer les applications [iOS](https://apps.apple.com/us/app/immich/id1613945652)/[Android](https://play.google.com/store/apps/details?id=app.alextran.immich) afin de synchroniser vos appareils.
+6 -6
View File
@@ -123,10 +123,10 @@ Dans les fichiers de nextcloud, éditez le fichier `config.php`.
::
```sh
sudo vi /docker/nextcloud/config/www/nextcloud/config/config.php
sudo nano /docker/nextcloud/config/www/nextcloud/config/config.php
```
Entrez en modification avec la touche `i` et copiez les informations suivantes __avant__ `);`.
Copiez les informations suivantes __avant__ `);`.
```js
'trusted_proxies' => [gethostbyname('swag')], 'overwrite.cli.url' => 'https://nextcloud.example.com/',
@@ -141,14 +141,14 @@ Ajoutez également votre nom de domaine dans la section `array` , cela devrait r
1 => 'nextcloud.mondomaine.fr', # Renseignez votre domaine
),
```
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Dans les dossiers de Swag, créez le fichier `nextcloud.subdomain.conf`.
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/nexctloud.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/nexctloud.subdomain.conf
```
Entrez en modification avec la touche `i` et collez la configuration ci-dessous :
Collez la configuration ci-dessous :
```nginx
## Version 2024/04/25
@@ -183,7 +183,7 @@ server {
}
```
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Et voilà, vous avez exposé Nextcloud ! Et n'oubliez pas d'installer [les applications pour ordinateurs et mobiles](https://nextcloud.com/fr/install/).
@@ -100,9 +100,9 @@ Relancez la stack en cliquant sur "déployer" et patientez le temps que SWAG soi
Dans les dossiers de Swag, créez le fichier `files.subdomain.conf`.
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/files.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/files.subdomain.conf
```
Entrez en modification avec la touche `i` et collez la configuration ci-dessous :
Collez la configuration ci-dessous :
```nginx
## Version 2023/12/19
@@ -155,7 +155,7 @@ server {
}
```
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Et voilà, vous avez exposé File Browser !
::tip
+3 -3
View File
@@ -122,9 +122,9 @@ __Astuce :__ vous pouvez utiliser [File Browser](/fr/serveex/files/file-browser)
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/pingvin.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/pingvin.subdomain.conf
```
Entrez en modification avec la touche `i` et collez la configuration ci-dessous :
Collez la configuration ci-dessous :
```nginx
## Version 2023/12/19
@@ -178,7 +178,7 @@ server {
```
Appuyez sur `Echap puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Et voilà, vous avez exposé Pingvin !
@@ -161,9 +161,9 @@ Dans les dossiers de Swag, créez le fichier `code.subdomain.conf`.
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/code.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/code.subdomain.conf
```
Entrez en modification avec la touche `i` et collez la configuration ci-dessous :
Collez la configuration ci-dessous :
```nginx
## Version 2023/12/19
@@ -216,7 +216,7 @@ server {
}
```
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Et voilà, vous avez exposé code-server !
@@ -112,9 +112,9 @@ Dans les dossiers de Swag, créez le fichier `gitea.subdomain.conf`.
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/gitea.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/gitea.subdomain.conf
```
Entrez en modification avec la touche `i` et collez la configuration ci-dessous :
Collez la configuration ci-dessous :
```nginx
## Version 2023/12/19
@@ -173,15 +173,15 @@ server {
}
```
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Ouvrez le fichier `app.ini` dans les fichiers du conteneur
```sh
sudo vi /docker/gitea/data/gitea/conf/app.ini
sudo nano /docker/gitea/data/gitea/conf/app.ini
```
Entrez en modification avec la touche `i` et et modifiez la section serveur avec les infos de votre domaine
Et modifiez la section serveur avec les infos de votre domaine
```properties
[server]
@@ -189,7 +189,7 @@ DOMAIN = gitea.mondomaine.fr
SSH_DOMAIN = gitea.mondomaine.fr
ROOT_URL = https://gitea.mondomaine.fr/
```
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Relancez le conteneur.
@@ -101,9 +101,9 @@ Dans les dossiers de Swag, créez le fichier `tools.subdomain.conf`.
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/tools.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/tools.subdomain.conf
```
Entrez en modification avec la touche `i` et collez la configuration ci-dessous :
Collez la configuration ci-dessous :
```nginx
## Version 2023/12/19
@@ -156,7 +156,7 @@ server {
}
```
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Et voilà, vous avez exposé it-tools !
+3 -3
View File
@@ -148,10 +148,10 @@ vous pouvez utiliser [File Browser](/fr/serveex/files/file-browser) pour navigue
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/adguard.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/adguard.subdomain.conf
```
Editez le fichier en appuyant sur `i` puis copiez la configuration ci-dessous :
Copiez la configuration ci-dessous :
```nginx
## Version 2023/05/31
@@ -238,7 +238,7 @@ Vous pouvez protéger cette app avec Authentik en ouvrant `adguard.subdomain.con
- Dans *paramètres avancés du protocole > chemins authentifiés*, saisissez `^/dns-query`
::
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x`
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Et voilà, vous exposez Adguard à présent !
+3 -3
View File
@@ -148,9 +148,9 @@ Dans les dossiers de Swag, créez le fichier `vault.subdomain.conf`.
::
```sh
sudo vi /docker/swag/config/nginx/proxy-confs/vault.subdomain.conf
sudo nano /docker/swag/config/nginx/proxy-confs/vault.subdomain.conf
```
Entrez en modification avec la touche `i` et collez la configuration ci-dessous :
Collez la configuration ci-dessous :
```nginx
server {
@@ -240,7 +240,7 @@ server {
}
```
Appuyez sur `Echap` puis sauvegardez et quittez en tapant `:x` puis en appuyant sur `Entrée`.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Et voilà, vous avez exposé Vaultwarden ! Accédez au panneau d'administration via `https://vault.mondomaine.fr/admin` et collez le mot de passe que vous avez choisi pour générer l'`ADMIN_TOKEN`. Plus d'info sur les fonctionnalités de [Bitwarden](https://bitwarden.com/help/).
@@ -205,7 +205,7 @@ Copiez le fichier` wg0.conf` téléchargé précédemment.
Creez le `compose.yaml` dans `/docker/wireguard `:
```sh
sudo vi /docker/wireguard/compose.yaml
sudo nano /docker/wireguard/compose.yaml
```
Appuyez sur `i` pour rentrer en modification et copiez la configuration ci-dessous
```yaml
@@ -228,7 +228,7 @@ services:
restart: unless-stopped
```
Appuyez sur `Echap` puis tapez `:x` pour quitter et sauvegarder.
Enregistrez avec :kbd{value="Ctrl+O"} puis :kbd{value="Entrée"}, puis quittez avec :kbd{value="Ctrl+X"}.
Lancez le conteneur :
```sh