Omar Polo
e5d82d9472
const-ify some tables
...
matches found with
% grep -R '=[ ]*{' . | fgrep -v const
2022-03-19 11:02:42 +00:00
Omar Polo
1cdea97b6c
allow using a custom hostname for SNI during proxying
...
add a `sni' option for the `proxy' block: the given name is used instead
of the one extracted by the `relay-to' rule.
2022-01-30 10:14:44 +00:00
Omar Polo
e0f6dc646d
improve proxy error path
...
properly release everything when during client_close if the request
was managed by a proxy.
2022-01-27 09:55:52 +00:00
Omar Polo
89efa81bcc
set REQUEST_PROXY only when proxy_init is successful
2022-01-27 09:53:43 +00:00
Omar Polo
b7967bc1f6
proxy: allow multiple proxy blocks, matching options and validations
...
as a side effect the order of the content of a server block is relaxed:
options, location or proxy blocks can be put in any order.
2022-01-02 16:33:28 +00:00
Omar Polo
593e412b49
allow to disable TLS when proxying requests
2022-01-01 20:16:14 +00:00
Omar Polo
c7c8ef448b
add protocols' option to
proxy' rule
2022-01-01 19:04:50 +00:00
Omar Polo
5128c0b0e3
add verifyname' option for
proxy' rule
2022-01-01 18:50:10 +00:00
Omar Polo
7bdcc91ec7
simplify the proxying code
...
it doesn't make any sense to keep the proxying info per-location:
proxying only one per-vhost. It can't work differently, it doesn't make
sense anyway.
2022-01-01 17:08:39 +00:00
Omar Polo
d49093c105
support optional client certificate for proxy rule
2022-01-01 16:33:44 +00:00
Omar Polo
72b033ef18
add ability to proxy requests
...
Add to gmid the ability to forwad a request to another gemini server and
thus acting like a reverse proxy. The current syntax for the config
file is
server "example.com" {
...
proxy relay-to host:port
}
Further options (like the use of custom certificates) are planned.
cf. github issue #7
2021-12-29 20:36:54 +00:00