commit 161651fa5e700e32bb608aa4b6051e1b10986729 from: Omar Polo date: Thu Aug 03 22:24:09 2023 UTC gmid.conf.5: add one example of proxy relay-to commit - c2bcf6a40209be1eb84773b47879c532e37e2931 commit + 161651fa5e700e32bb608aa4b6051e1b10986729 blob - e5a48337a96af9794398dbc0ae16c0d771c9351d blob + ff38ab6b65a9874b1a30d91e2e36820de190c0cc --- gmid.conf.5 +++ gmid.conf.5 @@ -643,6 +643,24 @@ server "example.com" { auto index on index "index.gemini" + } +} +.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