Commit graph

228 commits

Author SHA1 Message Date
Emi Tatsuo 1c1e2567f5
Fix the examples to work with Gemtext
I always forget the examples
2020-12-07 17:57:30 -05:00
Emi Tatsuo 485f579e4c
Add gemtext feature to docs 2020-12-07 17:32:07 -05:00
Emi Tatsuo 9ec1a5663d
Merge branch 'devel' into gemtext 2020-12-07 17:29:34 -05:00
Emi Tatsuo 6b30521c77
Add the last two docs for Server 2020-12-07 16:46:13 -05:00
Emi Tatsuo 7dff9674b6
Removed some unused imports 2020-12-07 15:59:43 -05:00
Emi Tatsuo 27f3f2aee0
Move URI reference to the crate base 2020-12-07 15:58:49 -05:00
Emi Tatsuo 05089bfea6
Redo Handler docs 2020-12-06 10:24:54 -05:00
Emi Tatsuo f98b94235a
Cranking out some docs
Not finished yet we've got so many docs to write.  It's doc writing time!
2020-12-05 14:09:16 -05:00
Emi Tatsuo 3ef7b2751e
Warn if a response is sent with a non-success code & a body 2020-12-05 13:41:53 -05:00
Emi Tatsuo b1d1fb7c0d
Warn the first time a request is missing SCRIPT_PATH 2020-12-05 13:01:45 -05:00
Emi Tatsuo 868dfb6f9f
Update rustls 2020-12-05 11:49:17 -05:00
Emi Tatsuo 1068c00e55
Fix broken links in docs 2020-12-05 11:37:14 -05:00
Emi Tatsuo 7add331e0b
Made the link rewriting docs *way* better 2020-12-05 11:27:30 -05:00
Emi Tatsuo 9bc1f317c5
Fix bug where autorewrite was always on, respond 50 and log instead of panic on rewrite error 2020-12-05 11:09:00 -05:00
Emi Tatsuo 680c04abe4
Add documentation about SCGI 2020-12-05 10:30:13 -05:00
Emi Tatsuo ae247312f7
Fix gemini_srv with more conditional comp 2020-12-05 09:54:05 -05:00
Emi Tatsuo f592ecf73b
Move opt_timeout to lib.rs 2020-12-03 15:04:12 -05:00
Emi Tatsuo cb9b3ea167
Fix crash on no certificate provided 2020-12-03 10:47:33 -05:00
Emi Tatsuo d8d15d8f72
Add tolerance for REMOTE_ADDR without a port 2020-12-03 08:32:06 -05:00
Emi Tatsuo fb357b59eb
Support base64 encoded certificate hashes, remove ring as mandatory dep for scgi_srv
Removing ring also means switching out some of the code around user password hashes so that's what that is, if you're wondering.  Also, the sunrise today was absolutely beautiful.  I haven't been awake for a sunrise in a long time, so I guess that's one upside to not sleeping.  Like, melencholy sunsets get a lot of love, but man, nothing fills you with hope and positivity like a sunrise.
2020-12-03 08:10:50 -05:00
Emi Tatsuo d71c3f952d
Reduce visibility of some methods in CertGenMode, fix docs 2020-12-03 05:20:16 -05:00
Emi Tatsuo e55f5c675b
Rename gencert.rs -> cert.rs, move in a bunch of certificate functions.
Make the cert.rs module private.

Refactor refactor refactor!!!

