37e177fbe0Move .molly file parsing function into config.go.
Solderpunk
2020-07-01 23:05:49 +0200
3cd4a072fdMore and better error logging.
Solderpunk
2020-07-01 22:58:07 +0200
f7e588dfaeMore and better error logging.
Solderpunk
2020-07-01 20:15:52 +0200
821a862036Use standard library logging facilities for error log.
Solderpunk
2020-07-01 19:57:39 +0200
3c4c447bd3Broader config file error handling.
Solderpunk
2020-07-01 19:56:43 +0200
54f659c03fAdd example OpenRC script, and put all init examples in a contrib directory.
Solderpunk
2020-07-01 17:00:18 +0200
2a263e5e70Rewrite SCGI support to use prefixes, not regexps, and provide the same SCRIPT_PATH / PATH_INFO break as CGI.
Solderpunk
2020-07-01 16:40:51 +0200
f4f14320dfExpand CGI path globs once on startup, not for each request.
Solderpunk
2020-07-01 16:18:49 +0200
35bf4d16c3Handle all requests which don't involve the filesystem before all which do.
Solderpunk
2020-07-01 16:05:39 +0200
9bce54882aConsolidate some quick-failing path tests.
Solderpunk
2020-07-01 16:05:09 +0200
36378eb1c6Make sure CGI files are world-readable as well as world-executable.
Solderpunk
2020-07-01 16:04:48 +0200
f291e5863cEnforce certificate zones before anything else.
Solderpunk
2020-07-01 14:16:27 +0200
4ae154faedConvert CGIPath handling from regexs to prefixes.
Solderpunk
2020-07-01 14:10:20 +0200
cc5410494eHandle redirects using regular expressions, not just literal paths.
Solderpunk
2020-07-01 11:13:38 +0200
b30fc0923bHandle CGI requests with URI components after the script.
Solderpunk
2020-07-01 10:38:31 +0200
68398ef0beExtensive refactor, trying to keep the main request handling function relatively simple.
Solderpunk
2020-06-30 22:25:37 +0200
fd31094cb6Allow .molly files to set certificate zones.
Solderpunk
2020-06-30 20:39:26 +0200
702cc73a63Add redirect members to Molly File struct. Should have been part of an earlier commit!
Solderpunk
2020-06-30 20:38:46 +0200
35f58f50e7Correct README to indicate that redirects are not done using regular expressions but literal path matches.
Solderpunk
2020-06-30 20:23:50 +0200
1794ff643bAllow .molly files to configure redirects.
Solderpunk
2020-06-30 20:19:13 +0200
e43fc7877cBig rearrange: resolve URL to filesystem earlier, so we can check for .molly files ASAP, so that they can handle redirects, certificate zones, etc.
Solderpunk
2020-06-30 19:31:27 +0200
15863eb253Fix typo in CGI environment variable.
Solderpunk
2020-06-12 19:00:36 +0200
e57a3d5ecfRead header for directory listings from .mollyhead.
Solderpunk
2020-06-11 22:43:13 +0200
b0b18971f4Run gofmt on everything for the first time ever!
Solderpunk
2020-06-10 21:31:13 +0200
3e80488f92Add DefaultLang config variable to set text/gemini lang parameter. Overridable via .molly file.
Solderpunk
2020-06-10 21:22:15 +0200
7fb5ca052bFix parent directory walking logic to work at the DocRoot.
Solderpunk
2020-06-10 21:20:01 +0200
cb1e0da7d5Read .molly files from parent directories of served file, permitting overrides to text/gemini file extension.
Solderpunk
2020-06-10 20:40:13 +0200
bec952c66aUse log.Fatal instead of fmt.Println and os.Exit.
Solderpunk
2020-06-08 20:02:29 +0200
8f395d7932Add link to parent directory in directory listings.
Solderpunk
2020-06-08 20:01:03 +0200
301d3409f1Support temporary and permanent redirects.
Solderpunk
2020-06-08 19:59:16 +0200
433c43e98eAdd file size and modification dates to automatically generated directory listings.
Solderpunk
2020-06-06 21:28:12 +0200
11beddcfb1Add rudimentary support for specifying redirects.
Solderpunk
2020-06-06 13:36:10 +0200
548697b094Get rid of debugging prints.
Solderpunk
2020-06-06 13:35:47 +0200
2c99228610Pass pointers to the log entry to functions which can set the status code, so changes are reflected in the main handle function.
Solderpunk
2020-06-06 12:08:34 +0200
b0a08f8231Break CGI and SCGI stuff out into its own file.
Solderpunk
2020-06-06 11:46:29 +0200
54ed1ab265Merge CGI and SCGI variable preparation.
Solderpunk
2020-06-06 11:33:00 +0200
920f06597fStub implementation of SCGI.
Solderpunk
2020-06-04 20:41:40 +0200
44d72c2bf2Make it clear what is wrong with a config file.
Solderpunk
2020-06-04 20:36:03 +0200
93f3c9e620Break handleGeminiRequest up into smaller, clearer functions.
Solderpunk
2020-06-04 20:35:14 +0200
9c51f26d74Do not crash if os.Stat returns an error other than not found or no permission, which seems to mysteriously happen sometimes...
Solderpunk
2020-06-01 21:27:15 +0200