Blame


1 bf7a7fd7 2023-07-23 op 2023-07-23 Omar Polo <op@omarpolo.com>
2 bf7a7fd7 2023-07-23 op
3 bf7a7fd7 2023-07-23 op * parse.y: revamp fastcgi configuration; make it per-location
4 bf7a7fd7 2023-07-23 op
5 bf7a7fd7 2023-07-23 op 2023-07-22 Omar Polo <op@omarpolo.com>
6 bf7a7fd7 2023-07-23 op
7 bf7a7fd7 2023-07-23 op * titan.c (main): add titan(1), a simple titan client
8 bf7a7fd7 2023-07-23 op
9 bf7a7fd7 2023-07-23 op * gg.c (get): warn when the server doesn't use TLS' close notify
10 bf7a7fd7 2023-07-23 op
11 bf7a7fd7 2023-07-23 op 2023-07-01 Omar Polo <op@omarpolo.com>
12 bf7a7fd7 2023-07-23 op
13 bf7a7fd7 2023-07-23 op * fcgi.c (fcgi_handle_stdout): parse and log the fastcgi reply
14 bf7a7fd7 2023-07-23 op
15 53bdae38 2023-06-24 op 2023-06-23 Omar Polo <op@omarpolo.com>
16 0fc92ad2 2023-06-24 op
17 0fc92ad2 2023-06-24 op * server.c (handle_handshake): correctly handle TLS handshake failures.
18 53bdae38 2023-06-24 op
19 53bdae38 2023-06-24 op * parse.y: implement `listen on'
20 53bdae38 2023-06-24 op
21 611dffe8 2023-06-13 op 2023-06-13 Omar Polo <op@omarpolo.com>
22 611dffe8 2023-06-13 op
23 611dffe8 2023-06-13 op * regress/sha: remove regress/sha; sha256/sha256sum is no more required for the regress suite.
24 611dffe8 2023-06-13 op
25 83c62ff9 2022-09-10 op 2022-09-10 Omar Polo <op@omarpolo.com>
26 83c62ff9 2022-09-10 op
27 83c62ff9 2022-09-10 op * parse.y (string): retire the deprecated `mime' and `map' config options
28 aae8f6bf 2022-09-08 op
29 f7c6f715 2022-09-08 op 2022-09-07 Omar Polo <op@omarpolo.com>
30 f7c6f715 2022-09-08 op
31 f7c6f715 2022-09-08 op * ge.c (main): add `ge': small program to quickly export a directory over Gemini.
32 f7c6f715 2022-09-08 op
33 f7c6f715 2022-09-08 op 2022-09-06 Omar Polo <op@omarpolo.com>
34 f7c6f715 2022-09-08 op
35 f7c6f715 2022-09-08 op * server.c: drop CGI support.
36 f7c6f715 2022-09-08 op * sandbox.c: optionally disable the sandbox on non-OpenBSD when fastcgi or proxy are used. New sockets can't be opened under FreeBSD' capsicum(4) and a huge pain in the arse under Linux' seccomp/landlock. Patches welcome!
37 f7c6f715 2022-09-08 op
38 de8dc03c 2022-07-07 op 2022-07-07 Omar Polo <op@omarpolo.com>
39 39ad4b8d 2022-07-07 op
40 39ad4b8d 2022-07-07 op * log.c (logger_main): fix timestamps in log files. Reported by Karl Jeacle, thanks!
41 de8dc03c 2022-07-07 op
42 de8dc03c 2022-07-07 op * dirs.c (scandir_fd): drop d_reclen; it's not available on DragonflyBSD (at least.)
43 93124fce 2022-07-07 op
44 93124fce 2022-07-07 op 2022-07-07 Anna “CyberTailor”
45 93124fce 2022-07-07 op
46 93124fce 2022-07-07 op * Makefile: include contrib/ in dist
47 de8dc03c 2022-07-07 op
48 df40c969 2022-07-04 op 2022-07-04 Omar Polo <op@omarpolo.com>
49 9ac62587 2022-07-07 op
50 9ac62587 2022-07-07 op * contrib/gmid: remove OpenBSD' rc file: it's now maintained in the ports tree
51 ddd291dd 2022-07-07 op
52 ddd291dd 2022-07-07 op * configure (VERSION): 1.8.4 tagged
53 3bd4a6de 2022-07-04 op
54 3bd4a6de 2022-07-04 op * server.c (check_path): log when it fails to open a file because of permissions
55 ddd3c552 2022-07-04 op (client_write): encode file names in the directory index, spotted by cage
56 0d823f22 2022-07-04 op (client_write): add a trailing / for dirs in the directory index.
57 df40c969 2022-07-04 op
58 df40c969 2022-07-04 op * iri.c (parse_path): allow '@' and ':' in paths
59 df40c969 2022-07-04 op
60 1d6cbdd0 2022-04-08 op 2022-04-08 Omar Polo <op@omarpolo.com>
61 99a95569 2022-04-08 op
62 5c4e8e97 2022-04-08 op * mime.c (mime): do a binary search to match the MIME time
63 99a95569 2022-04-08 op
64 99a95569 2022-04-08 op * gmid.c (listener_main): don't load the default mime listing when
65 6d362b35 2022-04-08 op `types' is used. (text/gemini -> gmi/gemini is still hardcoded)
66 1d6cbdd0 2022-04-08 op
67 1d6cbdd0 2022-04-08 op * mime.c (add_mime): fix memory leak in the mime handling
68 1d6cbdd0 2022-04-08 op
69 9b649953 2022-04-08 op 2022-04-07 Omar Polo <op@omarpolo.com>
70 f731e4a7 2022-04-07 op
71 f731e4a7 2022-04-07 op * gmid.conf.5: move config file documentation into a new man page
72 f731e4a7 2022-04-07 op
73 f731e4a7 2022-04-07 op * parse.y (option): deprecate `map' rule in favour of the `types' block
74 8036523f 2022-04-07 op
75 8036523f 2022-04-07 op 2022-03-27 Omar Polo <op@omarpolo.com>
76 8036523f 2022-04-07 op
77 8036523f 2022-04-07 op * configure (VERSION): 1.8.3 tagged
78 8036523f 2022-04-07 op
79 8036523f 2022-04-07 op * server.c (start_cgi): fix a possible out-of-bound access in the
80 8036523f 2022-04-07 op CGI handling.
81 8036523f 2022-04-07 op
82 8036523f 2022-04-07 op 2022-03-26 Omar Polo <op@omarpolo.com>
83 f731e4a7 2022-04-07 op
84 8036523f 2022-04-07 op * configure (VERSION): 1.8.2 tagged
85 8036523f 2022-04-07 op
86 8036523f 2022-04-07 op * server.c (handle_imsg_cgi_res): fix a CGI timing issue: if a
87 8036523f 2022-04-07 op connection handled by a CGI scripts is interrupted with the right
88 8036523f 2022-04-07 op timing it causes the server process to exit with "fatal in
89 8036523f 2022-04-07 op client_by_id: invalid id X"
90 8036523f 2022-04-07 op
91 74994ae7 2022-02-26 op 2022-02-26 Omar Polo <op@omarpolo.com>
92 74994ae7 2022-02-26 op
93 74994ae7 2022-02-26 op * parse.y: add the types block
94 74994ae7 2022-02-26 op
95 cd3e28ff 2022-02-26 op 2022-02-13 Omar Polo <op@omarpolo.com>
96 c273bc0e 2022-02-13 op
97 c273bc0e 2022-02-13 op * sandbox.c (filter): tightens seccomp policy wrt openat: allow
98 c273bc0e 2022-02-13 op only with the O_RDONLY flag.
99 c273bc0e 2022-02-13 op
100 67347fb0 2022-02-13 op 2022-02-13 Tobias Berger <tobi.berger13@gmail.com>
101 67347fb0 2022-02-13 op
102 67347fb0 2022-02-13 op * sandbox.c (filter): allow fstatat64, llseek and sigreturn;
103 67347fb0 2022-02-13 op needed by glibc on armv7
104 67347fb0 2022-02-13 op
105 b4b432e7 2022-02-10 op 2022-02-10 Omar Polo <op@omarpolo.com>
106 b4b432e7 2022-02-10 op
107 b4b432e7 2022-02-10 op * configure (VERSION): 1.8.1 tagged
108 b4b432e7 2022-02-10 op
109 b4b432e7 2022-02-10 op * sandbox.c (open_landlock): fix landlock usage
110 b4b432e7 2022-02-10 op
111 d23cd12c 2022-01-30 op 2022-01-30 Omar Polo <op@omarpolo.com>
112 a14b9f77 2022-01-30 op
113 a14b9f77 2022-01-30 op * configure (VERSION): 1.8 “Lightbulb Sun” tagged
114 d23cd12c 2022-01-30 op
115 d23cd12c 2022-01-30 op * proxy.c (proxy_setup_tls): allow to specify a custom hostname as SNI for the TLS handshake with the proxied host.
116 d23cd12c 2022-01-30 op
117 6effb781 2021-01-02 op 2022-01-02 Omar Polo <op@omarpolo.com>
118 6effb781 2021-01-02 op
119 6effb781 2021-01-02 op * server.c (matched_proxy): allow to specify multiple proxy blocks and add matching rules
120 6effb781 2021-01-02 op
121 6effb781 2021-01-02 op * parse.y (servbody): relax the strict ordering of options, location and proxy blocks
122 6effb781 2021-01-02 op
123 5df593f3 2021-01-02 op 2022-01-01 Omar Polo <op@omarpolo.com>
124 a9cb709d 2021-01-01 op
125 a9cb709d 2021-01-01 op * proxy.c (proxy_init): add support for client certificate when proxying
126 a9cb709d 2021-01-01 op
127 cc1c8f54 2021-01-01 op 2021-12-29 Omar Polo <op@omarpolo.com>
128 cc1c8f54 2021-01-01 op
129 cc1c8f54 2021-01-01 op * proxy.c (proxy_init): add proxying support via `proxy relay-to'
130 cc1c8f54 2021-01-01 op
131 fe903d30 2021-12-11 op 2021-12-11 Max <vdrummer@posteo.net>
132 fe903d30 2021-12-11 op
133 fe903d30 2021-12-11 op * sandbox.c (filter): [seccomp]: allow ugetrlimit(2), needed by glibc on armv7l
134 fe903d30 2021-12-11 op
135 34c4ca6e 2021-12-09 op 2021-12-09 Omar Polo <op@omarpolo.com>
136 34c4ca6e 2021-12-09 op
137 52c92ef6 2021-12-09 op * server.c (client_read): don't check if the port in the request is the same we're listening on. Suggested by Allen Sobot, thanks!
138 34c4ca6e 2021-12-09 op * configure: add --prefix=... long argument.
139 34c4ca6e 2021-12-09 op
140 aa76c675 2021-11-16 op 2021-11-16 Omar Polo <op@omarpolo.com>
141 aa76c675 2021-11-16 op
142 e2534fd1 2022-01-06 op * configure (singletest): fix the cross-compilation: don't run the test binaries just built. Suggested by Nikolay Korotkiy (@sikmir), thanks!
143 aa76c675 2021-11-16 op
144 eaa02ac8 2021-10-24 op 2021-10-24 Omar Polo <op@omarpolo.com>
145 eaa02ac8 2021-10-24 op
146 eaa02ac8 2021-10-24 op * log.c (log_request): fix "double slash" in logs: gmid ended up printing two slashes between the hostname and the path when logging the request IRI.
147 eaa02ac8 2021-10-24 op
148 818d6aee 2021-10-15 op 2021-10-15 Stephen Gregoratto <dev@sgregoratto.me>
149 818d6aee 2021-10-15 op
150 818d6aee 2021-10-15 op * gmid.c (add_keypair): implement OCSP stapling support
151 818d6aee 2021-10-15 op
152 2ae10bb4 2021-10-13 op 2021-10-13 Omar Polo <op@omarpolo.com>
153 2ae10bb4 2021-10-13 op
154 2ae10bb4 2021-10-13 op * server.c (do_accept): don't die on ECONNABORTED (``Software caused connection abort'')
155 2ae10bb4 2021-10-13 op
156 536026c5 2021-10-11 op 2021-10-11 Omar Polo <op@omarpolo.com>
157 536026c5 2021-10-11 op
158 536026c5 2021-10-11 op * contrib/renew-certs: add script to automatically renew self-signed certificates
159 536026c5 2021-10-11 op
160 d7e2e22c 2021-10-09 op 2021-10-09 Omar Polo <op@omarpolo.com>
161 f0a01fc7 2021-10-09 op
162 f0a01fc7 2021-10-09 op * parse.y (print_conf): multiple -n to dump the parsed configuration
163 d7e2e22c 2021-10-09 op
164 d7e2e22c 2021-10-09 op * contrib/gencert: add gencert, a simple script to generate self-signed certs
165 d7e2e22c 2021-10-09 op
166 c1272f63 2021-10-04 op 2021-10-04 Omar Polo <op@omarpolo.com>
167 2072343d 2021-10-04 op
168 2072343d 2021-10-04 op * regress/lib.sh (raw): reduced the timeout time for single checks from 30 to 10 seconds
169 c1272f63 2021-10-04 op
170 c1272f63 2021-10-04 op * regress/runtime: regression test restructured. still implemented as a set of POSIX-scripts
171 c1272f63 2021-10-04 op
172 a49800c8 2021-10-02 op 2021-10-02 Omar Polo <op@omarpolo.com>
173 a49800c8 2021-10-02 op
174 a49800c8 2021-10-02 op * server.c (client_read): reworked the internal structure. Now we leverage libevent' bufferevents more.
175 a49800c8 2021-10-02 op (cgi_read): be more strict with CGI scripts: don't pass through illegal CGI responses.
176 a49800c8 2021-10-02 op
177 2a44a2ab 2021-09-26 op 2021-09-26 Omar Polo <op@omarpolo.com>
178 2a44a2ab 2021-09-26 op
179 2a44a2ab 2021-09-26 op * fcgi.c (fcgi_req): the FastCGI implementation is fully asynchronous
180 2a44a2ab 2021-09-26 op
181 0d9a5b7a 2021-09-24 op 2021-09-24 Omar Polo <op@omarpolo.com>
182 0d9a5b7a 2021-09-24 op
183 0d9a5b7a 2021-09-24 op * configure (VERSION): 1.7.4 tagged
184 775ef04f 2021-09-24 op
185 775ef04f 2021-09-24 op * server.c (check_for_cgi): fix out-of-bound access, found with lots of help from cage, thanks!
186 0d9a5b7a 2021-09-24 op
187 fba809b5 2021-09-19 op 2021-09-19 Omar Polo <op@omarpolo.com>
188 36d2d7b4 2021-09-19 op
189 36d2d7b4 2021-09-19 op * sandbox.c (gmid_create_landlock_rs): [linux] use landlock on the server and logger process to reduce the fs access
190 fba809b5 2021-09-19 op
191 fba809b5 2021-09-19 op * configure (VERSION): 1.7.3 tagged
192 fba809b5 2021-09-19 op
193 b03b7d5b 2021-09-17 op 2021-09-17 Omar Polo <op@omarpolo.com>
194 b03b7d5b 2021-09-17 op
195 b03b7d5b 2021-09-17 op * log.c (logger_main): fix syslog logging on FreeBSD
196 f2478b33 2021-08-23 op
197 39c5bfd6 2021-09-18 op 2021-08-24 Omar Polo <op@omarpolo.com>
198 b03b7d5b 2021-09-17 op
199 f2478b33 2021-08-23 op * gmid.c (main): don't crash on -n without -c
200 f2478b33 2021-08-23 op
201 03747a6c 2021-07-29 op 2021-07-29 Anna “CyberTailor”
202 03747a6c 2021-07-29 op
203 03747a6c 2021-07-29 op * gmid.1: document logging, openssl key generation example, spelling/grammar and crosslinks
204 03747a6c 2021-07-29 op
205 2887c631 2021-07-27 op 2021-07-27 Omar Polo <op@omarpolo.com>
206 2887c631 2021-07-27 op
207 2887c631 2021-07-27 op * server.c (check_path): allow symlinks
208 ca3d8bfd 2021-09-18 op
209 ca3d8bfd 2021-09-18 op 2021-07-23 Omar Polo <op@omarpolo.com>
210 ca3d8bfd 2021-09-18 op
211 ca3d8bfd 2021-09-18 op * sandbox.c: seccomp allow fstat64 (used by glibc an aarch64). Reported by pine, thanks!
212 2887c631 2021-07-27 op
213 735336b2 2021-07-19 op 2021-07-19 Omar Polo <op@omarpolo.com>
214 735336b2 2021-07-19 op
215 735336b2 2021-07-19 op * gmid.c (setup_configless): unbreak configless mode
216 735336b2 2021-07-19 op
217 a7da5571 2021-07-13 op 2021-07-13 Anna “CyberTailor”
218 a7da5571 2021-07-13 op
219 a7da5571 2021-07-13 op * parse.y (yyerror): error and warning messages are prefixed with "error:" and "warning:"
220 a7da5571 2021-07-13 op (yywarn): fix off-by-one line number in warnings
221 a7da5571 2021-07-13 op
222 8068d2ff 2021-07-11 op 2021-07-11 Omar Polo <op@omarpolo.com>
223 8068d2ff 2021-07-11 op
224 8068d2ff 2021-07-11 op * configure (VERSION): 1.7.1 tagged
225 8068d2ff 2021-07-11 op
226 094bdacd 2021-07-11 op 2021-07-11 Anna “CyberTailor”
227 094bdacd 2021-07-11 op
228 094bdacd 2021-07-11 op * gmid.1 (common): fix misleading example in man page: macros names may not be reserved words
229 094bdacd 2021-07-11 op
230 b79b2d81 2021-07-10 op 2021-07-10 Omar Polo <op@omarpolo.com>
231 b79b2d81 2021-07-10 op
232 b79b2d81 2021-07-10 op * configure (VERSION): 1.7 tagged
233 b79b2d81 2021-07-10 op
234 c39be742 2021-07-09 op 2021-07-09 Omar Polo <op@omarpolo.com>
235 c39be742 2021-07-09 op
236 c39be742 2021-07-09 op * parse.y (STRING): add `include' directive
237 9f075bd6 2021-07-09 op (yylex): add @-macros (real macros)
238 c39be742 2021-07-09 op
239 d19951cf 2021-07-09 op 2021-07-08 Omar Polo <op@omarpolo.com>
240 d19951cf 2021-07-09 op
241 d19951cf 2021-07-09 op * parse.y (option): rename `mime MIME EXT' to `map MIME to-ext EXT', but retain the old `mime' for compatibility.
242 d19951cf 2021-07-09 op
243 6edcfca9 2021-07-06 op 2021-07-06 Omar Polo <op@omarpolo.com>
244 321341f6 2021-07-06 op
245 321341f6 2021-07-06 op * regress/gg.c (main): add -T timeout
246 6edcfca9 2021-07-06 op
247 6edcfca9 2021-07-06 op * configure (guessing_cflags): try to preserve CFLAGS/LDFLAGS
248 6edcfca9 2021-07-06 op
249 137def5f 2021-07-02 op 2021-07-02 Omar Polo <op@omarpolo.com>
250 137def5f 2021-07-02 op
251 137def5f 2021-07-02 op * sandbox.c (filter): seccomp filter reworked: now it should work on x86 and possibly other arches too!
252 137def5f 2021-07-02 op
253 5777923b 2021-06-29 op 2021-06-29 Omar Polo <op@omarpolo.com>
254 6b86655a 2021-06-29 op
255 6b86655a 2021-06-29 op * parse.y (conf): don't require the strict order macro > options > servers
256 98f52178 2021-06-29 op c-like strings: when two or more strings are next to each others, concat them
257 f98e9045 2021-06-29 op
258 f98e9045 2021-06-29 op * gmid.c (main): add -D to define macros from the cmd line
259 3b21cca3 2021-06-29 op
260 3b21cca3 2021-06-29 op * parse.y (yylex): allow to define macros in the config file
261 5777923b 2021-06-29 op
262 5777923b 2021-06-29 op * gmid.c (main): use getopt_long, add --help as synonym of -h and -V/--version
263 5777923b 2021-06-29 op
264 2c43dcce 2021-06-17 op 2021-06-17 Omar Polo <op@omarpolo.com>
265 2c43dcce 2021-06-17 op
266 2c43dcce 2021-06-17 op * gmid.1: document `log' option
267 2c43dcce 2021-06-17 op
268 74f0778b 2021-06-16 op 2021-06-16 Omar Polo <op@omarpolo.com>
269 74f0778b 2021-06-16 op
270 74f0778b 2021-06-16 op * parse.y (yylex): drop the dependency on lex by implementing
271 74f0778b 2021-06-16 op yylex by ourselves (the actual implementation is based off doas'
272 74f0778b 2021-06-16 op parse.y). This gave us various benefits, like cleaner code, \ to
273 74f0778b 2021-06-16 op break long lines, better handling of quotes etc...
274 74f0778b 2021-06-16 op
275 f740b61b 2021-06-11 op 2021-06-11 Omar Polo <op@omarpolo.com>
276 c92b802b 2021-06-11 op
277 c92b802b 2021-06-11 op * parse.y (servopt): add `param' keyword
278 f740b61b 2021-06-11 op
279 f740b61b 2021-06-11 op * fcgi.c (send_fcgi_req): send GATEWAY_INTERFACE, AUTH_TYPE,
280 f740b61b 2021-06-11 op REMOTE_USER, TLS_CLIENT_ISSUER, TLS_CLIENT_HASH, TLS_VERSION,
281 f740b61b 2021-06-11 op TLS_CIPHER, TLS_CIPHER_STRENGTH and TLS_CLIENT_NOT_BEFORE/AFTER.
282 f740b61b 2021-06-11 op (send_fcgi_req): support a custom list of params
283 f740b61b 2021-06-11 op
284 3a1bd9ab 2021-05-27 op 2021-05-24 Omar Polo <op@omarpolo.com>
285 3a1bd9ab 2021-05-27 op
286 3a1bd9ab 2021-05-27 op * gg.c: move `gg' to regress, as it's only used for the tests
287 3a1bd9ab 2021-05-27 op
288 1eb3631d 2021-05-12 op 2021-05-12 Omar Polo <op@omarpolo.com>
289 1eb3631d 2021-05-12 op
290 1eb3631d 2021-05-12 op * 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
291 1eb3631d 2021-05-12 op
292 84821dc0 2021-05-09 op 2021-05-09 Omar Polo <op@omarpolo.com>
293 84821dc0 2021-05-09 op
294 84821dc0 2021-05-09 op * server.c (apply_fastcgi): added fastcgi support!
295 84821dc0 2021-05-09 op
296 419e32b0 2021-05-03 op 2021-05-03 Omar Polo <op@omarpolo.com>
297 419e32b0 2021-05-03 op
298 419e32b0 2021-05-03 op * parse.y: errors on duplicate values instead of silently using only the last value.
299 419e32b0 2021-05-03 op
300 fdea6aa0 2021-04-30 op 2021-04-30 Omar Polo <op@omarpolo.com>
301 737a6b50 2021-04-30 op
302 737a6b50 2021-04-30 op * server.c (fmt_sbuf): ensure %p (path) is always absolute
303 fdea6aa0 2021-04-30 op
304 fdea6aa0 2021-04-30 op * gmid.c (load_vhosts): allow ``root'' rule to be specified per-location block
305 fdea6aa0 2021-04-30 op
306 cc8c2901 2021-04-29 op 2021-04-29 Omar Polo <op@omarpolo.com>
307 cc8c2901 2021-04-29 op
308 cc8c2901 2021-04-29 op * parse.y (servopt): added ``alias'' option to define hostname aliases for a server
309 cc8c2901 2021-04-29 op
310 8e8b2e25 2021-04-28 op 2021-04-28 Omar Polo <op@omarpolo.com>
311 8e8b2e25 2021-04-28 op
312 8e8b2e25 2021-04-28 op * gmid.c (main): pidfile support with `-P pidfile'
313 8e8b2e25 2021-04-28 op
314 e6ca8eb1 2021-04-28 op 2021-04-27 Omar Polo <op@omarpolo.com>
315 9cc630aa 2021-04-28 op
316 9cc630aa 2021-04-28 op * parse.y (servopt): added ``env'' option to define environment vars for CGI scripts
317 e6ca8eb1 2021-04-28 op
318 e6ca8eb1 2021-04-28 op * log.c (fatal): lower the log priority for fatal errors from CRIT to ERR
319 e6ca8eb1 2021-04-28 op
320 11c98667 2021-04-25 op 2021-04-25 Omar Polo <op@omarpolo.com>
321 11c98667 2021-04-25 op
322 11c98667 2021-04-25 op * server.c (open_dir): sort the auto index alphabetically
323 11c98667 2021-04-25 op
324 4d820b6c 2021-04-21 op 2021-04-21 Omar Polo <op@omarpolo.com>
325 4d820b6c 2021-04-21 op
326 4d820b6c 2021-04-21 op * mime.c (load_default_mime): use `text/x-patch' for .patch and .diff files
327 4d820b6c 2021-04-21 op
328 b3342582 2021-04-14 op 2021-04-14 Omar Polo <op@omarpolo.com>
329 b3342582 2021-04-14 op
330 b3342582 2021-04-14 op * log.c (handle_imsg_log): print the datetime when logging to stderr
331 b3342582 2021-04-14 op
332 89541eee 2021-04-13 op 2021-04-13 Omar Polo <op@omarpolo.com>
333 89541eee 2021-04-13 op
334 89541eee 2021-04-13 op * ex.c (launch_cgi): define TLS_VERSION, TLS_CIPHER and TLS_CIPHER_STRENGTH for CGI scripts
335 89541eee 2021-04-13 op
336 b211d0f7 2021-04-12 op 2021-04-12 Omar Polo <op@omarpolo.com>
337 b211d0f7 2021-04-12 op
338 b211d0f7 2021-04-12 op * 1.6.1 tagged
339 b211d0f7 2021-04-12 op
340 b211d0f7 2021-04-12 op * iri.c (path_clean): fix possible infinite loop in the IRI parsing code.
341 b211d0f7 2021-04-12 op
342 e0ebdf2d 2021-03-31 op 2021-03-31 Omar Polo <op@omarpolo.com>
343 e0ebdf2d 2021-03-31 op
344 b8e64ccd 2021-03-31 op * gmid.h (struct vhost): remove limits on the number of vhosts and location blocks
345 b8e64ccd 2021-03-31 op
346 e0ebdf2d 2021-03-31 op * gmid.c (mkdirs): fix recursive mkdirs for configless mode
347 e0ebdf2d 2021-03-31 op
348 33b455ad 2021-03-31 op 2021-03-29 Omar Polo <op@omarpolo.com>
349 33b455ad 2021-03-31 op
350 33b455ad 2021-03-31 op * Makefile (static): fixed `static' target
351 33b455ad 2021-03-31 op
352 33b455ad 2021-03-31 op 2021-03-29 kornellapacz @ github
353 33b455ad 2021-03-31 op
354 33b455ad 2021-03-31 op * Dockerfile: add missing libevent-dev dependency, thanks!
355 33b455ad 2021-03-31 op
356 c836cdfa 2021-03-29 op 2021-03-27 Omar Polo <op@omarpolo.com>
357 c836cdfa 2021-03-29 op
358 c836cdfa 2021-03-29 op * gmid.h (struct client): correctly handle CGI scripts that replies with the maximum header length allowed
359 c836cdfa 2021-03-29 op
360 7e3aaf37 2021-03-20 op 2021-03-20 Omar Polo <op@omarpolo.com>
361 7e3aaf37 2021-03-20 op
362 c8249bad 2021-03-20 op * 1.6 tagged
363 c8249bad 2021-03-20 op
364 7e3aaf37 2021-03-20 op * sandbox.c (sandbox_logger_process): add capsicum to the logger process
365 7e3aaf37 2021-03-20 op
366 ad5301d1 2021-03-20 op 2021-03-19 Omar Polo <op@omarpolo.com>
367 ad5301d1 2021-03-20 op
368 ad5301d1 2021-03-20 op * gmid.c (main): use imsg for all IPC; only the main process
369 ad5301d1 2021-03-20 op listens for SIGHUP: this means that finally the config reload will
370 ad5301d1 2021-03-20 op work with OpenBSD' rc (and probably other service manager too)
371 ad5301d1 2021-03-20 op
372 793835cb 2021-02-23 op 2021-02-22 Omar Polo <op@omarpolo.com>
373 793835cb 2021-02-23 op
374 793835cb 2021-02-23 op * log.c (log_request): add `log on/off' to enable/disable logs per-server or per-location
375 793835cb 2021-02-23 op
376 02be96c6 2021-02-09 op 2021-02-09 Omar Polo <op@omarpolo.com>
377 02be96c6 2021-02-09 op
378 02be96c6 2021-02-09 op * parse.y (locopt): add `require client ca' rule to require client certs signed by a specified CA
379 02be96c6 2021-02-09 op
380 a709ddf5 2021-02-07 op 2021-02-07 Omar Polo <op@omarpolo.com>
381 a709ddf5 2021-02-07 op
382 9f006a21 2021-02-07 op * ex.c (do_exec): [cgi] split the query in words if needed and add them to the argv
383 b63e30ff 2021-02-07 op (launch_cgi): define TLS_CLIENT_NOT_BEFORE/NOT_AFTER in CGI scripts
384 9f006a21 2021-02-07 op
385 a709ddf5 2021-02-07 op * parse.y (option): added prefork option
386 a709ddf5 2021-02-07 op
387 6abda252 2021-02-06 op 2021-02-06 Omar Polo <op@omarpolo.com>
388 6abda252 2021-02-06 op
389 6abda252 2021-02-06 op * parse.y (locopt): added ``block return'' and ``strip'' options
390 e3ddf390 2021-02-06 op (servopt): add the ``entrypoint'' option
391 6abda252 2021-02-06 op
392 8404ec30 2021-02-05 op 2021-02-05 Omar Polo <op@omarpolo.com>
393 8404ec30 2021-02-05 op
394 8404ec30 2021-02-05 op * 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.
395 8404ec30 2021-02-05 op
396 ca21e100 2021-02-04 op 2021-02-04 Omar Polo <op@omarpolo.com>
397 ca21e100 2021-02-04 op
398 ca21e100 2021-02-04 op * gmid.c (main): reload configuration on SIGHUP, without disconnecting the clients
399 ca21e100 2021-02-04 op
400 5f715ce4 2021-02-02 op 2021-02-02 Omar Polo <op@omarpolo.com>
401 5f715ce4 2021-02-02 op
402 5f715ce4 2021-02-02 op * server.c (handle_dirlist_head): print the header in the directory listing
403 87f2b68b 2021-02-02 op (open_file): cgi follows globbing rules, just like location and hostname matching
404 5f715ce4 2021-02-02 op
405 e17642a7 2021-02-01 op 2021-02-01 Omar Polo <op@omarpolo.com>
406 e17642a7 2021-02-01 op
407 e17642a7 2021-02-01 op * parse.y (servopt): require absolute paths in config file
408 e17642a7 2021-02-01 op
409 ee29b5a6 2021-01-31 op 2021-01-31 Omar Polo <op@omarpolo.com>
410 ee29b5a6 2021-01-31 op
411 ee29b5a6 2021-01-31 op * gmid.c (main): cgi scripts now have only std{in,out,err} open
412 ee29b5a6 2021-01-31 op
413 e9992347 2021-01-30 op 2021-01-30 Omar Polo <op@omarpolo.com>
414 e9992347 2021-01-30 op
415 38f8a798 2021-02-01 op * 1.5 tagged
416 e9992347 2021-01-30 op * server.c: change precedence of location rules
417 e9992347 2021-01-30 op
418 dceca3b6 2021-01-29 op 2021-01-29 Omar Polo <op@omarpolo.com>
419 dceca3b6 2021-01-29 op
420 dceca3b6 2021-01-29 op * iri.c (parse_authority): accept a wider range of unicode
421 dceca3b6 2021-01-29 op codepoints while parsing the host name.
422 dceca3b6 2021-01-29 op
423 3300cbe0 2021-01-27 op 2021-01-26 Omar Polo <op@omarpolo.com>
424 3300cbe0 2021-01-27 op
425 3300cbe0 2021-01-27 op * puny.c (puny_decode): initial punycode support!
426 3300cbe0 2021-01-27 op
427 145ba43e 2021-01-25 op 2021-01-25 Omar Polo <op@omarpolo.com>
428 145ba43e 2021-01-25 op
429 a5d04ea0 2021-01-25 op * gmid.1: manpage improvements (example and usage)
430 a5d04ea0 2021-01-25 op
431 a5d04ea0 2021-01-25 op * gmid.c (main): Dropping -C, -K, -f, changing the meaning of -d:
432 a5d04ea0 2021-01-25 op now it's the certificate directory. Serve the directory given as
433 a5d04ea0 2021-01-25 op positional argument (or the current one) when running in
434 a5d04ea0 2021-01-25 op config-less mode.
435 a5d04ea0 2021-01-25 op (gen_certificate): automatically generate a certificate
436 a5d04ea0 2021-01-25 op
437 145ba43e 2021-01-25 op * parse.y (option): added chroot and user options
438 145ba43e 2021-01-25 op
439 ba7b2faa 2021-01-24 op 2021-01-24 Omar Polo <op@omarpolo.com>
440 ba7b2faa 2021-01-24 op
441 252908e6 2021-01-24 op * server.c (open_dir): add directory listing (disabled by default)
442 252908e6 2021-01-24 op
443 c8b74339 2021-01-24 op * parse.y (vhost): added support for location blocks
444 c8b74339 2021-01-24 op
445 ba7b2faa 2021-01-24 op * server.c (send_dir): make the directory index customizable
446 ba7b2faa 2021-01-24 op
447 ba7b2faa 2021-01-24 op 2021-01-23 Omar Polo <op@omarpolo.com>
448 ba7b2faa 2021-01-24 op
449 ba7b2faa 2021-01-24 op * gg.c (main): added gg, a barebone gemini client. used by the
450 ba7b2faa 2021-01-24 op regress suite
451 ba7b2faa 2021-01-24 op
452 1213c735 2021-01-21 op 2021-01-21 Omar Polo <op@omarpolo.com>
453 1213c735 2021-01-21 op
454 0ac2dcec 2021-01-21 op * configure: added a configure script
455 0ac2dcec 2021-01-21 op
456 1213c735 2021-01-21 op * server.c (handle_handshake): glob for vhost domain
457 1213c735 2021-01-21 op
458 1213c735 2021-01-21 op * gmid.c (log_request): logs the full IRI and the response code (even for CGI)
459 1213c735 2021-01-21 op
460 17b09e3c 2021-01-18 op 2021-01-19 Omar Polo <op@omarpolo.com>
461 17b09e3c 2021-01-18 op
462 05c23a54 2021-01-19 op * parse.y (servopt): add "lang" server option
463 6119e13e 2021-01-19 op (servopt): moving "default type" from global options to server options
464 05c23a54 2021-01-19 op
465 17b09e3c 2021-01-18 op * Dockerfile: add a dockerfile
466 17b09e3c 2021-01-18 op
467 e7ecf9a5 2021-01-18 op 2021-01-18 Omar Polo <op@omarpolo.com>
468 e7ecf9a5 2021-01-18 op
469 d89aa763 2021-01-18 op * parse.y (option): add mime and "default type" options for media types.
470 e7ecf9a5 2021-01-18 op
471 7a11e8a5 2021-01-17 op 2021-01-17 Omar Polo <op@omarpolo.com>
472 7a11e8a5 2021-01-17 op
473 7a11e8a5 2021-01-17 op * sandbox.c (sandbox): added initial seccomp(2) support
474 7a11e8a5 2021-01-17 op
475 15902770 2021-01-15 op 2021-01-15 Omar Polo <op@omarpolo.com>
476 15902770 2021-01-15 op
477 bd726b55 2021-01-15 op * cgi.c (start_cgi): set SERVER_NAME to the vhost when executing CGI scripts
478 bd726b55 2021-01-15 op
479 5bc3c98e 2021-01-15 op * parse.y (option): add ability to specify the tls versions with "protocols"
480 5bc3c98e 2021-01-15 op
481 8696c5ea 2021-01-15 op * gmid.c (handle_open_conn): ensure the port number of the request matches
482 8696c5ea 2021-01-15 op
483 dafb57b8 2021-01-15 op * sandbox.c (sandbox): sandbox on OpenBSD (pledge/unveil, as before) and on FreeBSD (capsicum) too
484 dafb57b8 2021-01-15 op
485 6214c127 2021-01-15 op * sample.conf: added sample configuration
486 6214c127 2021-01-15 op
487 15902770 2021-01-15 op * gmid.c (main): changed behaviour: daemon off by default
488 15902770 2021-01-15 op (main): changed -c in -C (cert option)
489 15902770 2021-01-15 op (main): changed -k in -K (key option, for consistency with -C)
490 15902770 2021-01-15 op (main): added -c to load a configuration
491 15902770 2021-01-15 op (main): certs, key and doc (-C -K and -d) doesn't have a default value anymore
492 15902770 2021-01-15 op (handle_handshake): add vhosts support
493 15902770 2021-01-15 op
494 9939ddcf 2021-01-13 op 2021-01-13 Omar Polo <op@omarpolo.com>
495 9939ddcf 2021-01-13 op
496 9939ddcf 2021-01-13 op * iri.c (parse_scheme): normalize scheme while parsing, so we're
497 9939ddcf 2021-01-13 op RFC3986 compliant.
498 9939ddcf 2021-01-13 op
499 85dff1f9 2021-01-11 op 2021-01-11 Omar Polo <op@omarpolo.com>
500 85dff1f9 2021-01-11 op
501 9939ddcf 2021-01-13 op * 1.4 and 1.4.1 tagged
502 9939ddcf 2021-01-13 op
503 85dff1f9 2021-01-11 op * gmid.c (main): ipv6 disabled by default and -6 flag to enable it
504 7b1d9790 2021-01-11 op (handle): reject non-gemini protocols with 53
505 85dff1f9 2021-01-11 op
506 709d6e5e 2021-01-10 op 2021-01-10 Omar Polo <op@omarpolo.com>
507 709d6e5e 2021-01-10 op
508 709d6e5e 2021-01-10 op * gmid.c (logs): log also the port of the client
509 33756bd2 2021-01-10 op (loop): accept both ipv4 and ipv6
510 709d6e5e 2021-01-10 op
511 60ff0355 2020-12-26 op 2020-12-26 Omar Polo <op@omarpolo.com>
512 60ff0355 2020-12-26 op
513 60ff0355 2020-12-26 op * uri.c (parse_uri): IRI support
514 60ff0355 2020-12-26 op
515 4f12842d 2020-12-21 op 2020-12-21 Omar Polo <op@omarpolo.com>
516 4f12842d 2020-12-21 op
517 4f12842d 2020-12-21 op * gmid.c (main): -d supports relative paths
518 4f12842d 2020-12-21 op
519 d7802bb4 2020-12-02 op 2020-12-02 Omar Polo <op@omarpolo.com>
520 d7802bb4 2020-12-02 op
521 d7802bb4 2020-12-02 op * gmid.c: logging reworked and daemonize. The -l option was
522 d7802bb4 2020-12-02 op removed: now it logs on syslog if -f (foreground) is not passed.
523 d7802bb4 2020-12-02 op
524 ae2ad03e 2020-11-18 op 2020-11-18 Omar Polo <op@omarpolo.com>
525 ae2ad03e 2020-11-18 op
526 c603f126 2020-11-18 op * 1.3.2 tagged
527 c603f126 2020-11-18 op
528 c603f126 2020-11-18 op * gmid.c (url_after_proto): fix bug introduced in last version
529 c603f126 2020-11-18 op regarding full URLs with explicit gemini protocol.
530 c603f126 2020-11-18 op
531 dd389558 2020-11-18 op * 1.3.1 tagged
532 dd389558 2020-11-18 op
533 ae2ad03e 2020-11-18 op * gmid.c (url_after_proto): correct url parsing: accept URLs
534 ae2ad03e 2020-11-18 op without explicit protocol
535 dd389558 2020-11-18 op (url_start_of_request): correct handling of relative URLs
536 ae2ad03e 2020-11-18 op
537 721e2325 2020-11-18 op 2020-11-17 Omar Polo <op@omarpolo.com>
538 721e2325 2020-11-18 op
539 721e2325 2020-11-18 op * gmid.c (main): add flag -p to change the port
540 721e2325 2020-11-18 op
541 a5d310bc 2020-11-10 op 2020-11-10 Omar Polo <op@omarpolo.com>
542 a5d310bc 2020-11-10 op
543 d431188c 2020-11-10 op * ChangeLog: 1.3 tagged, fixed ChangeLog format
544 d431188c 2020-11-10 op
545 a5d310bc 2020-11-10 op * gmid.c (open_file): added support for path parameters for CGI
546 a5d310bc 2020-11-10 op scripts
547 a5d310bc 2020-11-10 op
548 3c19febb 2020-11-06 op 2020-11-06 Omar Polo <op@omarpolo.com>
549 3c19febb 2020-11-06 op
550 0ed56567 2020-11-06 op * gmid.1: great improvements to the documentation
551 0ed56567 2020-11-06 op
552 3c19febb 2020-11-06 op * gmid.c (url_after_proto): ensure that the requested protocol is
553 3c19febb 2020-11-06 op “gemini” and not something else that’s long 6 bytes.
554 3c19febb 2020-11-06 op
555 aff8d190 2020-11-06 op * gmid.c (loop): added support for cgi scripts (can handle multiple
556 aff8d190 2020-11-06 op concurrently)
557 aff8d190 2020-11-06 op
558 2c3a40fa 2020-11-06 op 2020-11-06 Omar Polo <op@venera>
559 2c3a40fa 2020-11-06 op
560 2c3a40fa 2020-11-06 op * gmid.1: added option to log to a file
561 2c3a40fa 2020-11-06 op
562 dd080e1f 2020-11-05 op 2020-11-05 Omar Polo <op@omarpolo.com>
563 dd080e1f 2020-11-05 op
564 dd080e1f 2020-11-05 op * gmid.c (filetypes): add MIME type for xml files
565 dd080e1f 2020-11-05 op
566 19f68393 2020-11-03 op 2020-11-03 Omar Polo <op@omarpolo.com>
567 19f68393 2020-11-03 op
568 19f68393 2020-11-03 op * 1.2 tagged
569 19f68393 2020-11-03 op
570 d431188c 2020-11-10 op * gmid.c (main): ignore SIGPIPE
571 d431188c 2020-11-10 op
572 2b897a2c 2020-10-14 op 2020-10-14 Omar Polo <op@omarpolo.com>
573 2b897a2c 2020-10-14 op
574 4f6eb772 2020-10-14 op * 1.1 tagged
575 2b897a2c 2020-10-14 op
576 d431188c 2020-11-10 op * switching to mmap() based file handling
577 d431188c 2020-11-10 op
578 2b897a2c 2020-10-14 op 2020-10-07 Omar Polo <op@omarpolo.com>
579 2b897a2c 2020-10-14 op
580 2b897a2c 2020-10-14 op * 1.0 tagged