65 Commits (68398ef0bee30c80b61e1a345cde3c4cef7480ba)

Author SHA1 Message Date
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
Solderpunk b0a08f8231 Break CGI and SCGI stuff out into its own file. 1 year ago
Solderpunk 54ed1ab265 Merge CGI and SCGI variable preparation. 1 year ago
Solderpunk d78c840056 First step toward unstubbing SCGI. 1 year ago
Solderpunk b384105d86 Factor out request reading code. 1 year ago
Solderpunk 7ffbb6c6ef Pass some client cert information to CGI programs. 1 year ago
Solderpunk 6f3887bdc4 Request client certificates, check validity dates of received certs and pass certs to handleCGI. 1 year ago
Solderpunk 4e262d634a Fix line endings in response headers. 1 year ago
Solderpunk fc730c8b1c Refuse to serve any sensitive files. 1 year ago
Solderpunk 532dd83414 Make sure to always provide a MIME type. 1 year ago
Solderpunk a16a5fac12 Switch CGI implementation to actual CGI. 1 year ago
Solderpunk de119aa0bb Fix trailing slash redirects. 1 year ago
Solderpunk 920f06597f Stub implementation of SCGI. 1 year ago
Solderpunk 93f3c9e620 Break handleGeminiRequest up into smaller, clearer functions. 1 year ago
Solderpunk 9c51f26d74 Do not crash if os.Stat returns an error other than not found or no permission, which seems to mysteriously happen sometimes... 1 year ago
Solderpunk 5fdb3622e9 Remove vestigial generic response code. 1 year ago
Solderpunk 06809edfcc URL escape filenames in directory lisitngs. 1 year ago