[mod] vault

This commit is contained in:
Andy Bunce 2023-06-13 13:03:49 +01:00
parent 0a96279ecc
commit 843e87dc1e
10 changed files with 103 additions and 38 deletions

View File

@ -1,11 +1,17 @@
{
"recommendations": [
"quodatum.ext1",
"quodatum.vscode-basex",
"ms-azuretools.vscode-docker",
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"kelvin.vscode-sshfs",
"alefragnani.project-manager"
"alefragnani.project-manager",
"redhat.vscode-xml",
"deltaxml.xpath-notebook",
"maattdd.gitless",
"buenon.scratchpads",
"bierner.markdown-mermaid",
"mfederczuk.w3c-ebnf",
"quodatum.xquery-notebook"
]
}

View File

@ -1,11 +1,17 @@
{
"recommendations": [
"quodatum.vscode-basex",
"ms-azuretools.vscode-docker",
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"kelvin.vscode-sshfs",
"alefragnani.project-manager",
"johnpapa.vscode-peacock",
"nonoroazoro.syncing"
"redhat.vscode-xml",
"deltaxml.xpath-notebook",
"maattdd.gitless",
"buenon.scratchpads",
"bierner.markdown-mermaid",
"mfederczuk.w3c-ebnf",
"quodatum.xquery-notebook"
]
}

Binary file not shown.

56
vaultwarden/Caddyfile Normal file
View File

@ -0,0 +1,56 @@
{$DOMAIN}:443 {
log {
level INFO
output file {$LOG_FILE} {
roll_size 10MB
roll_keep 10
}
}
# Get a cert by using the ACME HTTP-01 challenge.
tls {$EMAIL}
encode gzip
# Headers to improve security.
header {
# Enable HSTS
Strict-Transport-Security "max-age=31536000;"
# Enable cross-site filter (XSS)
X-XSS-Protection "1; mode=block"
# Disallow the site to be rendered within a frame (clickjacking protection)
X-Frame-Options "DENY"
# Prevent search engines from indexing
X-Robots-Tag "none"
# Remove Caddy branding
-Server
}
# Redirect notifications to the WebSocket.
reverse_proxy /notifications/hub vaultwarden:3012
reverse_proxy vaultwarden:80 {
header_up X-Real-IP {remote_host}
}
}

View File

@ -1,34 +1,29 @@
version: '3'
services:
vaultwarden:
container_name: vaultwarden
image: vaultwarden/server:latest
restart: unless-stopped
volumes:
- ./vw-data/:/data/
ports:
- 8882:80
environment:
- DOMAIN=https://quodatum.duckns.org
- LOGIN_RATELIMIT_MAX_BURST=10
- LOGIN_RATELIMIT_SECONDS=60
- ADMIN_RATELIMIT_MAX_BURST=10
- ADMIN_RATELIMIT_SECONDS=60
- ADMIN_TOKEN=
- SENDS_ALLOWED=true
- EMERGENCY_ACCESS_ALLOWED=true
- WEB_VAULT_ENABLED=true
- SIGNUPS_ALLOWED=false
- SIGNUPS_VERIFY=true
- SIGNUPS_VERIFY_RESEND_TIME=3600
- SIGNUPS_VERIFY_RESEND_LIMIT=5
- SIGNUPS_DOMAINS_WHITELIST=orlop.duckdns.org
- SMTP_HOST=smtp.gmail.com
- SMTP_FROM=bunce.andy@gmail.com
- SMTP_FROM_NAME=Vaultwarden
- SMTP_SECURITY=starttls
- SMTP_PORT=465
- SMTP_USERNAME=bunce.andy@gmail.com
- SMTP_PASSWORD= etsyjkzdzkzhnztf
- SMTP_AUTH_MECHANISM=
version: '3'
services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
restart: always
environment:
- WEBSOCKET_ENABLED=true
volumes:
- ./vw-data:/data
caddy:
image: caddy:2
container_name: caddy
restart: always
ports:
- 84:80
- 444:443
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ./caddy-config:/config
- ./caddy-data:/data
environment:
- DOMAIN=https://vault.quodatum.duckdns.org
- EMAIL=bunce.andy@gmail.com
- LOG_FILE=/data/access.log

View File

@ -1 +1,3 @@
https://webdock.io/en/docs/how-guides/app-installation-and-setup/how-install-vaultwarden-your-webdock-server
# was
https://www.techaddressed.com/tutorials/vaultwarden-docker-compose/