What I have are:
- Nextcloud
Port 443 (https): router (firewalled) → opnsense (firewalled) → Caddy - Proxmox debian LXC no. 8167 - firewalled & ssl terminated /letsencrypt) → nextcloud (Proxmox debian LXC no. 8151 - firewalled & ssl terminated / custom root-CA)
The corresponding Caddyfile:
# NextCloud
nextloud.foo.tld {
reverse_proxy https://192.168.8.151:443 {
header_up Host {upstream_hostport}
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Proto {scheme}
}
log {
format transform "{common_log}"
output file /var/log/caddy/access-nextcloud.log
}
}
- Vaultwarden
Port 443 (https): router (firewalled) → opnsense (firewalled) → Caddy - Proxmox debian LXC no. 8167 - firewalled & ssl terminated / letsencrypt) → vaultwarden (Proxmox debian LXC no. 8158 - firewalled & ssl terminated / custom root-CA)
The corresponding Caddyfile:
# Vaultwarden
vaultwarden.foo.tld {
reverse_proxy https://192.168.8.158:8000 {
header_up Host {upstream_hostport}
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Proto {scheme}
}
log {
format transform "{common_log}"
output file /var/log/caddy/access-vaultwarden.log
}
}
The auth-errors can only be seen in logs on Nextcloud and Vaultwarden LXCs.
The CrowdSec LAPI runs on a separate LXC.
All LXCs are debian 12 based.
Will it work if I enable only collections on Nextcloud & Vaultwarden LXCs and a bouncer on Caddy LXC? Do I need collections on Caddy LXC enabled as well?