84 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 702cc73a63 Add redirect members to Molly File struct. Should have been part of an earlier commit! 1 year ago
Solderpunk 35f58f50e7 Correct README to indicate that redirects are not done using regular expressions but literal path matches. 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 b0fd07f58a Provide full coverage of settings in example.conf. 1 year ago
Solderpunk 6c8e11c9ed Change default port in example.conf 1 year ago
Solderpunk 4dbe52adf8 Permit .molly files to specify MIME overrides. 1 year ago
Solderpunk 520e1ecc95 Big documentation push. 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 15863eb253 Fix typo in CGI environment variable. 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 3e5e4353e6 Update example config file. 1 year ago
Solderpunk b8034c1576 Make text/gemini extension configurable. 1 year ago
Solderpunk 4681d3f971 Support multiple CGI paths. 1 year ago
Solderpunk bec952c66a Use log.Fatal instead of fmt.Println and os.Exit. 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