1
0
Fork 0
Commit graph

30 commits

Author SHA1 Message Date
Solderpunk
44d72c2bf2 Make it clear what is wrong with a config file. 2020-06-04 20:36:03 +02:00
Solderpunk
93f3c9e620 Break handleGeminiRequest up into smaller, clearer functions. 2020-06-04 20:35:14 +02:00
Solderpunk
9c51f26d74 Do not crash if os.Stat returns an error other than not found or no permission, which seems to mysteriously happen sometimes... 2020-06-01 21:27:15 +02:00
Solderpunk
5fdb3622e9 Remove vestigial generic response code. 2020-06-01 21:23:24 +02:00
solderpunk
79dd948a9f Merge pull request 'Add initial systemd service example' (#3) from strega-nil/molly-brown:add-systemd into master 2020-05-23 11:21:25 -04:00
Solderpunk
d14198aeba Add missing import from previous commit. 2020-05-21 22:50:33 +02:00
Nicole Mazzuca
85a94a43b9 modify README 2020-05-21 10:15:24 -07:00
Nicole Mazzuca
dcf23cbd97 add initial systemd service example 2020-05-21 10:15:19 -07:00
Solderpunk
203c259e7f Honour port setting from config file. 2020-05-19 22:05:48 +02:00
Solderpunk
06809edfcc URL escape filenames in directory lisitngs. 2020-05-19 22:03:44 +02:00
Solderpunk
590aa672a2 Be more careful with permission issues on index.gmi 2020-05-17 14:12:11 +02:00
Solderpunk
1d0af7a541 Add example config file and expand README.me to document basic setup. 2020-03-28 21:38:33 +01:00
Solderpunk
db4ff190be Fix default port. 2020-03-24 22:05:26 +01:00
Solderpunk
8239e7fd3f Limit CGI processes to a particular path. 2020-01-12 13:39:38 +01:00
Solderpunk
cadb7b2ea5 Check CGI responses for a valid status code. 2020-01-12 12:51:38 +01:00
Solderpunk
40ad09f9bc Close stdin of CGI process after sending URL. 2019-11-30 19:52:20 +02:00
Solderpunk
0b4fefd0ba Terminate CGI processes after 10 seconds. 2019-11-24 21:05:32 +02:00
Solderpunk
efc1ecf7a7 Basic implementation of getting dynamic content from executables. 2019-11-24 20:24:35 +02:00
Solderpunk
10a169a7f3 Remove port number from hostname before comparing against configured hostname. 2019-11-24 12:29:38 +02:00
Solderpunk
c13acf9c4b Trying a different logging format... 2019-11-22 21:51:47 +02:00
Solderpunk
a67d1b113a Don't list dot files. 2019-11-22 21:35:51 +02:00
Solderpunk
0de58e031a Only list world readable files. 2019-11-21 23:03:39 +02:00
Solderpunk
23a6284cc4 Check that request hostname matches configured hostname. 2019-11-21 22:39:25 +02:00
Solderpunk
b3a87c3739 Serve files and directories. 2019-11-06 22:23:51 +02:00
Solderpunk
b4cbd47bce Defer sending log entry to channel. 2019-11-06 18:50:44 +02:00
Solderpunk
dc92fbd228 Set missing scheme to gemini://, and return status 53 for non-Gemini schemes. 2019-11-06 18:46:44 +02:00
Solderpunk
7566636c97 Add basic logging. 2019-11-06 18:38:41 +02:00
Solderpunk
0ddf8ca2ae Initial bare bones implementation. 2019-11-06 17:08:44 +02:00
Solderpunk
f686d23c40 Set copyright holder. 2019-11-06 17:07:01 +02:00
solderpunk
ff650fd7b6 Initial commit 2019-11-06 07:26:50 -05:00