mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-25 03:09:20 -07:00
Fix .env configuration of VAULTWARDEN_ADMIN_TOKEN
@@ -124,8 +124,11 @@ The same for using the docker/podman cli using `-e ADMIN_TOKEN`.
|
|||||||
```
|
```
|
||||||
|
|
||||||
**.env:**
|
**.env:**
|
||||||
|
|
||||||
|
_Make sure you don't use quotes in the `.env` file._
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
VAULTWARDEN_ADMIN_TOKEN='$argon2id$v=19$m=65540,t=3,p=4$MmeK.....'
|
VAULTWARDEN_ADMIN_TOKEN=$argon2id$v=19$m=65540,t=3,p=4$MmeK.....
|
||||||
```
|
```
|
||||||
|
|
||||||
**docker-compose.yaml:**
|
**docker-compose.yaml:**
|
||||||
@@ -140,3 +143,5 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- ADMIN_TOKEN=${VAULTWARDEN_ADMIN_TOKEN}
|
- ADMIN_TOKEN=${VAULTWARDEN_ADMIN_TOKEN}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can check your configuration by calling `docker compose config`, you should see the escaped $-sign as double-$.
|
||||||
|
|||||||
Reference in New Issue
Block a user