Commits


add -D to define macros from the cmd line


allow to define macros in the config file Macros can be defined at the top of the configuration file: dir = "/var/gemini" cert = "/etc/keys" and re-used later, for example server "foo" { root "$dir/foo" # -> /var/gemini/foo cert "$cert/foo.pem" # -> /etc/keys/foo.pem }


use getopt_long, add --help as synonym of -h and -V/--version


document `log' option


drop the dependency on lex by implementing yylex by ourselves The actual implementation is based off doas' parse.y. This gave us various benefits, like cleaner code, \ to break long lines, better handling of quotes etc...


add `param' keyword


more params from and send a custom list


sync


certificate generation (bugfix and improvement) don't add gmid as organisation when generating the certificate, and set the version to 3, so it's compatible with java/android clients. Found by Gnuserland, thanks!


sync


sync


ensure %p (path) is always absolute with the recent changes, sometimes the path may not start with a '/'. This ensures that %s is ALWAYS an absolute path.


allow ``root'' rule to be specified per-location block


added ``alias'' option to define hostname aliases for a server


pidfile support with `-P pidfile'