Vaultwarden: Enable admin page & remove SIGNUPS_ALLOWED=false.

This commit is contained in:
Viyurz 2024-03-15 10:52:59 +01:00
parent de1fd0454a
commit bb4bdfca70
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8
2 changed files with 5 additions and 1 deletions

View file

@ -7,7 +7,7 @@ services:
environment: environment:
- DOMAIN=https://vw.{{ domain }} - DOMAIN=https://vw.{{ domain }}
- SIGNUPS_ALLOWED=false - SIGNUPS_ALLOWED=false
- INVITATIONS_ALLOWED=false - ADMIN_TOKEN={{ vaultwarden_secrets['admin_token_hash'] | regex_replace('\$', '$$') }}
ports: ports:
- 127.0.0.1:{{ ports['vaultwarden'] }}:80 - 127.0.0.1:{{ ports['vaultwarden'] }}:80
volumes: volumes:

View file

@ -21,3 +21,7 @@ synapse_secrets:
turn_shared_secret: "{{ coturn_secrets['static_auth_secret'] }}" turn_shared_secret: "{{ coturn_secrets['static_auth_secret'] }}"
macaroon_secret_key: macaroon_secret_key:
form_secret: form_secret:
vaultwarden_secrets:
# Generate with: docker exec --rm -ti docker.io/vaultwarden/server:alpine /vaultwarden hash
admin_token_hash: