Commit Briefs

Omar Polo

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



Omar Polo

retire the old gg



Omar Polo

typo


Omar Polo

reimplement gg

This is a better version of gg. Initially it grew with flags directly needed to the specific test cases I wanted to write, so it's ugly to use but handy for tests. This is a new and re-thought implementation that it is (hopefully) easier to use both and "curl-like for gemini" but also for scripts and tests cases. One completely new feature is the proxying support with -P to send the request to the given host.


Omar Polo

sync changelog



Omar Polo

missing dots

(not adding one in the gemini version because it could be mistakenly for part of the command)



Omar Polo

relax the "wont proxy request" check: don't check the port number

Don't refuse to serve the request if the port number doesn't match the one we're listening on, as initially suggested by Allen Sobot. Complex setup may have a gmid instance reachable from multiple ports and the meaning of the check in the first places was to avoid tricking clients into thinking that we're serving for those domains: the port number is way less important than the schema or domain name. In the long run, the best way would probably to add a `listen on' keyword for the servers blocks, just like OpenBSD' httpd, but gmid can't listen on multiple ports/interfaces yet


Omar Polo

configure: support --prefix=...

It's like passing PREFIX=... on the command line


Omar Polo

typo

forgot to rename variable in lib.sh: dont_check -> dont_check_server_alive.


Omar Polo

rename `runtime' to `regress'

while there also kill an unused rule `regress', it's now redundant since all the tests are run together.


Omar Polo

rename variable