added postgres & made structure changes
This commit is contained in:
@ -1,34 +1,48 @@
|
||||
# --- Authelia Portal ---
|
||||
# This is the login page itself. It does NOT have forward_auth.
|
||||
auth.saljic.me {
|
||||
# Proxy to the Authelia Docker container on port 9091
|
||||
reverse_proxy localhost:9091
|
||||
# --- Home Assistant ---
|
||||
(logging) {
|
||||
log {
|
||||
output file /var/log/caddy/access.log {
|
||||
# Roll logs to save space
|
||||
roll_size 100mb
|
||||
roll_keep 10
|
||||
roll_keep_for 720h # 30 days
|
||||
}
|
||||
format json
|
||||
level INFO # This ensures all requests (INFO, WARN, ERROR) are logged
|
||||
}
|
||||
}
|
||||
|
||||
# --- Home Assistant (Protected App) ---
|
||||
ha.saljic.me {
|
||||
# 1. Apply authentication using Caddy's 'forward_auth'
|
||||
forward_auth localhost:9091 {
|
||||
uri /api/authz/forward-auth
|
||||
copy_headers Remote-User Remote-Groups Remote-Name Remote-Email
|
||||
}
|
||||
# --- top domain ---
|
||||
saljic.me {
|
||||
import logging
|
||||
respond "Welcome! In the making..."
|
||||
}
|
||||
|
||||
# 2. If auth is successful, proxy to your Home Assistant instance
|
||||
ha.saljic.me {
|
||||
import logging
|
||||
reverse_proxy 10.10.10.6:8123
|
||||
}
|
||||
|
||||
# --- FreshRSS ---
|
||||
feed.saljic.me {
|
||||
import logging
|
||||
reverse_proxy 10.10.10.6:8081
|
||||
}
|
||||
|
||||
# --- Immich ---
|
||||
tagebuch.saljic.me {
|
||||
import logging
|
||||
reverse_proxy 10.10.10.6:2283
|
||||
}
|
||||
|
||||
# --- default ---
|
||||
home.saljic.me {
|
||||
header Content-Type text/html
|
||||
respond <<HTML
|
||||
<html>
|
||||
<head><title>saljic.me</title></head>
|
||||
<body>Hello there</body>
|
||||
</html>
|
||||
HTML 200
|
||||
# --- Gitea ---
|
||||
git.saljic.me {
|
||||
import logging
|
||||
reverse_proxy 10.10.10.6:8030
|
||||
}
|
||||
|
||||
# --- ntfy ---
|
||||
ntfy.saljic.me {
|
||||
import logging
|
||||
reverse_proxy 10.10.10.6:8500
|
||||
}
|
||||
Reference in New Issue
Block a user