Compare commits
26 Commits
feature/tr
...
f3fab15ffb
| Author | SHA1 | Date | |
|---|---|---|---|
| f3fab15ffb | |||
| db968ba5ca | |||
| 191d25e281 | |||
| f07d0937d9 | |||
| 749aa6f1cf | |||
| f4409eb258 | |||
| a74707dc1f | |||
| 5d7a162647 | |||
| a0e63e2e2b | |||
| 2fadb08c72 | |||
| 6d2baa7300 | |||
| 13b73671f8 | |||
| 2217377ae8 | |||
| ca4c3e92f0 | |||
| 3ce92b7394 | |||
| 4ad7bf0a38 | |||
| 6d9139408d | |||
| 6e17920cfd | |||
| 6b1a8b7d45 | |||
| 09b20f71fc | |||
| afbffb97e3 | |||
| 1c5959cafb | |||
| 73e40af91a | |||
| 461a0dc110 | |||
| 91873062c9 | |||
| 8a52e6894f |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,9 +1,8 @@
|
|||||||
*.env
|
*.env
|
||||||
*.bak
|
|
||||||
.idea
|
.idea
|
||||||
docker-compose.override.yml
|
docker-compose.override.yml
|
||||||
/authelia/*.yml
|
/authelia/*.yml
|
||||||
!/authelia/*.example.yml
|
!/authelia/configuration.example.yml
|
||||||
/homepage/logs
|
/homepage/logs
|
||||||
/homepage/*.yaml
|
/homepage/*.yaml
|
||||||
/homepage/*.css
|
/homepage/*.css
|
||||||
|
|||||||
342
README.md
342
README.md
@@ -14,19 +14,18 @@ The core idea is to manage media libraries (movies, TV shows, music), automate d
|
|||||||
- [Required Setup Steps](#required-setup-steps)
|
- [Required Setup Steps](#required-setup-steps)
|
||||||
- [Quick Start Guide](#quick-start-guide)
|
- [Quick Start Guide](#quick-start-guide)
|
||||||
- [Configuration (`.env` Variables)](#configuration-env-variables)
|
- [Configuration (`.env` Variables)](#configuration-env-variables)
|
||||||
- [Core System \& Paths](#core-system--paths)
|
- [Core System \& Paths](#core-system--paths)
|
||||||
- [Networking \& Access (Tailscale)](#networking--access-tailscale)
|
- [Networking \& Access (Tailscale)](#networking--access-tailscale)
|
||||||
- [Authentication (Authelia)](#authentication-authelia)
|
- [Authentication (Authelia)](#authentication-authelia)
|
||||||
- [Service Credentials](#service-credentials)
|
- [Service Credentials](#service-credentials)
|
||||||
- [Homepage Customization \& Widgets](#homepage-customization--widgets)
|
- [Homepage Customization \& Widgets](#homepage-customization--widgets)
|
||||||
- [Optional Features \& Services](#optional-features--services)
|
- [Optional Features \& Services](#optional-features--services)
|
||||||
- [Detailed Setup \& Usage](#detailed-setup--usage)
|
- [Detailed Setup \& Usage](#detailed-setup--usage)
|
||||||
- [Authelia User Management](#authelia-user-management)
|
- [Authelia User Management](#authelia-user-management)
|
||||||
- [(Optional) VPN Configuration](#optional-vpn-configuration)
|
- [(Optional) VPN Configuration](#optional-vpn-configuration)
|
||||||
- [(Optional) Traefik DNS Challenge](#optional-traefik-dns-challenge)
|
- [(Optional) Traefik DNS Challenge](#optional-traefik-dns-challenge)
|
||||||
- [Service Access](#service-access)
|
- [Service Access](#service-access)
|
||||||
- [Setup Script Commands (`update-setup.sh`)](#setup-script-commands-update-setupsh)
|
- [Managing Service Authentication](#managing-service-authentication)
|
||||||
- [Managing Service Authentication](#managing-service-authentication-authelia-policies)
|
|
||||||
- [Optional Services](#optional-services)
|
- [Optional Services](#optional-services)
|
||||||
- [Troubleshooting](#troubleshooting)
|
- [Troubleshooting](#troubleshooting)
|
||||||
- [Middleware Not Found Errors](#middleware-not-found-errors)
|
- [Middleware Not Found Errors](#middleware-not-found-errors)
|
||||||
@@ -40,64 +39,58 @@ The core idea is to manage media libraries (movies, TV shows, music), automate d
|
|||||||
|
|
||||||
This stack uses a combination of key services for routing, access, and security:
|
This stack uses a combination of key services for routing, access, and security:
|
||||||
|
|
||||||
- **[Tailscale](https://tailscale.com):** Provides a secure overlay network (WireGuard-based VPN) connecting your devices. It allows access to the NAS services from anywhere without opening firewall ports and handles HTTPS termination via its built-in `tailscale serve` or `tailscale funnel` features. All other services run within Tailscale's network namespace.
|
* **[Tailscale](https://tailscale.com):** Provides a secure overlay network (WireGuard-based VPN) connecting your devices. It allows access to the NAS services from anywhere without opening firewall ports and handles HTTPS termination via its built-in `tailscale serve` or `tailscale funnel` features. All other services run within Tailscale's network namespace.
|
||||||
- **[Traefik](https://traefik.io):** Acts as a reverse proxy *within* the Tailscale network. It discovers services via Docker labels and routes incoming requests (from Tailscale) to the appropriate container based on paths (e.g., `/sonarr`, `/radarr`).
|
* **[Traefik](https://traefik.io):** Acts as a reverse proxy *within* the Tailscale network. It discovers services via Docker labels and routes incoming requests (from Tailscale) to the appropriate container based on paths (e.g., `/sonarr`, `/radarr`).
|
||||||
- **[Authelia](https://www.authelia.com):** Serves as the authentication gateway. Traefik forwards requests to Authelia for verification. If a user isn't logged in, they are redirected to the Authelia portal (`/`). Once authenticated, Authelia sets a session cookie (stored in Redis), and Traefik allows access to the requested service. You can configure which services require authentication via environment variables.
|
* **[Authelia](https://www.authelia.com):** Serves as the authentication gateway. Traefik forwards requests to Authelia for verification. If a user isn't logged in, they are redirected to the Authelia portal (`/`). Once authenticated, Authelia sets a session cookie (stored in Redis), and Traefik allows access to the requested service. You can configure which services require authentication via environment variables.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
This stack includes the following services, categorized for clarity:
|
This stack includes the following services, categorized for clarity:
|
||||||
|
|
||||||
**Core Infrastructure:**
|
**Core Infrastructure:**
|
||||||
|
* **Reverse Proxy:** [Traefik](https://traefik.io) - Manages internal routing and service discovery.
|
||||||
- **Reverse Proxy:** [Traefik](https://traefik.io) - Manages internal routing and service discovery.
|
* **Secure Remote Access:** [Tailscale](https://tailscale.com) - Provides VPN access and HTTPS.
|
||||||
- **Secure Remote Access:** [Tailscale](https://tailscale.com) - Provides VPN access and HTTPS.
|
* **Authentication:** [Authelia](https://www.authelia.com) & [Redis](https://redis.io) - Single sign-on portal and session management.
|
||||||
- **Authentication:** [Authelia](https://www.authelia.com) & [Redis](https://redis.io) - Single sign-on portal and session management.
|
* **Dashboard:** [Homepage](https://gethomepage.dev) - Centralized access point (at `/home`).
|
||||||
- **Dashboard:** [Homepage](https://gethomepage.dev) - Centralized access point (at `/home`).
|
|
||||||
|
|
||||||
**Media Management (\*Arr Suite):**
|
**Media Management (\*Arr Suite):**
|
||||||
|
* [Sonarr](https://sonarr.tv): TV show management.
|
||||||
- [Sonarr](https://sonarr.tv): TV show management.
|
* [Radarr](https://radarr.video): Movie management.
|
||||||
- [Radarr](https://radarr.video): Movie management.
|
* [Lidarr](https://lidarr.audio) (Optional): Music management.
|
||||||
- [Lidarr](https://lidarr.audio) (Optional): Music management.
|
* [Bazarr](https://www.bazarr.media/): Subtitle management.
|
||||||
- [Bazarr](https://www.bazarr.media/): Subtitle management.
|
* [Prowlarr](https://github.com/Prowlarr/Prowlarr): Indexer management for *arr apps.
|
||||||
- [Prowlarr](https://github.com/Prowlarr/Prowlarr): Indexer management for *arr apps.
|
|
||||||
|
|
||||||
**Download Clients:**
|
**Download Clients:**
|
||||||
|
* [qBittorrent](https://www.qbittorrent.org): Bittorrent client.
|
||||||
- [qBittorrent](https://www.qbittorrent.org): Bittorrent client.
|
* [SABnzbd](https://sabnzbd.org/) (Optional): Usenet download client.
|
||||||
- [SABnzbd](https://sabnzbd.org/) (Optional): Usenet download client.
|
|
||||||
|
|
||||||
**Media Serving & Requests:**
|
**Media Serving & Requests:**
|
||||||
|
* [Jellyfin](https://jellyfin.org): Media server for streaming.
|
||||||
- [Jellyfin](https://jellyfin.org): Media server for streaming.
|
* [Jellyseerr](https://github.com/FallenBagel/jellyseerr): Media request management.
|
||||||
- [Jellyseerr](https://github.com/FallenBagel/jellyseerr): Media request management.
|
|
||||||
|
|
||||||
**Utilities:**
|
**Utilities:**
|
||||||
|
* [Watchtower](https://containrrr.dev/watchtower/): Automatic container updates.
|
||||||
- [Watchtower](https://containrrr.dev/watchtower/): Automatic container updates.
|
* [Autoheal](https://github.com/willfarrell/docker-autoheal/): Automatic container restarts on failure.
|
||||||
- [Autoheal](https://github.com/willfarrell/docker-autoheal/): Automatic container restarts on failure.
|
* [Unpackerr](https://unpackerr.zip): Automated archive extraction.
|
||||||
- [Unpackerr](https://unpackerr.zip): Automated archive extraction.
|
|
||||||
|
|
||||||
**Optional Services (Enabled via Profiles):**
|
**Optional Services (Enabled via Profiles):**
|
||||||
|
* [AdGuard Home](https://adguard.com/en/adguard-home/overview.html): Network-wide ad blocking.
|
||||||
- [AdGuard Home](https://adguard.com/en/adguard-home/overview.html): Network-wide ad blocking.
|
* [Calibre-Web](https://github.com/janeczku/calibre-web): E-book library management.
|
||||||
- [Calibre-Web](https://github.com/janeczku/calibre-web): E-book library management.
|
* [Decluttarr](https://github.com/manimatter/decluttarr): Automated download cleanup.
|
||||||
- [Decluttarr](https://github.com/manimatter/decluttarr): Automated download cleanup.
|
* [Tandoor Recipes](https://docs.tandoor.dev/): Recipe management.
|
||||||
- [Tandoor Recipes](https://docs.tandoor.dev/): Recipe management.
|
* [Joplin Server](https://joplinapp.org/): Note-taking synchronization server.
|
||||||
- [Joplin Server](https://joplinapp.org/): Note-taking synchronization server.
|
* [Home Assistant](https://www.home-assistant.io/): Home automation platform.
|
||||||
- [Home Assistant](https://www.home-assistant.io/): Home automation platform.
|
* [Immich](https://immich.app/): Self-hosted photo and video backup.
|
||||||
- [Immich](https://immich.app/): Self-hosted photo and video backup.
|
* [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr): Bypasses Cloudflare challenges (e.g., for Prowlarr).
|
||||||
- [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr): Bypasses Cloudflare challenges (e.g., for Prowlarr).
|
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- **Linux Host:** A system capable of running Docker (e.g., Ubuntu, Debian, Fedora).
|
* **Linux Host:** A system capable of running Docker (e.g., Ubuntu, Debian, Fedora).
|
||||||
- **Docker & Docker Compose:** Latest versions installed. See [Docker Engine Install](https://docs.docker.com/engine/install/) and [Docker Compose Install](https://docs.docker.com/compose/install/).
|
* **Docker & Docker Compose:** Latest versions installed. See [Docker Engine Install](https://docs.docker.com/engine/install/) and [Docker Compose Install](https://docs.docker.com/compose/install/).
|
||||||
- **User Permissions:** Ability to run `docker` commands (user in `docker` group or use `sudo`).
|
* **User Permissions:** Ability to run `docker` commands (user in `docker` group or use `sudo`).
|
||||||
- **Basic Linux Knowledge:** Familiarity with command line, text editors, and file permissions.
|
* **Basic Linux Knowledge:** Familiarity with command line, text editors, and file permissions.
|
||||||
- **Tailscale Account:** Required for remote access. [Sign up here](https://tailscale.com/login).
|
* **Tailscale Account:** Required for remote access. [Sign up here](https://tailscale.com/login).
|
||||||
- **(Optional) SELinux:** If enabled, see [Troubleshooting](#selinux-socket-permissions-docker).
|
* **(Optional) SELinux:** If enabled, see [Troubleshooting](#selinux-socket-permissions).
|
||||||
|
|
||||||
## Required Setup Steps
|
## Required Setup Steps
|
||||||
|
|
||||||
@@ -120,45 +113,40 @@ These steps are **mandatory** for a working installation. Without properly compl
|
|||||||
|
|
||||||
4. **⚠️ Required: Security Credentials**
|
4. **⚠️ Required: Security Credentials**
|
||||||
- Generate four strong random secrets using `openssl rand -hex 32`:
|
- Generate four strong random secrets using `openssl rand -hex 32`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
echo "AUTHELIA_JWT_SECRET=$(openssl rand -hex 32)"
|
echo "AUTHELIA_JWT_SECRET=$(openssl rand -hex 32)"
|
||||||
echo "AUTHELIA_SESSION_SECRET=$(openssl rand -hex 32)"
|
echo "AUTHELIA_SESSION_SECRET=$(openssl rand -hex 32)"
|
||||||
echo "AUTHELIA_STORAGE_ENCRYPTION_KEY=$(openssl rand -hex 32)"
|
echo "AUTHELIA_STORAGE_ENCRYPTION_KEY=$(openssl rand -hex 32)"
|
||||||
echo "AUTHELIA_REDIS_PASSWORD=$(openssl rand -hex 32)"
|
echo "AUTHELIA_REDIS_PASSWORD=$(openssl rand -hex 32)"
|
||||||
```
|
```
|
||||||
|
|
||||||
- Add these to your `.env` file as shown
|
- Add these to your `.env` file as shown
|
||||||
|
|
||||||
5. **⚠️ Required: Create Authelia Account**
|
5. **⚠️ Required: Create Admin Password**
|
||||||
- Create an Authelia account (only for yourself and those you trust!)
|
|
||||||
|
|
||||||
```bash
|
|
||||||
docker run --rm authelia/authelia:latest authelia hash-password 'your_secure_password'
|
|
||||||
```
|
|
||||||
|
|
||||||
6. **ℹ️ Optional: Set up**
|
|
||||||
- Generate a password hash for Authelia:
|
- Generate a password hash for Authelia:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --rm authelia/authelia:latest authelia hash-password 'your_secure_password'
|
docker run --rm authelia/authelia:latest authelia hash-password 'your_secure_password'
|
||||||
```
|
```
|
||||||
|
|
||||||
- Replace the example hash in `authelia/users_database.yml` with your generated hash
|
- Replace the example hash in `authelia/users_database.yml` with your generated hash
|
||||||
|
|
||||||
|
6. **⚠️ Optional: Authentication Configuration**
|
||||||
|
- Choose which services require authentication by setting the corresponding variables in your `.env` file:
|
||||||
|
```
|
||||||
|
AUTH_JELLYFIN=false # Example: Allow Jellyfin access without authentication
|
||||||
|
AUTH_SONARR=true # Example: Require authentication for Sonarr
|
||||||
|
```
|
||||||
|
- By default, all services require authentication if not specified otherwise
|
||||||
|
|
||||||
## Quick Start Guide
|
## Quick Start Guide
|
||||||
|
|
||||||
After completing all [Required Setup Steps](#required-setup-steps) above, follow these steps to get up and running:
|
After completing all [Required Setup Steps](#required-setup-steps) above, follow these steps to get up and running:
|
||||||
|
|
||||||
1. **Clone Repository:**
|
1. **Clone Repository:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/AdrienPoupa/docker-compose-nas.git
|
git clone https://github.com/AdrienPoupa/docker-compose-nas.git
|
||||||
cd docker-compose-nas
|
cd docker-compose-nas
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **Configure Environment:**
|
2. **Configure Environment:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Create an .env file from the example
|
# Create an .env file from the example
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
@@ -168,7 +156,6 @@ After completing all [Required Setup Steps](#required-setup-steps) above, follow
|
|||||||
```
|
```
|
||||||
|
|
||||||
3. **Configure Authelia Admin:**
|
3. **Configure Authelia Admin:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Generate a password hash
|
# Generate a password hash
|
||||||
docker run --rm authelia/authelia:latest authelia hash-password 'your_secure_password'
|
docker run --rm authelia/authelia:latest authelia hash-password 'your_secure_password'
|
||||||
@@ -178,29 +165,23 @@ After completing all [Required Setup Steps](#required-setup-steps) above, follow
|
|||||||
```
|
```
|
||||||
|
|
||||||
4. **Run the Setup Script:**
|
4. **Run the Setup Script:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Make the script executable
|
# Make the script executable
|
||||||
chmod +x ./update-setup.sh
|
chmod +x ./update-setup.sh
|
||||||
|
|
||||||
# Run the setup tool (use 'all' for initial setup)
|
# Run the setup tool
|
||||||
./update-setup.sh all
|
./update-setup.sh
|
||||||
```
|
```
|
||||||
|
This interactive script will guide you through:
|
||||||
This script will:
|
- Updating your `.env` file while preserving existing values
|
||||||
- Update your `.env` file while preserving existing values (`update-env`).
|
- Configuring Authelia with your Tailscale domain settings
|
||||||
- Configure Authelia with your Tailscale domain settings (`update-authelia`).
|
- Setting up service configurations and retrieving API keys
|
||||||
- Set up service configurations and retrieve API keys (`update-services`).
|
|
||||||
|
|
||||||
You can also run individual commands like `./update-setup.sh update-authelia`. Run `./update-setup.sh help` for all options.
|
|
||||||
|
|
||||||
5. **Start the Stack:**
|
5. **Start the Stack:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Start containers
|
# Start containers
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
*(Wait for containers to download and start)*
|
*(Wait for containers to download and start)*
|
||||||
|
|
||||||
6. **Access Your NAS:**
|
6. **Access Your NAS:**
|
||||||
@@ -245,6 +226,20 @@ This file controls essential settings. Copy `.env.example` to `.env` and modify
|
|||||||
| **`AUTHELIA_SESSION_SECRET`** | **Required.** Random secret for session cookies. **Generate your own!** | *(None - Example in file)* |
|
| **`AUTHELIA_SESSION_SECRET`** | **Required.** Random secret for session cookies. **Generate your own!** | *(None - Example in file)* |
|
||||||
| **`AUTHELIA_STORAGE_ENCRYPTION_KEY`** | **Required.** Random secret for encrypting data at rest (e.g., SQLite DB). **Generate your own!** | *(None - Example in file)* |
|
| **`AUTHELIA_STORAGE_ENCRYPTION_KEY`** | **Required.** Random secret for encrypting data at rest (e.g., SQLite DB). **Generate your own!** | *(None - Example in file)* |
|
||||||
| **`AUTHELIA_REDIS_PASSWORD`** | **Required.** Password for the Redis database (used for session storage). **Generate your own!** | *(None - Example in file)* |
|
| **`AUTHELIA_REDIS_PASSWORD`** | **Required.** Password for the Redis database (used for session storage). **Generate your own!** | *(None - Example in file)* |
|
||||||
|
| `AUTH_SONARR` | Control whether Sonarr requires authentication (`true`/`false`). | `true` |
|
||||||
|
| `AUTH_RADARR` | Control whether Radarr requires authentication (`true`/`false`). | `true` |
|
||||||
|
| `AUTH_BAZARR` | Control whether Bazarr requires authentication (`true`/`false`). | `true` |
|
||||||
|
| `AUTH_PROWLARR` | Control whether Prowlarr requires authentication (`true`/`false`). | `true` |
|
||||||
|
| `AUTH_JELLYSEERR` | Control whether Jellyseerr requires authentication (`true`/`false`). | `true` |
|
||||||
|
| `AUTH_QBITTORRENT` | Control whether qBittorrent requires authentication (`true`/`false`). | `true` |
|
||||||
|
| `AUTH_LIDARR` | Control whether Lidarr requires authentication (`true`/`false`). | `true` |
|
||||||
|
| `AUTH_JELLYFIN` | Control whether Jellyfin requires authentication (`true`/`false`). | `false` |
|
||||||
|
| `AUTH_HOMEPAGE` | Control whether Homepage requires authentication (`true`/`false`). | `true` |
|
||||||
|
| `AUTH_FLARESOLVERR` | Control whether FlareSolverr requires authentication (`true`/`false`). | `true` |
|
||||||
|
| `AUTH_SABNZBD` | Control whether SABnzbd requires authentication (`true`/`false`). | `true` |
|
||||||
|
| `AUTH_CALIBRE` | Control whether Calibre-Web requires authentication (`true`/`false`). | `true` |
|
||||||
|
|
||||||
|
> **Note:** Authentication variables were introduced to give you fine-grained control over which services require login. Set to `false` for services you want to access without authentication.
|
||||||
|
|
||||||
#### Service Credentials
|
#### Service Credentials
|
||||||
|
|
||||||
@@ -307,23 +302,20 @@ This file controls essential settings. Copy `.env.example` to `.env` and modify
|
|||||||
|
|
||||||
Authelia uses the `authelia/users_database.yml` file to manage users.
|
Authelia uses the `authelia/users_database.yml` file to manage users.
|
||||||
|
|
||||||
- **Setting the Initial Admin Password:**
|
* **Setting the Initial Admin Password:**
|
||||||
1. As mentioned in the Quick Start, you **must** set a strong password for the default `admin` user.
|
1. As mentioned in the Quick Start, you **must** set a strong password for the default `admin` user.
|
||||||
2. Generate a hash using Docker (replace `'your_secure_password'`):
|
2. Generate a hash using Docker (replace `'your_secure_password'`):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --rm authelia/authelia:latest authelia hash-password 'your_secure_password'
|
docker run --rm authelia/authelia:latest authelia hash-password 'your_secure_password'
|
||||||
```
|
```
|
||||||
|
3. Copy the **entire output hash** (starting with `$argon2id...`).
|
||||||
|
4. Open `authelia/users_database.yml` and replace the example `password:` value under `admin:` with your generated hash.
|
||||||
|
5. Ensure the `admin` user belongs to the `admins` and `users` groups as shown in the example.
|
||||||
|
|
||||||
3. Copy the **entire output hash** (starting with `$argon2id...`).
|
* **Adding More Users:**
|
||||||
4. Open `authelia/users_database.yml` and replace the example `password:` value under `admin:` with your generated hash.
|
1. Generate a password hash for the new user as shown above.
|
||||||
5. Ensure the `admin` user belongs to the `admins` and `users` groups as shown in the example.
|
2. Edit `authelia/users_database.yml`.
|
||||||
|
3. Add a new entry under `users:`, following the format of the `admin` user:
|
||||||
- **Adding More Users:**
|
|
||||||
1. Generate a password hash for the new user as shown above.
|
|
||||||
2. Edit `authelia/users_database.yml`.
|
|
||||||
3. Add a new entry under `users:`, following the format of the `admin` user:
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
users:
|
users:
|
||||||
admin:
|
admin:
|
||||||
@@ -335,31 +327,30 @@ Authelia uses the `authelia/users_database.yml` file to manage users.
|
|||||||
groups:
|
groups:
|
||||||
- users # Add to 'admins' group if needed
|
- users # Add to 'admins' group if needed
|
||||||
```
|
```
|
||||||
|
4. Save the file. Authelia should pick up the changes automatically (or restart the Authelia container: `docker compose restart authelia`).
|
||||||
|
|
||||||
4. Save the file and restart Authelia: `docker compose restart authelia`.
|
* **Enabling User Registration (Optional):**
|
||||||
|
1. Edit `authelia/configuration.yml`.
|
||||||
|
2. Find the commented-out `registration:` section near the bottom.
|
||||||
|
3. Uncomment it and set `enable: true`:
|
||||||
|
```yaml
|
||||||
|
# registration:
|
||||||
|
# enable: false # Set to true to enable registration form
|
||||||
|
```
|
||||||
|
becomes:
|
||||||
|
```yaml
|
||||||
|
registration:
|
||||||
|
enable: true
|
||||||
|
```
|
||||||
|
4. Save the file and restart Authelia (`docker compose restart authelia`).
|
||||||
|
5. A "Register" link will now appear on the Authelia login page.
|
||||||
|
|
||||||
- **Adding/Updating Users (Recommended Method):**
|
* **Approving Registered Users:**
|
||||||
Use the setup script's interactive tool:
|
1. When a user registers (if enabled), their details are added to `authelia/users_database.yml` but marked as `disabled: true`.
|
||||||
|
2. To approve them, edit `authelia/users_database.yml`.
|
||||||
```bash
|
3. Find the new user's entry.
|
||||||
./update-setup.sh manage-accounts
|
4. Change `disabled: true` to `disabled: false` (or simply remove the `disabled: true` line).
|
||||||
```
|
5. Save the file. The user should now be able to log in.
|
||||||
|
|
||||||
This script handles password hashing and file formatting, reducing the chance of errors. It will prompt you for the username, display name, email, and groups, then generate a secure password hash.
|
|
||||||
|
|
||||||
- **Enabling User Registration (Optional):**
|
|
||||||
1. Edit `authelia/configuration.yml`.
|
|
||||||
2. Find the commented-out `registration:` section near the bottom.
|
|
||||||
3. Uncomment it and set `enable: true`.
|
|
||||||
4. Save the file and restart Authelia (`docker compose restart authelia`).
|
|
||||||
5. A "Register" link will now appear on the Authelia login page.
|
|
||||||
|
|
||||||
- **Approving Registered Users:**
|
|
||||||
1. When a user registers (if enabled), their details are added to `authelia/users_database.yml` but marked as `disabled: true`.
|
|
||||||
2. To approve them, edit `authelia/users_database.yml`.
|
|
||||||
3. Find the new user's entry.
|
|
||||||
4. Change `disabled: true` to `disabled: false` (or simply remove the `disabled: true` line).
|
|
||||||
5. Save the file. The user should now be able to log in.
|
|
||||||
|
|
||||||
### (Optional) VPN Configuration
|
### (Optional) VPN Configuration
|
||||||
|
|
||||||
@@ -373,101 +364,104 @@ Authelia uses the `authelia/users_database.yml` file to manage users.
|
|||||||
|
|
||||||
With the default Tailscale setup and Authelia enabled, services are securely accessible via HTTPS using your Tailscale node's name or IP. Authentication is controlled by the included `update-setup.sh` script.
|
With the default Tailscale setup and Authelia enabled, services are securely accessible via HTTPS using your Tailscale node's name or IP. Authentication is controlled by the included `update-setup.sh` script.
|
||||||
|
|
||||||
- **Login Portal:** `https://<TAILSCALE_NODE>/` (Redirects unauthenticated users here for secured services)
|
* **Login Portal:** `https://<TAILSCALE_NODE>/` (Redirects unauthenticated users here for secured services)
|
||||||
- **Homepage Dashboard:** `https://<TAILSCALE_NODE>/home` (Requires login by default)
|
* **Homepage Dashboard:** `https://<TAILSCALE_NODE>/home` (Requires login by default)
|
||||||
- **Sonarr:** `https://<TAILSCALE_NODE>/sonarr` (Requires login by default)
|
* **Sonarr:** `https://<TAILSCALE_NODE>/sonarr` (Requires login by default)
|
||||||
- **Radarr:** `https://<TAILSCALE_NODE>/radarr` (Requires login by default)
|
* **Radarr:** `https://<TAILSCALE_NODE>/radarr` (Requires login by default)
|
||||||
- **qBittorrent:** `https://<TAILSCALE_NODE>/qbittorrent` (Requires login by default)
|
* **qBittorrent:** `https://<TAILSCALE_NODE>/qbittorrent` (Requires login by default)
|
||||||
- **Jellyfin:** `https://<TAILSCALE_NODE>/jellyfin` (Requires login by default)
|
* **Jellyfin:** `https://<TAILSCALE_NODE>/jellyfin` (Requires login by default)
|
||||||
- ...and so on.
|
* ...and so on.
|
||||||
|
|
||||||
Replace `<TAILSCALE_NODE>` with your Tailscale device name (e.g., `tailscale-nas.your-tailnet.ts.net`) or its Tailscale IP address.
|
Replace `<TAILSCALE_NODE>` with your Tailscale device name (e.g., `tailscale-nas.your-tailnet.ts.net`) or its Tailscale IP address.
|
||||||
|
|
||||||
If you configure DNS for your `APP_HOSTNAME` variable to point to the Tailscale IP, you can use `https://<APP_HOSTNAME>/<service_path>`.
|
If you configure DNS for your `APP_HOSTNAME` variable to point to the Tailscale IP, you can use `https://<APP_HOSTNAME>/<service_path>`.
|
||||||
|
|
||||||
### Setup Script Commands (`update-setup.sh`)
|
### Managing Service Authentication
|
||||||
|
|
||||||
The `update-setup.sh` script provides various commands to manage your configuration. Run `./update-setup.sh help` to see all options.
|
You can control which services require authentication using the updated `update-setup.sh` script:
|
||||||
|
|
||||||
**Core Setup & Updates:**
|
```bash
|
||||||
|
# List all services and their authentication status
|
||||||
|
./update-setup.sh list-auth
|
||||||
|
|
||||||
- `./update-setup.sh update-env`: Updates `.env` from `.env.example`, preserving existing values and highlighting new/deprecated keys.
|
# Disable authentication for Jellyfin (no login required)
|
||||||
- `./update-setup.sh update-authelia`: Updates `authelia/configuration.yml` from the example, applying domain settings from `.env` and attempting to preserve secrets (uses `yq` if available).
|
./update-setup.sh disable-auth jellyfin
|
||||||
- `./update-setup.sh update-services`: Updates configurations for running *arr/qBittorrent/Bazarr containers (sets URL base, extracts API keys to `.env`). Restarts affected containers.
|
|
||||||
- `./update-setup.sh all`: Runs `update-env`, `update-authelia`, and `update-services` sequentially. Recommended for initial setup and major updates.
|
|
||||||
|
|
||||||
**Authelia Policy Management:**
|
# Enable authentication for Jellyfin (login required)
|
||||||
|
./update-setup.sh enable-auth jellyfin
|
||||||
|
|
||||||
- `./update-setup.sh manage-policies`: Starts an interactive menu to list or set Authelia access policies (`one_factor`, `two_factor`, `bypass`, `deny`) for specific services defined in `authelia/configuration.yml`.
|
# Disable authentication for all services
|
||||||
- `./update-setup.sh list-policies`: Lists services defined in `authelia/configuration.yml` and their current access policy.
|
./update-setup.sh disable-all-auth
|
||||||
- `./update-setup.sh set-policy <service> <policy>`: Directly sets the Authelia access policy for the specified `<service>` to the given `<policy>` (e.g., `one_factor`, `two_factor`, `bypass`, `deny`).
|
|
||||||
|
|
||||||
> **Important:** After changing Authelia policies using `manage-policies` or `set-policy`, you **must** restart Authelia for the changes to take effect:
|
# Enable authentication for all services
|
||||||
>
|
./update-setup.sh enable-all-auth
|
||||||
> ```bash
|
|
||||||
> docker compose restart authelia
|
|
||||||
> ```
|
|
||||||
|
|
||||||
**User & File Management:**
|
# Clean up backup files (keeps most recent by default)
|
||||||
|
./update-setup.sh cleanup
|
||||||
|
|
||||||
- `./update-setup.sh manage-accounts`: Starts an interactive tool to add or update users in `authelia/users_database.yml`. It generates password hashes and prompts for user details.
|
# View all available commands
|
||||||
- `./update-setup.sh cleanup`: Interactively finds and deletes old backup files (`.bak`) created by the script. Allows keeping the most recent backup of each type.
|
./update-setup.sh help
|
||||||
|
```
|
||||||
|
|
||||||
**Help:**
|
You can also manage authentication through the interactive menu by running `./update-setup.sh` and selecting option 5.
|
||||||
|
|
||||||
- `./update-setup.sh help`: Displays the full list of commands and usage instructions.
|
After making changes, restart your stack for the changes to take effect:
|
||||||
|
|
||||||
### Managing Service Authentication (Authelia Policies)
|
```bash
|
||||||
|
docker compose down
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
Use the `update-setup.sh` script to easily control which services require Authelia login and what level of authentication is needed. This is done by managing *access control rules* within Authelia's configuration (`authelia/configuration.yml`).
|
This approach gives you complete control over which services require authentication, without needing to manually edit configuration files.
|
||||||
|
|
||||||
See the `Authelia Policy Management` commands in the [Setup Script Commands](#setup-script-commands-update-setupsh) section above for details on how to list and set policies like `one_factor`, `two_factor`, `bypass`, or `deny` for each service.
|
|
||||||
|
|
||||||
## Optional Services
|
## Optional Services
|
||||||
|
|
||||||
Several services are included but disabled by default. Enable them by adding their profile name to the `COMPOSE_PROFILES` variable in your `.env` file (separate multiple profiles with commas).
|
Several services are included but disabled by default. Enable them by adding their profile name to the `COMPOSE_PROFILES` variable in your `.env` file (separate multiple profiles with commas).
|
||||||
|
|
||||||
Example: Enable Lidarr and SABnzbd
|
Example: Enable Lidarr and SABnzbd
|
||||||
|
|
||||||
```dotenv
|
```dotenv
|
||||||
COMPOSE_PROFILES=lidarr,sabnzbd
|
COMPOSE_PROFILES=lidarr,sabnzbd
|
||||||
```
|
```
|
||||||
|
|
||||||
Available Profiles:
|
Available Profiles:
|
||||||
|
* `lidarr`: Music management.
|
||||||
- `lidarr`: Music management.
|
* `sabnzbd`: Usenet download client.
|
||||||
- `sabnzbd`: Usenet download client.
|
* `flaresolverr`: Bypasses Cloudflare challenges for Prowlarr.
|
||||||
- `flaresolverr`: Bypasses Cloudflare challenges for Prowlarr.
|
* `adguardhome`: Network-wide ad blocking (see `adguardhome/README.md`).
|
||||||
- `adguardhome`: Network-wide ad blocking (see `adguardhome/README.md`).
|
* `calibre-web`: E-book library management.
|
||||||
- `calibre-web`: E-book library management.
|
* `decluttarr`: Automated download cleanup.
|
||||||
- `decluttarr`: Automated download cleanup.
|
* `tandoor`: Recipe management (see `tandoor/README.md`).
|
||||||
- `tandoor`: Recipe management (see `tandoor/README.md`).
|
* `joplin`: Note-taking server (see `joplin/README.md`).
|
||||||
- `joplin`: Note-taking server (see `joplin/README.md`).
|
* `homeassistant`: Home automation (see `homeassistant/README.md`).
|
||||||
- `homeassistant`: Home automation (see `homeassistant/README.md`).
|
* `immich`: Photo management (see `immich/README.md`).
|
||||||
- `immich`: Photo management (see `immich/README.md`).
|
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
### Middleware Not Found Errors
|
### Middleware Not Found Errors
|
||||||
|
|
||||||
If you see error messages like `middleware "authelia-auth@docker" does not exist` in the Traefik logs, please check Authelia logs for any fatal errors. It is likely due to a misconfigured `configuration.yml` in `authelia/configuration.yml`
|
If you see error messages like `middleware "authelia-auth@docker" does not exist` in the Traefik logs, it could be due to one of these issues:
|
||||||
|
|
||||||
Make sure Traefik can access the Docker socket. See the [SELinux Socket Permissions](#selinux-socket-permissions-docker) section below for more details.
|
1. **Docker Network Issue:** The Traefik configuration has been updated to fix network discovery issues when running in Tailscale's network namespace. If you're still seeing this error, try restarting the stack with:
|
||||||
|
```bash
|
||||||
|
docker compose down
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **Authentication Variable Missing:** Ensure you have properly configured the `AUTH_*` variables in your `.env` file for the services you want to control. If not specified, most services default to requiring authentication.
|
||||||
|
|
||||||
|
3. **Docker Socket Permissions:** Make sure Traefik can access the Docker socket. See the [SELinux Socket Permissions](#selinux-socket-permissions-docker) section below for more details.
|
||||||
|
|
||||||
### SELinux Socket Permissions (Docker)
|
### SELinux Socket Permissions (Docker)
|
||||||
|
|
||||||
If you are running Docker on a host with SELinux enabled (like Fedora, CentOS, RHEL) and services like Traefik, Watchtower, or Autoheal fail with "permission denied" errors when trying to access `/var/run/docker.sock`:
|
If you are running Docker on a host with SELinux enabled (like Fedora, CentOS, RHEL) and services like Traefik, Watchtower, or Autoheal fail with "permission denied" errors when trying to access `/var/run/docker.sock`:
|
||||||
|
|
||||||
1. **Check Audit Logs:** Immediately after seeing the error, check the SELinux audit log on the host:
|
1. **Check Audit Logs:** Immediately after seeing the error, check the SELinux audit log on the host:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo ausearch -m avc -ts recent
|
sudo ausearch -m avc -ts recent
|
||||||
```
|
```
|
||||||
|
|
||||||
Look for lines containing `denied`, `docker.sock`, and the name of the failing service (e.g., `traefik`, `watchtower`).
|
Look for lines containing `denied`, `docker.sock`, and the name of the failing service (e.g., `traefik`, `watchtower`).
|
||||||
|
|
||||||
2. **Generate Custom Policy:** If denials are found, you may need to create a custom SELinux policy module using `audit2allow`. Pipe the denial messages into it:
|
2. **Generate Custom Policy:** If denials are found, you may need to create a custom SELinux policy module using `audit2allow`. Pipe the denial messages into it:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Generate policy files (my-dockersock.te and my-dockersock.pp)
|
# Generate policy files (my-dockersock.te and my-dockersock.pp)
|
||||||
sudo ausearch -m avc -ts recent | audit2allow -M my-dockersock
|
sudo ausearch -m avc -ts recent | audit2allow -M my-dockersock
|
||||||
@@ -475,14 +469,13 @@ If you are running Docker on a host with SELinux enabled (like Fedora, CentOS, R
|
|||||||
# Install the policy module
|
# Install the policy module
|
||||||
sudo semodule -i my-dockersock.pp
|
sudo semodule -i my-dockersock.pp
|
||||||
```
|
```
|
||||||
|
|
||||||
This allows the specific actions that were being denied. You might need to repeat this if different denials appear after applying the first policy.
|
This allows the specific actions that were being denied. You might need to repeat this if different denials appear after applying the first policy.
|
||||||
|
|
||||||
### Authelia v4.38+ Configuration
|
### Authelia v4.38+ Configuration
|
||||||
|
|
||||||
Authelia v4.38+ introduces significant changes to its configuration structure, particularly for session domains and authentication flows. The setup in this repository has been carefully configured to work with these changes:
|
Authelia v4.38+ introduces significant changes to its configuration structure, particularly for session domains and authentication flows. The setup in this repository has been carefully configured to work with these changes:
|
||||||
|
|
||||||
1. **Domain Configuration**:
|
1. **Domain Configuration**:
|
||||||
- You must use your specific Tailnet domain (e.g., `example.ts.net`) for cookies, not just `ts.net`
|
- You must use your specific Tailnet domain (e.g., `example.ts.net`) for cookies, not just `ts.net`
|
||||||
- The domain `ts.net` is part of the [Public Suffix List](https://publicsuffix.org/), which means browsers restrict cookies on it for security reasons
|
- The domain `ts.net` is part of the [Public Suffix List](https://publicsuffix.org/), which means browsers restrict cookies on it for security reasons
|
||||||
- Authelia will refuse to start if you try to use a domain from this list
|
- Authelia will refuse to start if you try to use a domain from this list
|
||||||
@@ -500,17 +493,17 @@ Authelia v4.38+ introduces significant changes to its configuration structure, p
|
|||||||
- Configures cookie domains properly to avoid Public Suffix List issues
|
- Configures cookie domains properly to avoid Public Suffix List issues
|
||||||
- Sets up proper access control rules for both your domain and its subdomains
|
- Sets up proper access control rules for both your domain and its subdomains
|
||||||
|
|
||||||
If you encounter any of these common errors:
|
4. **File Permissions**: The Authelia container runs with your user ID and group ID, preventing permission issues when managing the configuration files with git or other tools.
|
||||||
|
|
||||||
```log
|
If you encounter any of these common errors, running the setup script should resolve them:
|
||||||
|
```
|
||||||
error: option 'domain' is not a valid cookie domain: the domain is part of the special public suffix list
|
error: option 'domain' is not a valid cookie domain: the domain is part of the special public suffix list
|
||||||
error: option 'authelia_url' does not share a cookie scope with domain
|
error: option 'authelia_url' does not share a cookie scope with domain
|
||||||
error: can't be specified at the same time: option 'domain' and option 'cookies'
|
error: can't be specified at the same time: option 'domain' and option 'cookies'
|
||||||
configuration key 'jwt_secret' is deprecated in 4.38.0
|
configuration key 'jwt_secret' is deprecated in 4.38.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Running the setup script should resolve them. After making changes to the configuration, restart Authelia with:
|
After making changes to the configuration, restart Authelia with:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose restart authelia
|
docker compose restart authelia
|
||||||
```
|
```
|
||||||
@@ -519,17 +512,16 @@ See the [Authelia documentation](https://www.authelia.com/configuration/session/
|
|||||||
|
|
||||||
### Tailscale Issues
|
### Tailscale Issues
|
||||||
|
|
||||||
- **Authentication:** Ensure your `TAILSCALE_AUTHKEY` in `.env` is valid and hasn't expired (especially if using ephemeral keys). Check the `tailscale` container logs (`docker compose logs tailscale`) for authentication errors.
|
* **Authentication:** Ensure your `TAILSCALE_AUTHKEY` in `.env` is valid and hasn't expired (especially if using ephemeral keys). Check the `tailscale` container logs (`docker compose logs tailscale`) for authentication errors.
|
||||||
- **Connectivity:** Verify the `tailscale` container is running and connected to your Tailnet (`docker compose exec tailscale tailscale status`).
|
* **Connectivity:** Verify the `tailscale` container is running and connected to your Tailnet (`docker compose exec tailscale tailscale status`).
|
||||||
- **Funnel/Serve Command:** If you modified the Tailscale command, ensure the syntax for `tailscale funnel` or `tailscale serve` is correct.
|
* **Funnel/Serve Command:** If you modified the Tailscale command, ensure the syntax for `tailscale funnel` or `tailscale serve` is correct.
|
||||||
|
|
||||||
### File Permissions
|
### File Permissions
|
||||||
|
|
||||||
If services report permission errors when accessing `/config` or `/data` directories, double-check that:
|
If services report permission errors when accessing `/config` or `/data` directories, double-check that:
|
||||||
|
* The `USER_ID` and `GROUP_ID` in your `.env` file match the owner/group of the corresponding `CONFIG_ROOT` and `DATA_ROOT` directories on your host.
|
||||||
- The `USER_ID` and `GROUP_ID` in your `.env` file match the owner/group of the corresponding `CONFIG_ROOT` and `DATA_ROOT` directories on your host.
|
* The host directories have appropriate read/write permissions for that user/group.
|
||||||
- The host directories have appropriate read/write permissions for that user/group.
|
* If using SELinux, the `:Z` flag on the volume mounts in `docker-compose.yml` is correctly applied to allow the container to write to the host paths.
|
||||||
- If using SELinux, the `:Z` flag on the volume mounts in `docker-compose.yml` is correctly applied to allow the container to write to the host paths.
|
|
||||||
|
|
||||||
## Advanced Topics
|
## Advanced Topics
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
# Server settings
|
# Server settings
|
||||||
server:
|
server:
|
||||||
address: 'tcp://0.0.0.0:9091'
|
address: 'tcp://0.0.0.0:9091'
|
||||||
|
trusted_proxies:
|
||||||
|
- '172.16.0.0/12' # Docker networks
|
||||||
|
|
||||||
# Logging configuration
|
# Logging configuration
|
||||||
log:
|
log:
|
||||||
@@ -54,76 +56,14 @@ authentication_backend:
|
|||||||
|
|
||||||
# Access control rules
|
# Access control rules
|
||||||
access_control:
|
access_control:
|
||||||
default_policy: deny # Deny access by default
|
default_policy: deny
|
||||||
rules:
|
rules:
|
||||||
# Rules are processed in order. First match wins.
|
# This will match any subdomain of your specific Tailscale domain
|
||||||
# It's recommended to put more specific rules first.
|
|
||||||
|
|
||||||
# 1. Bypass rules (No authentication required)
|
|
||||||
# Allow access to Authelia's own endpoints
|
|
||||||
- domain: '*.your-tailnet.ts.net'
|
- domain: '*.your-tailnet.ts.net'
|
||||||
path_regex: '^/auth.*' # Match /auth and anything after it
|
|
||||||
policy: bypass
|
|
||||||
# Allow access to the root path (will be redirected by Traefik later)
|
|
||||||
- domain: '*.your-tailnet.ts.net'
|
|
||||||
path: '/'
|
|
||||||
policy: bypass
|
|
||||||
# Allow access to API endpoints (as requested, review security implications)
|
|
||||||
- domain: '*.your-tailnet.ts.net'
|
|
||||||
path_regex: '^/api.*' # Match /api and anything after it
|
|
||||||
policy: bypass
|
|
||||||
|
|
||||||
# 2. One-Factor Authentication Rules (Requires login)
|
|
||||||
# Add rules for each service you want to protect.
|
|
||||||
# The domain should match your Tailscale domain.
|
|
||||||
# The path should match the Traefik PathPrefix for the service.
|
|
||||||
- domain: '*.your-tailnet.ts.net'
|
|
||||||
path_regex: '^/sonarr.*'
|
|
||||||
policy: one_factor
|
policy: one_factor
|
||||||
- domain: '*.your-tailnet.ts.net'
|
# Also match the main domain without subdomain
|
||||||
path_regex: '^/radarr.*'
|
- domain: 'your-tailnet.ts.net'
|
||||||
policy: one_factor
|
policy: one_factor
|
||||||
- domain: '*.your-tailnet.ts.net'
|
|
||||||
path_regex: '^/lidarr.*'
|
|
||||||
policy: one_factor
|
|
||||||
- domain: '*.your-tailnet.ts.net'
|
|
||||||
path_regex: '^/bazarr.*'
|
|
||||||
policy: one_factor
|
|
||||||
- domain: '*.your-tailnet.ts.net'
|
|
||||||
path_regex: '^/qbittorrent.*'
|
|
||||||
policy: one_factor
|
|
||||||
- domain: '*.your-tailnet.ts.net'
|
|
||||||
path_regex: '^/sabnzbd.*'
|
|
||||||
policy: one_factor
|
|
||||||
- domain: '*.your-tailnet.ts.net'
|
|
||||||
path_regex: '^/calibre.*'
|
|
||||||
policy: one_factor
|
|
||||||
- domain: '*.your-tailnet.ts.net'
|
|
||||||
path_regex: '^/home.*' # Protect the homepage
|
|
||||||
policy: one_factor
|
|
||||||
- domain: '*.your-tailnet.ts.net'
|
|
||||||
path_regex: '^/jellyseerr.*'
|
|
||||||
policy: one_factor
|
|
||||||
- domain: '*.your-tailnet.ts.net'
|
|
||||||
path_regex: '^/prowlarr.*'
|
|
||||||
policy: one_factor
|
|
||||||
- domain: '*.your-tailnet.ts.net'
|
|
||||||
path_regex: '^/flaresolverr.*'
|
|
||||||
policy: one_factor
|
|
||||||
# Add other services here following the pattern:
|
|
||||||
# - domain: '*.your-tailnet.ts.net'
|
|
||||||
# path_regex: '^/<service_path>.*'
|
|
||||||
# policy: one_factor
|
|
||||||
|
|
||||||
# 3. Default rule for the domain (optional, if you want a catch-all)
|
|
||||||
# This rule will apply if no path-specific rule above matches.
|
|
||||||
# You might want to deny or require one_factor for unmatched paths.
|
|
||||||
# Example: Deny any other path on the domain
|
|
||||||
# - domain: '*.your-tailnet.ts.net'
|
|
||||||
# policy: deny
|
|
||||||
# Example: Require login for any other path
|
|
||||||
# - domain: '*.your-tailnet.ts.net'
|
|
||||||
# policy: one_factor
|
|
||||||
|
|
||||||
# Notifier configuration
|
# Notifier configuration
|
||||||
notifier:
|
notifier:
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ services:
|
|||||||
- --experimental.plugins.rewriteHeaders.version=v0.0.3
|
- --experimental.plugins.rewriteHeaders.version=v0.0.3
|
||||||
- --providers.docker.network=docker-compose-nas
|
- --providers.docker.network=docker-compose-nas
|
||||||
- --providers.docker.endpoint=unix:///var/run/docker.sock
|
- --providers.docker.endpoint=unix:///var/run/docker.sock
|
||||||
|
- --log.level=DEBUG
|
||||||
network_mode: service:tailscale
|
network_mode: service:tailscale
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
@@ -22,6 +23,9 @@ services:
|
|||||||
test: ["CMD", "traefik", "healthcheck", "--ping"]
|
test: ["CMD", "traefik", "healthcheck", "--ping"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
retries: 10
|
retries: 10
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
# Remove middleware definition from traefik service
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
container_name: redis
|
container_name: redis
|
||||||
@@ -519,7 +523,7 @@ services:
|
|||||||
[sh, -c, "cp -n /app/config/tpl/*.yaml /app/config && node server.js"]
|
[sh, -c, "cp -n /app/config/tpl/*.yaml /app/config && node server.js"]
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.homepage.rule=Host(`${APP_HOSTNAME}`) && PathPrefix(`/home`) # Changed rule to root
|
- traefik.http.routers.homepage.rule=Host(`${APP_HOSTNAME}`) && PathPrefix(`/`) # Changed rule to root
|
||||||
- traefik.http.routers.homepage.entrypoints=web
|
- traefik.http.routers.homepage.entrypoints=web
|
||||||
# - traefik.http.routers.homepage.priority=10 # Removed priority
|
# - traefik.http.routers.homepage.priority=10 # Removed priority
|
||||||
# Global middleware for setting HTTPS header
|
# Global middleware for setting HTTPS header
|
||||||
|
|||||||
1455
update-setup.sh
1455
update-setup.sh
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user