about summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
...
* Code cleanup and Cargo.lock updatesVika2021-09-273-169/+209
|
* Fix a bug in the error middlewareVika2021-09-273-2/+5
| | | | | | When an error is found, the site name passed to Storage::get_setting in the error handler is incorrect. The ASCII serialisation of the hostname should get used.
* Implemented support for channelsVika2021-09-273-65/+172
|
* Implemented FileStorage::delete_postVika2021-09-271-1/+4
|
* Finally figured out how to read without a BufReaderVika2021-09-271-14/+6
| | | | | BufReader was really unneccesary here, since I was batch-reading all of this in one go.
* Improved symlink creationVika2021-09-271-5/+78
| | | | | | Now symlink creation works on Windows and creates links relative to the posts, allowing for seamless migrations of the backing directory for true portability and no data lock-in.
* Implemented FileStorage::get_setting and FileStorage::set_settingVika2021-09-273-2/+60
|
* Moved integration tests and allowed the binary to use file backendVika2021-09-264-21/+93
| | | | | | Now the Redis dependencies are optional and only required if you want to test the backend or actually use it in production. The app displays a hint if you try to launch with an unsupported backend.
* Added file updates and fixed a bug with truncated JSON filesVika2021-09-262-3/+154
| | | | | | | | | | | There was a bug where `File::write()` would not write the entire buffer, and this condition was left unchecked by the code. All `File::write()` calls are now replaced with `File::write_all()` which ensures the whole buffer is written to the backing file. Additionally added a smoke check for the file updates. It is in no way comprehensive nor it is able to catch all the possible failures but it's a good way of testing the functionality without way too much hassle.
* Added a WIP file backendVika2021-08-154-84/+399
| | | | | | | Currently unavailable for use and only has basic GET and POST operations implemented. A lot more work is needed to make it truly usable. Locking is implemented using flock() system call on Linux.
* Improved Redis module code qualityVika2021-08-151-13/+10
|
* Revert "Moved mobc to a custom repo"Vika2021-08-102-19/+4
| | | | This reverts commit 1c1d0e504c276ccb3c204aa28750f86610bff248.
* Update flake.lockVika2021-08-101-6/+19
|
* Added Prometheus instrumentationVika2021-08-064-1/+213
| | | | | | I need to instrument the mobc library used for the Redis connection pool, but that can be done later since I am somewhat tired. I don't remember how much I've worked and I need a break... >.<
* Moved mobc to a custom repoVika2021-08-062-4/+19
|
* Added a default food channel for foodstuffsVika2021-08-061-12/+35
|
* Log sent webmentionsVika2021-08-061-0/+1
|
* Refactored the onboarding template into its own fileVika2021-08-062-193/+198
|
* Shortened a connection timeout and installed a lifetime limit for connectionVika2021-08-061-1/+4
|
* Added RUST_LOG variable to NixOS moduleVika2021-08-061-0/+1
|
* Trying to mitigate and log more about the HTTP 500sVika2021-08-051-10/+12
|
* Add LICENSE Vika2021-08-041-0/+661
| | | It was always my intention to license this under AGPLv3, so the project will stay free no matter who hosts it, and no matter where. We should have the freedom to customize our blogs however we want!
* Nulls are VERY evilVika2021-08-041-0/+3
|
* Turns out nulls are evilVika2021-08-041-3/+5
|
* Fixed lack of default for internalTokenFileVika2021-08-041-0/+1
|
* Added some options to the module, they don't work yet thoVika2021-08-041-0/+31
|
* Fixed a VERY WRONG way to handle stream errorsVika2021-08-042-31/+25
| | | | | | for future reference: stream operations returning Result satisfy conditions for the futures::stream::TryStreamExt trait, allowing you to use `TryStreamExt::try_collect::<T>()` and receive a Result<T>.
* Moved templates into their own moduleVika2021-08-032-586/+585
| | | | | | | frontend.rs was too hard to navigate. Additionally, this allows playing with the organizational structure of templates, since they only need to export a certain API and how exactly they work is an implementation detail.
* Appease rustfmt, clippy and cargo checkVika2021-07-2910-105/+198
|
* Updated gitignoreVika2021-07-281-0/+1
|
* Respect Link: headers when sending webmentionsVika2021-07-281-4/+32
|
* Added CORS middlewareVika2021-07-272-0/+23
| | | | | This prevents Micropub requests fired from web apps on other domains from being blocked by overzealous browsers.
* Added an internal token mechanismVika Shleina2021-07-274-1/+30
| | | | | | | | The internal token is a shared secret that can update and delete any posts stored in the database. It is intended for use in webmention endpoints to update posts with latest webmentions. Please keep it safe.
* Fixed security hole where other people could delete YOUR posts. Yes, yours. ↵Vika Shleina2021-07-212-0/+67
| | | | You're welcome.
* Don't show internal links on h-cardsVika Shleina2021-07-191-1/+1
|
* Fixed crash when h-card doesn't contain a p-noteVika Shleina2021-07-191-3/+4
|
* Fixed feed pagination on frontendVika Shleina2021-07-191-1/+4
|
* Relaxed anti-takeover URL check to simply not place redirects at foreign URLsVika Shleina2021-07-195-16/+14
|
* Replaced scheme with HTTPS in frontend to prevent weird thingsVika Shleina2021-07-192-6/+11
|
* Added URL display to h-cardsVika Shleina2021-07-191-0/+14
|
* Fixed flake-utils?Vika Shleina2021-07-192-5/+10
|
* Added a NixOS test for onboarding workflowVika2021-07-191-1/+28
|
* frontend: fixed site name, added thumbnail support and Markdown tutorial linkVika Shleina2021-07-191-7/+16
|
* make clippy happyVika Shleina2021-07-198-29/+30
|
* Renamed main executable to kittybox, added toolsVika Shleina2021-07-197-17/+133
| | | | | | | | | The new tools are: - kittybox-bulk-import, a bare-bones Micropub client that reads a JSON list of posts and then sends them one by one to the Micropub endpoint - pyindieblog-export, my personal tool which directly connects to Pyindieblog's redis instance and extracts data from it in JSON format suitable for use with kittybox-bulk-import.
* Add aarch64 cross-compilation jobVika2021-07-151-0/+15
|
* Added ^ to the versions - looks like nothing's brokenVika Shleina2021-07-071-26/+26
|
* Updated flake.lock and Cargo.lockVika Shleina2021-07-072-164/+171
|
* Make rustfmt happy again after Clippy editsVika2021-05-182-13/+19
|
* Make clippy happyVika2021-05-174-36/+30
|