summaryrefslogtreecommitdiffstats
path: root/src/config.c
Commit message (Collapse)AuthorAgeFilesLines
* implement handling of ROUTE_EXACT definitionsRené Wagner2021-01-291-1/+7
| | | | | This patchset implements the handling of exact routes as described in gmnisrvini(5).
* config/routing: fix maybe-uninitialized errorsWilliam Casarin2020-11-021-0/+2
| | | | | | | | | | | | | | | | | Trivial fix to silence compilation errors on gcc 9.3.0: src/config.c: In function ‘conf_ini_handler’: src/config.c:154:23: error: ‘routing’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 154 | enum gmnisrv_routing routing; | ^~~~~~~ src/config.c:197:18: error: ‘spec’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 197 | route->path = strdup(spec); | ^~~~~~~~~~~~ Signed-off-by: William Casarin <jb55@jb55.com>
* Implement URL rewrites with regex capture groupsDrew DeVault2020-11-011-2/+9
|
* Initial pass on regex routing supportDrew DeVault2020-10-291-2/+14
| | | | | | | | | 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.
* config: free more routing information on finishDrew DeVault2020-10-281-0/+11
|
* Initial support for CGI scriptsDrew DeVault2020-10-251-0/+1
|
* Initial implementation of a routing tableDrew DeVault2020-10-251-14/+77
|
* Remove [:tls] email directiveDrew DeVault2020-09-261-2/+0
|
* Free up resources throughoutDrew DeVault2020-09-261-0/+1
|
* Implement autoindex optionDrew DeVault2020-09-261-0/+20
|
* Initialize socketsDrew DeVault2020-09-231-0/+26
|
* config: parse listen directivesDrew DeVault2020-09-231-3/+58
|
* Initial config parserDrew DeVault2020-09-231-0/+141