diff options
author | Omar Polo <op@omarpolo.com> | 2023-08-03 22:24:09 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-08-03 22:24:09 +0000 |
commit | 161651fa5e700e32bb608aa4b6051e1b10986729 (patch) | |
tree | 9432707f266c809ebf5d581ad295c2666a88e70c /gmid.conf.5 | |
parent | c2bcf6a40209be1eb84773b47879c532e37e2931 (diff) |
gmid.conf.5: add one example of proxy relay-to
Diffstat (limited to 'gmid.conf.5')
-rw-r--r-- | gmid.conf.5 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gmid.conf.5 b/gmid.conf.5 index e5a4833..ff38ab6 100644 --- a/gmid.conf.5 +++ b/gmid.conf.5 @@ -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 |