81 Commits (master)

Author SHA1 Message Date
Solderpunk e06f8bddbc Fix infinite redirect bug. 8 months ago
makeworld c6c6e544d6 Use io.Copy over ioutil.ReadFile 10 months ago
Solderpunk 48aed1398d Log remote IP address when reading a request fails. 1 year ago
Solderpunk 37e177fbe0 Move .molly file parsing function into config.go. 1 year ago
Solderpunk 3cd4a072fd More and better error logging. 1 year ago
Solderpunk f7e588dfae More and better error logging. 1 year ago
Solderpunk 821a862036 Use standard library logging facilities for error log. 1 year ago
Solderpunk 2a263e5e70 Rewrite SCGI support to use prefixes, not regexps, and provide the same SCRIPT_PATH / PATH_INFO break as CGI. 1 year ago
Solderpunk d87ecfd20f gofmt. 1 year ago
Solderpunk f4f14320df Expand CGI path globs once on startup, not for each request. 1 year ago
Solderpunk 35bf4d16c3 Handle all requests which don't involve the filesystem before all which do. 1 year ago
Solderpunk 9bce54882a Consolidate some quick-failing path tests. 1 year ago
Solderpunk f291e5863c Enforce certificate zones before anything else. 1 year ago
Solderpunk 4ae154faed Convert CGIPath handling from regexs to prefixes. 1 year ago
Solderpunk cc5410494e Handle redirects using regular expressions, not just literal paths. 1 year ago
Solderpunk b30fc0923b Handle CGI requests with URI components after the script. 1 year ago
Solderpunk 68398ef0be Extensive refactor, trying to keep the main request handling function relatively simple. 1 year ago
Solderpunk fd31094cb6 Allow .molly files to set certificate zones. 1 year ago
Solderpunk 1794ff643b Allow .molly files to configure redirects. 1 year ago
Solderpunk d7663ab688 Removing debugging print. 1 year ago
Solderpunk e43fc7877c Big rearrange: resolve URL to filesystem earlier, so we can check for .molly files ASAP, so that they can handle redirects, certificate zones, etc. 1 year ago
Solderpunk 990b7071d0 gofmt fixes. 1 year ago
Solderpunk 44af303de6 Fix silly mistake in hasty port checking fix. 1 year ago
Solderpunk 4c27911e8f Check that request port matches configured server port. Should fix #9. 1 year ago
Solderpunk 4dbe52adf8 Permit .molly files to specify MIME overrides. 1 year ago
Solderpunk 18c056167f Make it possible to toggle handling of .molly files on and off via main config. 1 year ago
Solderpunk 77691d6983 Introduce error log. 1 year ago
Solderpunk 31161cf21c Permit multiple authorised certificates per zone. 1 year ago
Solderpunk a0dacf4bbd Basic implementation of certificate zones - only one authorised cert per zone. 1 year ago
Solderpunk 5377c2941f Allow overriding MIME types based on path regexes. 1 year ago
Solderpunk a07645dd2e Allow overriding directory listing options with .molly files. 1 year ago
Solderpunk 7066bad570 Use headings in .gmi files instead of filenames in directory listings. 1 year ago
Solderpunk 3f98a9edf1 Permit sorting of files in automatic directory listings by various factors. 1 year ago
Solderpunk 6da5ec79dd Fix typo. 1 year ago
Solderpunk 30a5369f8a Add missing return, fixes #4. 1 year ago
Solderpunk e57a3d5ecf Read header for directory listings from .mollyhead. 1 year ago
Solderpunk b0b18971f4 Run gofmt on everything for the first time ever! 1 year ago
Solderpunk 3e80488f92 Add DefaultLang config variable to set text/gemini lang parameter. Overridable via .molly file. 1 year ago
Solderpunk 7fb5ca052b Fix parent directory walking logic to work at the DocRoot. 1 year ago
Solderpunk cb1e0da7d5 Read .molly files from parent directories of served file, permitting overrides to text/gemini file extension. 1 year ago
Solderpunk 599bbf4b52 Proper tilde path clean up. 1 year ago
Solderpunk 8d2309f889 Quick hacky fix to tilde path transformation. 1 year ago
Solderpunk b8034c1576 Make text/gemini extension configurable. 1 year ago
Solderpunk 4681d3f971 Support multiple CGI paths. 1 year ago
Solderpunk 8f395d7932 Add link to parent directory in directory listings. 1 year ago
Solderpunk 301d3409f1 Support temporary and permanent redirects. 1 year ago
Solderpunk 433c43e98e Add file size and modification dates to automatically generated directory listings. 1 year ago
Solderpunk 11beddcfb1 Add rudimentary support for specifying redirects. 1 year ago
Solderpunk 548697b094 Get rid of debugging prints. 1 year ago
Solderpunk 2c99228610 Pass pointers to the log entry to functions which can set the status code, so changes are reflected in the main handle function. 1 year ago