Restructure into one folder per private repo/host, not a flat Docker/ dump

rocky-docker-lxc/, caddy-vm/, monitoring-vm/ (was missing entirely -
Grafana+Loki+Prometheus stack, refreshed and CA mount stripped same as
everything else), and automation/{ansible,automation-vm,iac}/ for the
three repos that live on the automation VM. Hawser is genuinely
deployed on all three of caddy-vm/monitoring-vm/automation-vm so it's
duplicated in each rather than picking one canonical home.

Old Ansible/ and "Infrastrucutre as Code/" content moved under
automation/ansible/old-playbooks and automation/iac/old-content as-is
for now - contents still need refreshing against the current repos and
a per-folder README, that's the next pass.
This commit is contained in:
thesabear committed 2026-07-06 02:41:53 +03:00
1 parent 08f705ffd7
commit c05c7164c8
146 files changed
+101 -84

No files matched your search

+68
View File
@@ -0,0 +1,68 @@
# Truncated, sanitized example - real Caddyfile has one block per app.
# Shows the pattern: mTLS + Authentik forward-auth in front of every
# reverse-proxied service.
{
servers {
protocols h1 h2
}
}
# -------------------------
# mTLS
# -------------------------
(local_mtls) {
tls /etc/caddy/certs/example.com.crt /etc/caddy/certs/example.com.key {
client_auth {
mode require_and_verify
trust_pool file {
pem_file /etc/caddy/certs/example.com.ca.crt
}
}
}
}
# -------------------------
# Authentik forward auth
# -------------------------
(authentik_forward_auth) {
forward_auth http://authentik.internal:9054 {
uri /outpost.goauthentik.io/auth/caddy
trusted_proxies private_ranges
header_up Host {host}
header_up X-Forwarded-Host {host}
header_up X-Forwarded-Proto {scheme}
header_up X-Forwarded-For {remote_host}
header_up X-Real-IP {remote_host}
copy_headers {
X-Authentik-Username
X-Authentik-Email
X-Authentik-Groups
X-Authentik-Uid
}
}
}
# -------------------------
# Example app entries
# -------------------------
app1.example.com {
import local_mtls
import authentik_forward_auth
reverse_proxy http://app1.internal:8080
}
app2.example.com {
import local_mtls
reverse_proxy http://app2.internal:9000 {
header_up Host {host}
header_up X-Forwarded-Host {host}
header_up X-Forwarded-Proto {scheme}
header_up X-Forwarded-For {remote_host}
header_up X-Real-IP {remote_host}
}
}
+18
View File
@@ -0,0 +1,18 @@
services:
caddy:
image: caddy:latest
container_name: caddy
restart: always
ports:
- "${HTTPS_PORT}:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- /path/to/caddy/caddy_data:/data
- /path/to/caddy/caddy_config:/config
- /etc/caddy/certs:/etc/caddy/certs
networks:
- caddy-net
networks:
caddy-net:
external: true