Blob


1 2021-07-09 Omar Polo <op@omarpolo.com>
3 * parse.y (STRING): add `include' directive
5 2021-07-08 Omar Polo <op@omarpolo.com>
7 * parse.y (option): rename `mime MIME EXT' to `map MIME to-ext EXT', but retain the old `mime' for compatibility.
9 2021-07-06 Omar Polo <op@omarpolo.com>
11 * regress/gg.c (main): add -T timeout
13 * configure (guessing_cflags): try to preserve CFLAGS/LDFLAGS
15 2021-07-02 Omar Polo <op@omarpolo.com>
17 * sandbox.c (filter): seccomp filter reworked: now it should work on x86 and possibly other arches too!
19 2021-06-29 Omar Polo <op@omarpolo.com>
21 * parse.y (conf): don't require the strict order macro > options > servers
22 c-like strings: when two or more strings are next to each others, concat them
24 * gmid.c (main): add -D to define macros from the cmd line
26 * parse.y (yylex): allow to define macros in the config file
28 * gmid.c (main): use getopt_long, add --help as synonym of -h and -V/--version
30 2021-06-17 Omar Polo <op@omarpolo.com>
32 * gmid.1: document `log' option
34 2021-06-16 Omar Polo <op@omarpolo.com>
36 * parse.y (yylex): drop the dependency on lex by implementing
37 yylex by ourselves (the actual implementation is based off doas'
38 parse.y). This gave us various benefits, like cleaner code, \ to
39 break long lines, better handling of quotes etc...
41 2021-06-11 Omar Polo <op@omarpolo.com>
43 * parse.y (servopt): add `param' keyword
45 * fcgi.c (send_fcgi_req): send GATEWAY_INTERFACE, AUTH_TYPE,
46 REMOTE_USER, TLS_CLIENT_ISSUER, TLS_CLIENT_HASH, TLS_VERSION,
47 TLS_CIPHER, TLS_CIPHER_STRENGTH and TLS_CLIENT_NOT_BEFORE/AFTER.
48 (send_fcgi_req): support a custom list of params
50 2021-05-24 Omar Polo <op@omarpolo.com>
52 * gg.c: move `gg' to regress, as it's only used for the tests
54 2021-05-12 Omar Polo <op@omarpolo.com>
56 * utils.c (gen_certificate): don't add gmid as organisation when generating the certificate, and now it set the version 3, so it's compatible with java/android
58 2021-05-09 Omar Polo <op@omarpolo.com>
60 * server.c (apply_fastcgi): added fastcgi support!
62 2021-05-03 Omar Polo <op@omarpolo.com>
64 * parse.y: errors on duplicate values instead of silently using only the last value.
66 2021-04-30 Omar Polo <op@omarpolo.com>
68 * server.c (fmt_sbuf): ensure %p (path) is always absolute
70 * gmid.c (load_vhosts): allow ``root'' rule to be specified per-location block
72 2021-04-29 Omar Polo <op@omarpolo.com>
74 * parse.y (servopt): added ``alias'' option to define hostname aliases for a server
76 2021-04-28 Omar Polo <op@omarpolo.com>
78 * gmid.c (main): pidfile support with `-P pidfile'
80 2021-04-27 Omar Polo <op@omarpolo.com>
82 * parse.y (servopt): added ``env'' option to define environment vars for CGI scripts
84 * log.c (fatal): lower the log priority for fatal errors from CRIT to ERR
86 2021-04-25 Omar Polo <op@omarpolo.com>
88 * server.c (open_dir): sort the auto index alphabetically
90 2021-04-21 Omar Polo <op@omarpolo.com>
92 * mime.c (load_default_mime): use `text/x-patch' for .patch and .diff files
94 2021-04-14 Omar Polo <op@omarpolo.com>
96 * log.c (handle_imsg_log): print the datetime when logging to stderr
98 2021-04-13 Omar Polo <op@omarpolo.com>
100 * ex.c (launch_cgi): define TLS_VERSION, TLS_CIPHER and TLS_CIPHER_STRENGTH for CGI scripts
102 2021-04-12 Omar Polo <op@omarpolo.com>
104 * 1.6.1 tagged
106 * iri.c (path_clean): fix possible infinite loop in the IRI parsing code.
108 2021-03-31 Omar Polo <op@omarpolo.com>
110 * gmid.h (struct vhost): remove limits on the number of vhosts and location blocks
112 * gmid.c (mkdirs): fix recursive mkdirs for configless mode
114 2021-03-29 Omar Polo <op@omarpolo.com>
116 * Makefile (static): fixed `static' target
118 2021-03-29 kornellapacz @ github
120 * Dockerfile: add missing libevent-dev dependency, thanks!
122 2021-03-27 Omar Polo <op@omarpolo.com>
124 * gmid.h (struct client): correctly handle CGI scripts that replies with the maximum header length allowed
126 2021-03-20 Omar Polo <op@omarpolo.com>
128 * 1.6 tagged
130 * sandbox.c (sandbox_logger_process): add capsicum to the logger process
132 2021-03-19 Omar Polo <op@omarpolo.com>
134 * gmid.c (main): use imsg for all IPC; only the main process
135 listens for SIGHUP: this means that finally the config reload will
136 work with OpenBSD' rc (and probably other service manager too)
138 2021-02-22 Omar Polo <op@omarpolo.com>
140 * log.c (log_request): add `log on/off' to enable/disable logs per-server or per-location
142 2021-02-09 Omar Polo <op@omarpolo.com>
144 * parse.y (locopt): add `require client ca' rule to require client certs signed by a specified CA
146 2021-02-07 Omar Polo <op@omarpolo.com>
148 * ex.c (do_exec): [cgi] split the query in words if needed and add them to the argv
149 (launch_cgi): define TLS_CLIENT_NOT_BEFORE/NOT_AFTER in CGI scripts
151 * parse.y (option): added prefork option
153 2021-02-06 Omar Polo <op@omarpolo.com>
155 * parse.y (locopt): added ``block return'' and ``strip'' options
156 (servopt): add the ``entrypoint'' option
158 2021-02-05 Omar Polo <op@omarpolo.com>
160 * iri.c (parse_query): don't %-decode the query part. This affects the value of QUERY_STRING for CGI scripts too, since that must be %-encoded and we're currently shipping it decoded.
162 2021-02-04 Omar Polo <op@omarpolo.com>
164 * gmid.c (main): reload configuration on SIGHUP, without disconnecting the clients
166 2021-02-02 Omar Polo <op@omarpolo.com>
168 * server.c (handle_dirlist_head): print the header in the directory listing
169 (open_file): cgi follows globbing rules, just like location and hostname matching
171 2021-02-01 Omar Polo <op@omarpolo.com>
173 * parse.y (servopt): require absolute paths in config file
175 2021-01-31 Omar Polo <op@omarpolo.com>
177 * gmid.c (main): cgi scripts now have only std{in,out,err} open
179 2021-01-30 Omar Polo <op@omarpolo.com>
181 * 1.5 tagged
182 * server.c: change precedence of location rules
184 2021-01-29 Omar Polo <op@omarpolo.com>
186 * iri.c (parse_authority): accept a wider range of unicode
187 codepoints while parsing the host name.
189 2021-01-26 Omar Polo <op@omarpolo.com>
191 * puny.c (puny_decode): initial punycode support!
193 2021-01-25 Omar Polo <op@omarpolo.com>
195 * gmid.1: manpage improvements (example and usage)
197 * gmid.c (main): Dropping -C, -K, -f, changing the meaning of -d:
198 now it's the certificate directory. Serve the directory given as
199 positional argument (or the current one) when running in
200 config-less mode.
201 (gen_certificate): automatically generate a certificate
203 * parse.y (option): added chroot and user options
205 2021-01-24 Omar Polo <op@omarpolo.com>
207 * server.c (open_dir): add directory listing (disabled by default)
209 * parse.y (vhost): added support for location blocks
211 * server.c (send_dir): make the directory index customizable
213 2021-01-23 Omar Polo <op@omarpolo.com>
215 * gg.c (main): added gg, a barebone gemini client. used by the
216 regress suite
218 2021-01-21 Omar Polo <op@omarpolo.com>
220 * configure: added a configure script
222 * server.c (handle_handshake): glob for vhost domain
224 * gmid.c (log_request): logs the full IRI and the response code (even for CGI)
226 2021-01-19 Omar Polo <op@omarpolo.com>
228 * parse.y (servopt): add "lang" server option
229 (servopt): moving "default type" from global options to server options
231 * Dockerfile: add a dockerfile
233 2021-01-18 Omar Polo <op@omarpolo.com>
235 * parse.y (option): add mime and "default type" options for media types.
237 2021-01-17 Omar Polo <op@omarpolo.com>
239 * sandbox.c (sandbox): added initial seccomp(2) support
241 2021-01-15 Omar Polo <op@omarpolo.com>
243 * cgi.c (start_cgi): set SERVER_NAME to the vhost when executing CGI scripts
245 * parse.y (option): add ability to specify the tls versions with "protocols"
247 * gmid.c (handle_open_conn): ensure the port number of the request matches
249 * sandbox.c (sandbox): sandbox on OpenBSD (pledge/unveil, as before) and on FreeBSD (capsicum) too
251 * sample.conf: added sample configuration
253 * gmid.c (main): changed behaviour: daemon off by default
254 (main): changed -c in -C (cert option)
255 (main): changed -k in -K (key option, for consistency with -C)
256 (main): added -c to load a configuration
257 (main): certs, key and doc (-C -K and -d) doesn't have a default value anymore
258 (handle_handshake): add vhosts support
260 2021-01-13 Omar Polo <op@omarpolo.com>
262 * iri.c (parse_scheme): normalize scheme while parsing, so we're
263 RFC3986 compliant.
265 2021-01-11 Omar Polo <op@omarpolo.com>
267 * 1.4 and 1.4.1 tagged
269 * gmid.c (main): ipv6 disabled by default and -6 flag to enable it
270 (handle): reject non-gemini protocols with 53
272 2021-01-10 Omar Polo <op@omarpolo.com>
274 * gmid.c (logs): log also the port of the client
275 (loop): accept both ipv4 and ipv6
277 2020-12-26 Omar Polo <op@omarpolo.com>
279 * uri.c (parse_uri): IRI support
281 2020-12-21 Omar Polo <op@omarpolo.com>
283 * gmid.c (main): -d supports relative paths
285 2020-12-02 Omar Polo <op@omarpolo.com>
287 * gmid.c: logging reworked and daemonize. The -l option was
288 removed: now it logs on syslog if -f (foreground) is not passed.
290 2020-11-18 Omar Polo <op@omarpolo.com>
292 * 1.3.2 tagged
294 * gmid.c (url_after_proto): fix bug introduced in last version
295 regarding full URLs with explicit gemini protocol.
297 * 1.3.1 tagged
299 * gmid.c (url_after_proto): correct url parsing: accept URLs
300 without explicit protocol
301 (url_start_of_request): correct handling of relative URLs
303 2020-11-17 Omar Polo <op@omarpolo.com>
305 * gmid.c (main): add flag -p to change the port
307 2020-11-10 Omar Polo <op@omarpolo.com>
309 * ChangeLog: 1.3 tagged, fixed ChangeLog format
311 * gmid.c (open_file): added support for path parameters for CGI
312 scripts
314 2020-11-06 Omar Polo <op@omarpolo.com>
316 * gmid.1: great improvements to the documentation
318 * gmid.c (url_after_proto): ensure that the requested protocol is
319 “gemini” and not something else that’s long 6 bytes.
321 * gmid.c (loop): added support for cgi scripts (can handle multiple
322 concurrently)
324 2020-11-06 Omar Polo <op@venera>
326 * gmid.1: added option to log to a file
328 2020-11-05 Omar Polo <op@omarpolo.com>
330 * gmid.c (filetypes): add MIME type for xml files
332 2020-11-03 Omar Polo <op@omarpolo.com>
334 * 1.2 tagged
336 * gmid.c (main): ignore SIGPIPE
338 2020-10-14 Omar Polo <op@omarpolo.com>
340 * 1.1 tagged
342 * switching to mmap() based file handling
344 2020-10-07 Omar Polo <op@omarpolo.com>
346 * 1.0 tagged