gmid.conf.5: add one example of proxy relay-to

This commit is contained in:
Omar Polo 2023-08-03 22:24:09 +00:00
parent c2bcf6a402
commit 161651fa5e
1 changed files with 18 additions and 0 deletions

View File

@ -646,6 +646,24 @@ server "example.com" {
}
}
.Ed
.Pp
This shows how to set up a reverse proxy: all request for
.Sq example.com
will be forwarded to 10.0.0.6 transparently.
Proxying establish a new TLS connection, so any client-certificates used
to connect to
.Xr gmid 8
cannot be provided to the proxied server as well.
.Bd -literal -offset indent
server "example.com" {
listen on * port 1965
cert "/etc/ssl/example.com.pem"
key "/etc/ssl/private/example.com.key"
proxy {
relay-to 10.0.0.6 port 1965
}
}
.Ed
.Sh SEE ALSO
.Xr gmid 8 ,
.Xr slowcgi 8