add all local Caddyfile changes to ansible

This commit is contained in:
Arya 2024-11-17 17:46:28 +05:30
parent c086b3ecf1
commit c5771501ef
Signed by: arya
GPG Key ID: 842D12BDA50DF120
2 changed files with 68 additions and 6 deletions

View File

@ -145,3 +145,9 @@ http://rss.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion {
header_up Host "rss.projectsegfau.lt" header_up Host "rss.projectsegfau.lt"
} }
} }
http://ente.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion {
import tor ente
reverse_proxy https://ente.projectsegfau.lt {
header_up Host "ente.projectsegfau.lt"
}
}

View File

@ -267,14 +267,70 @@ d.psf.lt {
import acmedns import acmedns
} }
# TimeTagger
timetagger.projectsegfau.lt tt.projectsegfau.lt tt.psf.lt {
reverse_proxy :9900
import def
}
rss.projectsegfau.lt freshrss.projectsegfau.lt rss.psf.lt { rss.projectsegfau.lt freshrss.projectsegfau.lt rss.psf.lt {
reverse_proxy :3529 reverse_proxy :3529
import def import def
import torloc rss import torloc rss
} }
owncloud.projectsegfau.lt {
reverse_proxy http://127.0.0.1:9200
import def
}
wopi.projectsegfau.lt {
import acmedns
reverse_proxy http://127.0.0.1:9320
}
collabora.projectsegfau.lt {
import acmedns
reverse_proxy http://127.0.0.1:9980
}
ente.projectsegfau.lt pic.psf.lt {
import def
reverse_proxy http://127.0.0.1:8085
}
museum.ente.projectsegfau.lt {
import acmedns
reverse_proxy http://127.0.0.1:8254
}
album.ente.projectsegfau.lt {
import def
reverse_proxy http://127.0.0.1:8087
}
accounts.ente.projectsegfau.lt {
import acmedns
reverse_proxy http://127.0.0.1:8086
}
minio.projectsegfau.lt {
import acmedns
reverse_proxy http://127.0.0.1:9000
}
timetagger.projectsegfau.lt tt.psf.lt {
import def
route {
reverse_proxy /outpost.goauthentik.io/* https://localhost:7444 {
header_up Host {http.reverse_proxy.upstream.hostport}
transport http {
tls_insecure_skip_verify
}
}
# Forward authentication requests to Authentik's outpost
forward_auth https://localhost:7444 {
transport http {
tls_insecure_skip_verify
}
uri /outpost.goauthentik.io/auth/caddy
# Ensure these headers are passed, using correct capitalization
copy_headers X-Authentik-Username X-Authentik-Groups X-Authentik-Email X-Authentik-Name
trusted_proxies private_ranges
}
}
reverse_proxy http://localhost:9900
}