Blob


1 2021-04-28 Omar Polo <op@omarpolo.com>
3 * gmid.c (main): pidfile support with `-P pidfile'
5 2021-04-27 Omar Polo <op@omarpolo.com>
7 * parse.y (servopt): added ``env'' option to define environment vars for CGI scripts
9 * log.c (fatal): lower the log priority for fatal errors from CRIT to ERR
11 2021-04-25 Omar Polo <op@omarpolo.com>
13 * server.c (open_dir): sort the auto index alphabetically
15 2021-04-21 Omar Polo <op@omarpolo.com>
17 * mime.c (load_default_mime): use `text/x-patch' for .patch and .diff files
19 2021-04-14 Omar Polo <op@omarpolo.com>
21 * log.c (handle_imsg_log): print the datetime when logging to stderr
23 2021-04-13 Omar Polo <op@omarpolo.com>
25 * ex.c (launch_cgi): define TLS_VERSION, TLS_CIPHER and TLS_CIPHER_STRENGTH for CGI scripts
27 2021-04-12 Omar Polo <op@omarpolo.com>
29 * 1.6.1 tagged
31 * iri.c (path_clean): fix possible infinite loop in the IRI parsing code.
33 2021-03-31 Omar Polo <op@omarpolo.com>
35 * gmid.h (struct vhost): remove limits on the number of vhosts and location blocks
37 * gmid.c (mkdirs): fix recursive mkdirs for configless mode
39 2021-03-29 Omar Polo <op@omarpolo.com>
41 * Makefile (static): fixed `static' target
43 2021-03-29 kornellapacz @ github
45 * Dockerfile: add missing libevent-dev dependency, thanks!
47 2021-03-27 Omar Polo <op@omarpolo.com>
49 * gmid.h (struct client): correctly handle CGI scripts that replies with the maximum header length allowed
51 2021-03-20 Omar Polo <op@omarpolo.com>
53 * 1.6 tagged
55 * sandbox.c (sandbox_logger_process): add capsicum to the logger process
57 2021-03-19 Omar Polo <op@omarpolo.com>
59 * gmid.c (main): use imsg for all IPC; only the main process
60 listens for SIGHUP: this means that finally the config reload will
61 work with OpenBSD' rc (and probably other service manager too)
63 2021-02-22 Omar Polo <op@omarpolo.com>
65 * log.c (log_request): add `log on/off' to enable/disable logs per-server or per-location
67 2021-02-09 Omar Polo <op@omarpolo.com>
69 * parse.y (locopt): add `require client ca' rule to require client certs signed by a specified CA
71 2021-02-07 Omar Polo <op@omarpolo.com>
73 * ex.c (do_exec): [cgi] split the query in words if needed and add them to the argv
74 (launch_cgi): define TLS_CLIENT_NOT_BEFORE/NOT_AFTER in CGI scripts
76 * parse.y (option): added prefork option
78 2021-02-06 Omar Polo <op@omarpolo.com>
80 * parse.y (locopt): added ``block return'' and ``strip'' options
81 (servopt): add the ``entrypoint'' option
83 2021-02-05 Omar Polo <op@omarpolo.com>
85 * 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.
87 2021-02-04 Omar Polo <op@omarpolo.com>
89 * gmid.c (main): reload configuration on SIGHUP, without disconnecting the clients
91 2021-02-02 Omar Polo <op@omarpolo.com>
93 * server.c (handle_dirlist_head): print the header in the directory listing
94 (open_file): cgi follows globbing rules, just like location and hostname matching
96 2021-02-01 Omar Polo <op@omarpolo.com>
98 * parse.y (servopt): require absolute paths in config file
100 2021-01-31 Omar Polo <op@omarpolo.com>
102 * gmid.c (main): cgi scripts now have only std{in,out,err} open
104 2021-01-30 Omar Polo <op@omarpolo.com>
106 * 1.5 tagged
107 * server.c: change precedence of location rules
109 2021-01-29 Omar Polo <op@omarpolo.com>
111 * iri.c (parse_authority): accept a wider range of unicode
112 codepoints while parsing the host name.
114 2021-01-26 Omar Polo <op@omarpolo.com>
116 * puny.c (puny_decode): initial punycode support!
118 2021-01-25 Omar Polo <op@omarpolo.com>
120 * gmid.1: manpage improvements (example and usage)
122 * gmid.c (main): Dropping -C, -K, -f, changing the meaning of -d:
123 now it's the certificate directory. Serve the directory given as
124 positional argument (or the current one) when running in
125 config-less mode.
126 (gen_certificate): automatically generate a certificate
128 * parse.y (option): added chroot and user options
130 2021-01-24 Omar Polo <op@omarpolo.com>
132 * server.c (open_dir): add directory listing (disabled by default)
134 * parse.y (vhost): added support for location blocks
136 * server.c (send_dir): make the directory index customizable
138 2021-01-23 Omar Polo <op@omarpolo.com>
140 * gg.c (main): added gg, a barebone gemini client. used by the
141 regress suite
143 2021-01-21 Omar Polo <op@omarpolo.com>
145 * configure: added a configure script
147 * server.c (handle_handshake): glob for vhost domain
149 * gmid.c (log_request): logs the full IRI and the response code (even for CGI)
151 2021-01-19 Omar Polo <op@omarpolo.com>
153 * parse.y (servopt): add "lang" server option
154 (servopt): moving "default type" from global options to server options
156 * Dockerfile: add a dockerfile
158 2021-01-18 Omar Polo <op@omarpolo.com>
160 * parse.y (option): add mime and "default type" options for media types.
162 2021-01-17 Omar Polo <op@omarpolo.com>
164 * sandbox.c (sandbox): added initial seccomp(2) support
166 2021-01-15 Omar Polo <op@omarpolo.com>
168 * cgi.c (start_cgi): set SERVER_NAME to the vhost when executing CGI scripts
170 * parse.y (option): add ability to specify the tls versions with "protocols"
172 * gmid.c (handle_open_conn): ensure the port number of the request matches
174 * sandbox.c (sandbox): sandbox on OpenBSD (pledge/unveil, as before) and on FreeBSD (capsicum) too
176 * sample.conf: added sample configuration
178 * gmid.c (main): changed behaviour: daemon off by default
179 (main): changed -c in -C (cert option)
180 (main): changed -k in -K (key option, for consistency with -C)
181 (main): added -c to load a configuration
182 (main): certs, key and doc (-C -K and -d) doesn't have a default value anymore
183 (handle_handshake): add vhosts support
185 2021-01-13 Omar Polo <op@omarpolo.com>
187 * iri.c (parse_scheme): normalize scheme while parsing, so we're
188 RFC3986 compliant.
190 2021-01-11 Omar Polo <op@omarpolo.com>
192 * 1.4 and 1.4.1 tagged
194 * gmid.c (main): ipv6 disabled by default and -6 flag to enable it
195 (handle): reject non-gemini protocols with 53
197 2021-01-10 Omar Polo <op@omarpolo.com>
199 * gmid.c (logs): log also the port of the client
200 (loop): accept both ipv4 and ipv6
202 2020-12-26 Omar Polo <op@omarpolo.com>
204 * uri.c (parse_uri): IRI support
206 2020-12-21 Omar Polo <op@omarpolo.com>
208 * gmid.c (main): -d supports relative paths
210 2020-12-02 Omar Polo <op@omarpolo.com>
212 * gmid.c: logging reworked and daemonize. The -l option was
213 removed: now it logs on syslog if -f (foreground) is not passed.
215 2020-11-18 Omar Polo <op@omarpolo.com>
217 * 1.3.2 tagged
219 * gmid.c (url_after_proto): fix bug introduced in last version
220 regarding full URLs with explicit gemini protocol.
222 * 1.3.1 tagged
224 * gmid.c (url_after_proto): correct url parsing: accept URLs
225 without explicit protocol
226 (url_start_of_request): correct handling of relative URLs
228 2020-11-17 Omar Polo <op@omarpolo.com>
230 * gmid.c (main): add flag -p to change the port
232 2020-11-10 Omar Polo <op@omarpolo.com>
234 * ChangeLog: 1.3 tagged, fixed ChangeLog format
236 * gmid.c (open_file): added support for path parameters for CGI
237 scripts
239 2020-11-06 Omar Polo <op@omarpolo.com>
241 * gmid.1: great improvements to the documentation
243 * gmid.c (url_after_proto): ensure that the requested protocol is
244 “gemini” and not something else that’s long 6 bytes.
246 * gmid.c (loop): added support for cgi scripts (can handle multiple
247 concurrently)
249 2020-11-06 Omar Polo <op@venera>
251 * gmid.1: added option to log to a file
253 2020-11-05 Omar Polo <op@omarpolo.com>
255 * gmid.c (filetypes): add MIME type for xml files
257 2020-11-03 Omar Polo <op@omarpolo.com>
259 * 1.2 tagged
261 * gmid.c (main): ignore SIGPIPE
263 2020-10-14 Omar Polo <op@omarpolo.com>
265 * 1.1 tagged
267 * switching to mmap() based file handling
269 2020-10-07 Omar Polo <op@omarpolo.com>
271 * 1.0 tagged