Make vaultwarden VPN only
All checks were successful
/ terraform (push) Successful in 33s
/ ansible (push) Successful in 1m36s

The first service to go dark...
This commit is contained in:
Jake Howard 2024-03-21 23:20:27 +00:00
parent 124b83526d
commit b2656bdf43
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 11 additions and 3 deletions

View file

@ -10,7 +10,15 @@ http:
Permissions-Policy: interest-cohort=()
tailscale-only:
ipAllowList:
ipWhiteList:
sourceRange:
- "{{ tailscale_cidr }}"
- "{{ tailscale_cidr_ipv6 }}"
private-access:
ipWhiteList:
sourceRange:
- "{{ tailscale_cidr }}"
- "{{ tailscale_cidr_ipv6 }}"
- "{{ nebula.cidr }}"
- "{{ pve_hosts.internal_cidr }}"

View file

@ -22,7 +22,7 @@ services:
- traefik.http.middlewares.vaultwarden-ratelimit.ratelimit.average=5
- traefik.http.middlewares.vaultwarden-ratelimit.ratelimit.burst=200
- traefik.http.routers.vaultwarden.middlewares=vaultwarden-ratelimit
- traefik.http.routers.vaultwarden.middlewares=vaultwarden-ratelimit,tailscale-only@file
environment:
- SIGNUPS_ALLOWED=false
- DOMAIN=https://vaultwarden.jakehoward.tech

View file

@ -143,7 +143,7 @@ resource "cloudflare_record" "jakehowardtech_grafana" {
resource "cloudflare_record" "jakehowardtech_vaultwarden" {
zone_id = cloudflare_zone.jakehowardtech.id
name = "vaultwarden"
value = cloudflare_record.sys_domain_pve.hostname
value = cloudflare_record.sys_domain_private.hostname
type = "CNAME"
ttl = 1
}