Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Push Multi-Arch Image
on:
workflow_dispatch:
push:
branches: [ main, dev, qbit-session ]
branches: [ main, dev, qbit-session, feat/*, fix/*, hotfix/* ]
tags:
- 'v*'

Expand Down
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,37 @@ All configuration is done through environment variables:
| GLUETUN_PASSWORD | Gluetun basic auth password | "" |
| GLUETUN_APIKEY | Gluetun API key | "" |

## Docker Secrets

You may use [Docker secrets](https://docs.docker.com/compose/how-tos/use-secrets/) to store sensitive credentials. Environment variables take precedence if both are set.

Secret file names must match the lowercase field names below:

| Secret name | Replaces env var |
|---|---|
| `qbittorrent_user` | `QBITTORRENT_USER` |
| `qbittorrent_pass` | `QBITTORRENT_PASS` |
| `qbittorrent_api_key` | `QBITTORRENT_API_KEY` |
| `gluetun_username` | `GLUETUN_USERNAME` |
| `gluetun_password` | `GLUETUN_PASSWORD` |
| `gluetun_apikey` | `GLUETUN_APIKEY` |

### Example

```yaml
secrets:
qbittorrent_api_key:
file: ./secrets/qbittorrent_api_key.txt
gluetun_apikey:
file: ./secrets/gluetun_apikey.txt

services:
qsticky:
... # qsticky config ... #
```

Each secret file should contain only the secret value.

## Verification

To verify qSticky is working:
Expand Down
2 changes: 1 addition & 1 deletion qsticky/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Settings(BaseSettings):
description="Gluetun API key"
)] = ""

model_config = ConfigDict(env_prefix="")
model_config = ConfigDict(env_prefix="", secrets_dir="/run/secrets")


@dataclass
Expand Down