It's 5:14am and I HAVENT SLEPT THAT'S RIGHT IT'S INSOMNIA HOURS THEYDIES AND GENDERFUCKS!!!
2020-12-03 05:14:09 -05:00
Emi Tatsuo dc71a2f2cf
Add .gemgit 2020-12-03 04:35:20 -05:00
Emi Tatsuo fa8adbd265
Started writing feature docs [UNFINISHED] 2020-12-03 00:53:05 -05:00
Emi Tatsuo 73da764a8f
Switched back to using raw gemini as the default mode 2020-12-03 00:52:25 -05:00
Emi Tatsuo 477d31dae3
Make it clear in the version string that this is unreleased 2020-12-03 00:09:51 -05:00
Emi Tatsuo 23c5141dd0
Add a compiler error giving an actual reason if invalid features are active 2020-12-03 00:06:48 -05:00
Emi Tatsuo 9feb555b20
Fix branch name in README example 2020-12-02 19:18:22 -05:00
Emii Tatsuo 89e7719939
Fix stable build 2020-12-01 23:32:03 -05:00
Emii Tatsuo 85cbb1d6d8
Remove unused squeegee dep 2020-12-01 23:24:10 -05:00
Emii Tatsuo 05e4d25a53
Added in autorewrite as an option to Server 2020-12-01 21:59:00 -05:00
Emii Tatsuo 8f86bac608
Added rewrite_all for body 2020-12-01 21:41:00 -05:00
Emii Tatsuo 64f54e8e58
Fix rewrite_path 2020-12-01 21:26:08 -05:00
Emii Tatsuo aa6c8d8a57
Remove needless borrow 2020-12-01 19:10:50 -05:00
Emii Tatsuo 723986c011
Add rewrite_path() 2020-12-01 19:02:49 -05:00
Emii Tatsuo 6400197514
Treat zero-length input as no input at all
Fixes running with molly brown
2020-12-01 17:38:52 -05:00
Emii Tatsuo de060363f1
Fix the dashmap + user_management_routes build 2020-12-01 17:38:26 -05:00
Emii Tatsuo 3e2865de12
Fix ratelimiting example
Geeze, that code's ancient!  How long was that broken?
2020-12-01 17:13:54 -05:00
Emii Tatsuo b265ae985c
Dramatically simplify the certificate example 2020-12-01 17:11:28 -05:00
Emii Tatsuo f922f8c70d
Merged Meta, Status, and ResponseHeader into Response 2020-12-01 16:36:29 -05:00
Emii Tatsuo a92b3788e2
Added ./data to .gitignore 2020-12-01 15:15:30 -05:00
Emii Tatsuo 8b9fbce489
Fix user management module, rework certificates to use hashes 2020-12-01 14:43:15 -05:00
Emii Tatsuo 244fd25112
Completely reworked request handling to be able to serve SCGI
Multi ~~track~~ protocol ~~drifting~~ abstraction!!
2020-12-01 02:31:08 -05:00
Emii Tatsuo 86ed240761
Remove dependancy on mime when serve_dir is off 2020-11-30 21:26:25 -05:00
Emii Tatsuo bc6d0b89bc
Make it clearer that kochab handles certificate generation 2020-11-30 17:48:19 -05:00
Emii Tatsuo 2c09831d22
Move to GitLab 2020-11-30 17:46:28 -05:00
Emii Tatsuo e95cbd70e9
Mention that the Gemtext struct is re-exported from gemtext 2020-11-30 17:42:58 -05:00
Emii Tatsuo 4ba099f947
Outsource document building to the gemtext crate
This change is still pending on some of my PRs being merged to main in the gemtext repository.  Please see:

=> https://tulpa.dev/cadey/maj/pulls/12 Add conversion traits to Builder
=> https://tulpa.dev/cadey/maj/pulls/13 Add a `blank_line()` method to `Builder`
=> https://tulpa.dev/cadey/maj/pulls/14 Accept an Option<&str> as a link name
=> https://tulpa.dev/cadey/maj/pulls/15 Add support for alt-text in preformatted blocks

Once these changes are merged, the dependency on gemtext should be moved to the crates.io version
2020-11-30 14:27:58 -05:00
Emii Tatsuo 9aa90c3e59
Fix conflicts with main branch 2020-11-30 00:31:30 -05:00
Emii Tatsuo a1d52faa9d
Fix examples 2020-11-30 00:28:26 -05:00