feat: Adds example in Caddyfile of reverse proxy on same host as caddy.
This commit is contained in:
@@ -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.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user