Add a Linux tips section and move Docker stacks to /srv/docker

This commit is contained in:
Djeex
2026-09-05 12:28:05 +02:00
parent 11d6c275c8
commit 142788d740
40 changed files with 894 additions and 330 deletions
+10 -9
View File
@@ -21,11 +21,12 @@ It supports a simple local username/password login out of the box, which is what
---
tree:
/:
- docker:
- tinyauth:
- compose.yaml
- .env
- data/
- srv:
- docker:
- tinyauth:
- compose.yaml
- .env
- data/
---
::
@@ -33,7 +34,7 @@ tree:
### Create the data folder
```bash [Terminal]
sudo mkdir -p /docker/tinyauth/data
sudo mkdir -p /srv/docker/tinyauth/data
```
### Generate a password hash
@@ -61,7 +62,7 @@ services:
env_file:
- .env
volumes:
- /docker/tinyauth/data:/data
- /srv/docker/tinyauth/data:/data
ports:
- 3000:3000
```
@@ -180,7 +181,7 @@ In the Swag folders, create the file `tinyauth.subdomain.conf`:
::
```bash [Terminal]
sudo nano /docker/swag/config/nginx/proxy-confs/tinyauth.subdomain.conf
sudo nano /srv/docker/swag/config/nginx/proxy-confs/tinyauth.subdomain.conf
```
Paste the following configuration:
@@ -230,7 +231,7 @@ Swag doesn't ship a ready-made include file for TinyAuth, so we'll add the forwa
### Open the app's subdomain.conf file
```bash [Terminal]
sudo nano /docker/swag/config/nginx/proxy-confs/dockge.subdomain.conf
sudo nano /srv/docker/swag/config/nginx/proxy-confs/dockge.subdomain.conf
```
### Add the forward-auth check