1 ae6870fa 2021-10-04 op => contrib.gmi contrib
2 7c6bf71d 2021-10-11 op => /quickstart.gmi Quickstart
3 ae6870fa 2021-10-04 op => /gmid.1.txt docs
7 ae6870fa 2021-10-04 op > A Gemini server
11 ae6870fa 2021-10-04 op * sandboxed by default on OpenBSD, FreeBSD and Linux
12 ae6870fa 2021-10-04 op * able to reload the configuration on-the-fly without loosing connections
13 ae6870fa 2021-10-04 op * punycode and IRI support
14 c3eb759a 2021-12-29 op * reverse proxying
15 ae6870fa 2021-10-04 op * CGI and FastCGI support
16 ae6870fa 2021-10-04 op * virtual hosts and per-location rules
17 ae6870fa 2021-10-04 op * low memory footprint
18 ae6870fa 2021-10-04 op * event-based asynchronous I/O model
19 ae6870fa 2021-10-04 op * rich configuration file
21 ae6870fa 2021-10-04 op => gmid.1.txt Read the manpage.
25 ae6870fa 2021-10-04 op Some distros provide a package — thanks to the maintainers!
27 ae6870fa 2021-10-04 op => https://repology.org/project/gmid/versions [https] Repology: packaging status for gmid
29 ae6870fa 2021-10-04 op Source code and precompiled binaries for linux are available:
31 e84ee6a7 2021-10-15 op => https://github.com/omar-polo/gmid/releases/download/1.7.5/gmid-1.7.5.tar.gz gmid-1.7.5.tar.gz
33 ae6870fa 2021-10-04 op => https://git.omarpolo.com/gmid/ git repository
34 ae6870fa 2021-10-04 op => gemini://git.omarpolo.com/gmid.git/ git repository via Gemini
35 ae6870fa 2021-10-04 op => https://github.com/omar-polo/gmid GitHub mirror
37 e84ee6a7 2021-10-15 op => https://github.com/omar-polo/gmid/releases/download/1.7.5/gmid.linux.aarch64 gmid.linux.aarch64
38 e84ee6a7 2021-10-15 op => https://github.com/omar-polo/gmid/releases/download/1.7.5/gmid.linux.amd64 gmid.linux.amd64
40 ae6870fa 2021-10-04 op When in doubt, compile from source: it’s easy and takes less than a minute on a raspberry pi 3. The dependencies are:
43 ae6870fa 2021-10-04 op * OpenSSL/LibreSSL
44 ae6870fa 2021-10-04 op * libtls (from either LibreSSL or LibreTLS)
45 ae6870fa 2021-10-04 op * yacc or GNU bison
47 ae6870fa 2021-10-04 op Once all the dependencies are installed, building is as easy as:
49 ae6870fa 2021-10-04 op ```Example of how to compile from source
50 e84ee6a7 2021-10-15 op $ curl -LO https://github.com/omar-polo/gmid/releases/download/1.7.5/gmid-1.7.5.tar.gz
51 e84ee6a7 2021-10-15 op $ tar xzvf gmid-1.7.5.tar.gz
52 e84ee6a7 2021-10-15 op $ cd gmid-1.7.5
55 ae6870fa 2021-10-04 op $ sudo make install # eventually
58 ae6870fa 2021-10-04 op A SHA256 file is available. However, that only checks for accidental corruption: you can use signify (SHA256.sig and the public key gmid-1.7.pub) or GPG. The hash of the signify public key is also included in the SHA256 file and thus signed with my GPG. The signify public key for the next release ‘gmid-1.8.pub’ is also included.
60 e84ee6a7 2021-10-15 op => https://github.com/omar-polo/gmid/releases/download/1.7.5/SHA256 SHA256
61 e84ee6a7 2021-10-15 op => https://github.com/omar-polo/gmid/releases/download/1.7.5/SHA256 SHA256.gpg
62 e84ee6a7 2021-10-15 op => https://github.com/omar-polo/gmid/releases/download/1.7.5/SHA256.sig SHA256.sig
64 ae6870fa 2021-10-04 op To verify the signatures with signify(1)
66 ae6870fa 2021-10-04 op ```Example of how to verify the signature with signify
67 ae6870fa 2021-10-04 op $ signify -C -p gmid-1.7.pub -x SHA256.sig
68 ae6870fa 2021-10-04 op Signature Verified
69 ae6870fa 2021-10-04 op gmid-1.7.pub: OK
70 e84ee6a7 2021-10-15 op gmid-1.7.5.tar.gz: OK
71 ae6870fa 2021-10-04 op gmid-1.8.pub: OK
72 ae6870fa 2021-10-04 op gmid.linux.aarch64: OK
73 ae6870fa 2021-10-04 op gmid.linux.amd64: OK
76 ae6870fa 2021-10-04 op ## Change log for the last versions
78 f8bcc138 2021-10-15 op 1.7.5 “Space-dye Vest” fifth bugfix release — Released October 15, 2021
80 e84ee6a7 2021-10-15 op This version includes the following bugfix
82 e84ee6a7 2021-10-15 op * don’t die when a connection is closed before being accepted by gmid (i.e. handle ‘ECONNRESET’)
87 ae6870fa 2021-10-04 op 1.7.4 “Space-dye Vest” fourth bugfix release — Released September 24, 2021
89 e84ee6a7 2021-10-15 op This version includes the following bugfix:
91 ae6870fa 2021-10-04 op * fix a possible out-of-bound access when handling a request for a non-existent file in the root directory of a vhost that's matched by the cgi option
93 ae6870fa 2021-10-04 op and the relative regression test.
98 ae6870fa 2021-10-04 op 1.7.3 “Space-dye Vest” third bugfix release — Released September 19, 2021
100 ae6870fa 2021-10-04 op ### Improvements
102 ae6870fa 2021-10-04 op * follows symlinks
103 ae6870fa 2021-10-04 op * improved documentation and added key generation example (thanks! Anna)
107 ae6870fa 2021-10-04 op * fix syslog logging on FreeBSD. Reported by Karl Jeacle, thanks!
108 ae6870fa 2021-10-04 op * don't crash if ``-c'' is missing in configtest mode (-n). Reported by heph, thanks!
109 ae6870fa 2021-10-04 op * allow fstat64 on linux (needed by glibc on aarch64). Reported by pine, thanks!
114 ae6870fa 2021-10-04 op 1.7.2 “Space-dye Vest” second bugfix release — Released July 19, 2021
116 ae6870fa 2021-10-04 op This version incudes the following bugfix:
118 ae6870fa 2021-10-04 op * an un-initialized field in the configless code path leads to a crash on the first request.
120 ae6870fa 2021-10-04 op and the relative regression test.
124 ae6870fa 2021-10-04 op 1.7.1 “Space-dye Vest” bugfix release — Released July 11, 2021
126 ae6870fa 2021-10-04 op This version includes two bugfixes:
127 ae6870fa 2021-10-04 op * use ${MAKE} to recursively call make.
128 ae6870fa 2021-10-04 op * fix the misleading example in the manpage: macros may not be reserved words
132 ae6870fa 2021-10-04 op 1.7 “Space-dye Vest” — Released July 10, 2021
134 ae6870fa 2021-10-04 op Starting from this version gmid doesn't depend on lex anymore, but yacc is still needed.
136 ae6870fa 2021-10-04 op ### New features
138 ae6870fa 2021-10-04 op * initial fastcgi support! (it's still young!)
139 ae6870fa 2021-10-04 op * added user-defined macros, either via ‘-Dname=val’ or directly in the configuration file.
140 ae6870fa 2021-10-04 op * new ‘include’ keyword to load additional configuration files.
141 ae6870fa 2021-10-04 op * new ‘env’ rule to define environment vars for CGI scripts.
142 ae6870fa 2021-10-04 op * new ‘alias’ rule to define hostname aliases for a server.
143 ae6870fa 2021-10-04 op * allow ‘root’ to be specified per-location block.
144 ae6870fa 2021-10-04 op * pidfile support with the new ‘-P’ cli flag.
145 ae6870fa 2021-10-04 op * define ‘TLS_VERSION’, ‘TLS_CIPHER’ and ‘TLS_CIPHER_STRENGTH’ for CGI scripts.
147 ae6870fa 2021-10-04 op ### Improvements
149 ae6870fa 2021-10-04 op * remove limits on the number of virtual hosts and location blocks that can be defined.
150 ae6870fa 2021-10-04 op * print the datetime when logging to stderr.
151 ae6870fa 2021-10-04 op * use ‘text/x-patch’ for ‘.patch’ and ‘.diff’ files.
152 ae6870fa 2021-10-04 op * sort the auto index alphabetically.
153 ae6870fa 2021-10-04 op * various improvements to the log management.
154 ae6870fa 2021-10-04 op * drop the dependency on lex.
155 ae6870fa 2021-10-04 op * added ‘--help’ as synonym of ‘-h’ and ‘-V’/‘--version‘ to print the version.
156 ae6870fa 2021-10-04 op * c-like handling of strings in the configuration file: when two or more strings are next to each-others, are automatically joined into a single string. This is particularly useful with $-macros.
158 ae6870fa 2021-10-04 op ### Bug fixes
160 ae6870fa 2021-10-04 op * correctly handle CGI scripts that replies with the maxium header length allowed.
161 ae6870fa 2021-10-04 op * fixed the static target.
162 ae6870fa 2021-10-04 op * fixed recursive mkdirs for configless mode (i.e. create ‘~/.local/share/gmid’)
163 ae6870fa 2021-10-04 op * logs sent to syslog now have proper priority (before every message ended up as LOG_CRIT). Found by Anna “CyberTailor”, thanks!
164 ae6870fa 2021-10-04 op * ensure ‘%p’ (path) is always absolute in ‘block return’ rules.
165 ae6870fa 2021-10-04 op * fix automatic certificate generation, it caused problems on some adroid devices. Found by Gnuserland, thanks!
166 ae6870fa 2021-10-04 op * document the ‘log’ rule.
167 ae6870fa 2021-10-04 op * the seccomp filter was reworked and now it's known to work properly on a vast range of architectures (to be more specific: all the architectures supported by alpine linux), see github issue #4. Prompted and tested by @begss, thanks!
168 ae6870fa 2021-10-04 op * various improvements to the configure script, notified and fixed by Anna “CyberTailor”, thanks!
169 ae6870fa 2021-10-04 op * added a timeout to the regression tests.
171 ae6870fa 2021-10-04 op ### Breaking changes
173 ae6870fa 2021-10-04 op * if duplicate rules are found in the configuration file, an error is now raised instead of silently using only the last value.
174 ae6870fa 2021-10-04 op * (sort of) ‘gg’ moved to ‘regress’ as it's only used in the regression suite.
175 ae6870fa 2021-10-04 op * (notice) the “mime "mime-type" "extension"” rule was deprecated and replaced by the new “map "mime-type" to-ext "extension"”. The ‘mime’ rule will be removed in a future version because its syntax is incompatible with the new string auto-concat mechanism.