feat: Adds example in Caddyfile of reverse proxy on same host as caddy.

This commit is contained in:
2025-03-14 14:09:01 -04:00
parent c2ce3f0791
commit 9b64d416e5

View File

@@ -11,10 +11,18 @@
resolvers 1.1.1.1 resolvers 1.1.1.1
} }
# example of reverse proxy. # Example of reverse proxy on a separate host.
@gitea host git.housh.dev @gitea host git.housh.dev
handle @gitea { handle @gitea {
reverse_proxy 192.168.10.76:3000 reverse_proxy 192.168.10.76:3000
} }
# Example of revers proxy on same host
# This assumes the container name is gitea.
@gitea host git.housh.dev
handle @gitea {
reverse_proxy gitea:3000 # uses the container name for DNS discovery.
}
} }