Blob


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