summaryrefslogtreecommitdiffstats
path: root/include/config.h
Commit message (Collapse)AuthorAgeFilesLines
* Serve CA full chain (Let's Encrypt), TLS 1.3, fix handshake buffer overflowHEADmainGab Virebent7 days1-0/+1
| | | | | | | | - tls.c/config.h: read full PEM chain into STACK_OF(X509), send via SSL_set1_chain - tls.c: minimum protocol TLS 1.2 -> TLS 1.3 - server.c: drain handshake output via local buffer loop instead of staging into the fixed 4 KB client buffer (a full CA chain overflowed it -> assert) - FORK.md: describe the fork
* implement handling of ROUTE_EXACT definitionsRené Wagner2021-01-291-0/+1
| | | | | This patchset implements the handling of exact routes as described in gmnisrvini(5).
* Implement URL rewrites with regex capture groupsDrew DeVault2020-11-011-0/+1
|
* Initial pass on regex routing supportDrew DeVault2020-10-291-2/+2
| | | | | | | | | All this does is parse the regexes out of the config file. I've vendored libregexp from Bellard's quickjs project, because it's reasonably small and self-contained, and POSIX regexes don't support captures. We're eventually going to want captures for URL rewrites, so this'll do for now.
* Initial support for CGI scriptsDrew DeVault2020-10-251-0/+1
|
* Initial implementation of a routing tableDrew DeVault2020-10-251-2/+21
|
* Remove [:tls] email directiveDrew DeVault2020-09-261-1/+0
|
* Implement autoindex optionDrew DeVault2020-09-261-0/+5
|
* Implement TLS exchange with clientsDrew DeVault2020-09-241-1/+1
| | | | This probably leaves a bit to be desired tbh
* tls: move cert/key into host structureDrew DeVault2020-09-241-0/+2
| | | | | | | | We'll later want to set these on the SSL object (rather than SSL_CTX), so move these into the host struct for later access. We'll prefer to set it on the SSL object so that we can automatically use an up-to-date certificate, per ~sircmpwn/gmni#26.
* Implement TLS storeDrew DeVault2020-09-241-0/+2
| | | | Includes hands-free certificate generation and loading
* Implement basic server event loopDrew DeVault2020-09-231-1/+1
|
* Initialize socketsDrew DeVault2020-09-231-0/+2
|
* config: parse listen directivesDrew DeVault2020-09-231-1/+1
|
* Initial config parserDrew DeVault2020-09-231-0/+34