Blob


1 2021-03-31 Omar Polo <op@omarpolo.com>
3 * gmid.h (struct vhost): remove limits on the number of vhosts and location blocks
5 * gmid.c (mkdirs): fix recursive mkdirs for configless mode
7 2021-03-29 Omar Polo <op@omarpolo.com>
9 * Makefile (static): fixed `static' target
11 2021-03-29 kornellapacz @ github
13 * Dockerfile: add missing libevent-dev dependency, thanks!
15 2021-03-27 Omar Polo <op@omarpolo.com>
17 * gmid.h (struct client): correctly handle CGI scripts that replies with the maximum header length allowed
19 2021-03-20 Omar Polo <op@omarpolo.com>
21 * 1.6 tagged
23 * sandbox.c (sandbox_logger_process): add capsicum to the logger process
25 2021-03-19 Omar Polo <op@omarpolo.com>
27 * gmid.c (main): use imsg for all IPC; only the main process
28 listens for SIGHUP: this means that finally the config reload will
29 work with OpenBSD' rc (and probably other service manager too)
31 2021-02-22 Omar Polo <op@omarpolo.com>
33 * log.c (log_request): add `log on/off' to enable/disable logs per-server or per-location
35 2021-02-09 Omar Polo <op@omarpolo.com>
37 * parse.y (locopt): add `require client ca' rule to require client certs signed by a specified CA
39 2021-02-07 Omar Polo <op@omarpolo.com>
41 * ex.c (do_exec): [cgi] split the query in words if needed and add them to the argv
42 (launch_cgi): define TLS_CLIENT_NOT_BEFORE/NOT_AFTER in CGI scripts
44 * parse.y (option): added prefork option
46 2021-02-06 Omar Polo <op@omarpolo.com>
48 * parse.y (locopt): added ``block return'' and ``strip'' options
49 (servopt): add the ``entrypoint'' option
51 2021-02-05 Omar Polo <op@omarpolo.com>
53 * 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.
55 2021-02-04 Omar Polo <op@omarpolo.com>
57 * gmid.c (main): reload configuration on SIGHUP, without disconnecting the clients
59 2021-02-02 Omar Polo <op@omarpolo.com>
61 * server.c (handle_dirlist_head): print the header in the directory listing
62 (open_file): cgi follows globbing rules, just like location and hostname matching
64 2021-02-01 Omar Polo <op@omarpolo.com>
66 * parse.y (servopt): require absolute paths in config file
68 2021-01-31 Omar Polo <op@omarpolo.com>
70 * gmid.c (main): cgi scripts now have only std{in,out,err} open
72 2021-01-30 Omar Polo <op@omarpolo.com>
74 * 1.5 tagged
75 * server.c: change precedence of location rules
77 2021-01-29 Omar Polo <op@omarpolo.com>
79 * iri.c (parse_authority): accept a wider range of unicode
80 codepoints while parsing the host name.
82 2021-01-26 Omar Polo <op@omarpolo.com>
84 * puny.c (puny_decode): initial punycode support!
86 2021-01-25 Omar Polo <op@omarpolo.com>
88 * gmid.1: manpage improvements (example and usage)
90 * gmid.c (main): Dropping -C, -K, -f, changing the meaning of -d:
91 now it's the certificate directory. Serve the directory given as
92 positional argument (or the current one) when running in
93 config-less mode.
94 (gen_certificate): automatically generate a certificate
96 * parse.y (option): added chroot and user options
98 2021-01-24 Omar Polo <op@omarpolo.com>
100 * server.c (open_dir): add directory listing (disabled by default)
102 * parse.y (vhost): added support for location blocks
104 * server.c (send_dir): make the directory index customizable
106 2021-01-23 Omar Polo <op@omarpolo.com>
108 * gg.c (main): added gg, a barebone gemini client. used by the
109 regress suite
111 2021-01-21 Omar Polo <op@omarpolo.com>
113 * configure: added a configure script
115 * server.c (handle_handshake): glob for vhost domain
117 * gmid.c (log_request): logs the full IRI and the response code (even for CGI)
119 2021-01-19 Omar Polo <op@omarpolo.com>
121 * parse.y (servopt): add "lang" server option
122 (servopt): moving "default type" from global options to server options
124 * Dockerfile: add a dockerfile
126 2021-01-18 Omar Polo <op@omarpolo.com>
128 * parse.y (option): add mime and "default type" options for media types.
130 2021-01-17 Omar Polo <op@omarpolo.com>
132 * sandbox.c (sandbox): added initial seccomp(2) support
134 2021-01-15 Omar Polo <op@omarpolo.com>
136 * cgi.c (start_cgi): set SERVER_NAME to the vhost when executing CGI scripts
138 * parse.y (option): add ability to specify the tls versions with "protocols"
140 * gmid.c (handle_open_conn): ensure the port number of the request matches
142 * sandbox.c (sandbox): sandbox on OpenBSD (pledge/unveil, as before) and on FreeBSD (capsicum) too
144 * sample.conf: added sample configuration
146 * gmid.c (main): changed behaviour: daemon off by default
147 (main): changed -c in -C (cert option)
148 (main): changed -k in -K (key option, for consistency with -C)
149 (main): added -c to load a configuration
150 (main): certs, key and doc (-C -K and -d) doesn't have a default value anymore
151 (handle_handshake): add vhosts support
153 2021-01-13 Omar Polo <op@omarpolo.com>
155 * iri.c (parse_scheme): normalize scheme while parsing, so we're
156 RFC3986 compliant.
158 2021-01-11 Omar Polo <op@omarpolo.com>
160 * 1.4 and 1.4.1 tagged
162 * gmid.c (main): ipv6 disabled by default and -6 flag to enable it
163 (handle): reject non-gemini protocols with 53
165 2021-01-10 Omar Polo <op@omarpolo.com>
167 * gmid.c (logs): log also the port of the client
168 (loop): accept both ipv4 and ipv6
170 2020-12-26 Omar Polo <op@omarpolo.com>
172 * uri.c (parse_uri): IRI support
174 2020-12-21 Omar Polo <op@omarpolo.com>
176 * gmid.c (main): -d supports relative paths
178 2020-12-02 Omar Polo <op@omarpolo.com>
180 * gmid.c: logging reworked and daemonize. The -l option was
181 removed: now it logs on syslog if -f (foreground) is not passed.
183 2020-11-18 Omar Polo <op@omarpolo.com>
185 * 1.3.2 tagged
187 * gmid.c (url_after_proto): fix bug introduced in last version
188 regarding full URLs with explicit gemini protocol.
190 * 1.3.1 tagged
192 * gmid.c (url_after_proto): correct url parsing: accept URLs
193 without explicit protocol
194 (url_start_of_request): correct handling of relative URLs
196 2020-11-17 Omar Polo <op@omarpolo.com>
198 * gmid.c (main): add flag -p to change the port
200 2020-11-10 Omar Polo <op@omarpolo.com>
202 * ChangeLog: 1.3 tagged, fixed ChangeLog format
204 * gmid.c (open_file): added support for path parameters for CGI
205 scripts
207 2020-11-06 Omar Polo <op@omarpolo.com>
209 * gmid.1: great improvements to the documentation
211 * gmid.c (url_after_proto): ensure that the requested protocol is
212 “gemini” and not something else that’s long 6 bytes.
214 * gmid.c (loop): added support for cgi scripts (can handle multiple
215 concurrently)
217 2020-11-06 Omar Polo <op@venera>
219 * gmid.1: added option to log to a file
221 2020-11-05 Omar Polo <op@omarpolo.com>
223 * gmid.c (filetypes): add MIME type for xml files
225 2020-11-03 Omar Polo <op@omarpolo.com>
227 * 1.2 tagged
229 * gmid.c (main): ignore SIGPIPE
231 2020-10-14 Omar Polo <op@omarpolo.com>
233 * 1.1 tagged
235 * switching to mmap() based file handling
237 2020-10-07 Omar Polo <op@omarpolo.com>
239 * 1.0 tagged