Commit graph

111 commits

Author SHA1 Message Date
Mike Colagrosso
0490ba2951 Remove Content-Disposition config for downloads
It's necessary to remove these headers now that the file download
redirects to `www/ebooks/download.php`. If not, the browser raises an
error about the header set twice.
2025-04-25 14:31:44 -05:00
Mike Colagrosso
03ed3c2257 Add Ebook::DownloadUrl for web and feed downloads
This commit adds a rewrite rule for ebook downloads of the form:

```
/ebooks/some-author/some-book/downloads/some-filename.epub
```

to `www/ebooks/download.php`. That file handles the logic of whether to
show a thank you page before beginning the download.

Download URLs in RSS, Atom, and OPDS feeds follow the same pattern, but
they have a query string parameter `?source=feed` to always skip the
thank you page.
2025-04-25 14:31:44 -05:00
Alex Cabal
849276736e Move donwload rewrite rule after legacy ebook URL rewrites 2025-03-30 14:35:03 -05:00
Alex Cabal
de96695ac7 Add rewrite for The Giant Raft by Jules Verne 2025-03-26 14:50:12 -05:00
Alex Cabal
8a3a05a264 Ban ChatGPT user agents 2025-03-24 13:59:13 -05:00
Alex Cabal
34fd71e55a Tweak wording on delete artist page and add some more breadcrumbs 2025-03-07 10:37:56 -06:00
Alex Cabal
1136cfb2af Add artists rewrites to live site Apache config 2025-03-07 09:57:07 -06:00
Mike Colagrosso
a91509726c
Add admin tool to handle duplicate artist names (#480) 2025-03-06 14:28:26 -06:00
Alex Cabal
932ce2b2b1 Add ebook redirect 2025-02-03 15:42:06 -06:00
Alex Cabal
c1e8e83cfb Block some leechers in Apache config 2025-01-25 14:13:49 -06:00
Alex Cabal
8f2df6ac12 Fix broken Apache config 2025-01-18 17:32:38 -06:00
Alex Cabal
bdeebc8291 Add endpoint to get collections for an ebook or placeholder 2025-01-15 14:32:50 -06:00
Alex Cabal
bc16b1fff8 Add endpoint to get reviewer for an in-progress project 2025-01-07 21:42:51 -06:00
Alex Cabal
1cb4cbfe24 Redirect ebook searches for only one tag to the /subjects/<TAG endpoint 2025-01-05 13:52:09 -06:00
Alex Cabal
99508cc490 Correctly return 404 instead of 403 for ebooks with spaces in the URL 2025-01-05 13:27:35 -06:00
Alex Cabal
616b9677a9 Fix donation progress bar 2024-12-30 22:04:09 -06:00
Alex Cabal
8e8cbb0c5e Move delete form and more multi select fixes 2024-12-19 14:40:38 -06:00
Alex Cabal
b2191d1219 Allow editing of projects 2024-12-18 14:20:28 -06:00
Mike Colagrosso
f449c024ea Add /edit endpoint to update placeholders 2024-12-18 12:58:18 -06:00
Alex Cabal
d902074285 Add new project form, and allow projects to be created when attempting to create a placeholder that already exists. 2024-12-16 21:27:45 -06:00
Alex Cabal
8e6b05a150 Fix typos 2024-12-16 15:49:18 -06:00
Alex Cabal
5782d6ca7d Further refine projects system 2024-12-15 23:39:23 -06:00
Alex Cabal
ab17e6af5d Allow getting users by name 2024-12-02 10:20:36 -06:00
Alex Cabal
7557a87a37 Add redirect for old book title 2024-11-30 11:51:43 -06:00
Alex Cabal
8ad3291a35 Add admin form to view and edit users 2024-11-23 14:30:11 -06:00
Robin Whittleton
ac733df938 New short story in Tanizaki has an additional translator 2024-11-20 11:17:36 -06:00
Alex Cabal
d6a2bdcbc8 Make MARC roles an enum and restructure how contributors are fetched from the DB to reduce queries 2024-11-11 12:01:53 -06:00
Alex Cabal
ec0b81817d Restructure some files to match new URL structure 2024-11-11 11:17:04 -06:00
Alex Cabal
b340c55460 Move Apache rewrites into separate files 2024-11-11 11:06:04 -06:00
Alex Cabal
307125d71c Add hotlink protection for some naughty hotlinkers 2024-02-28 09:00:30 -06:00
Alex Cabal
9437beaee9 Add thank-you page to ebook downloads 2024-02-26 13:34:44 -06:00
Alex Cabal
7cb1b59a93 Add redirect for Clarissa 2024-02-06 11:29:39 -06:00
Mike Colagrosso
0ed064c8f0 Move single collection view to collections/get.php 2024-02-05 13:51:51 -06:00
Alex Cabal
e3ea224256 Tweak style 2024-01-23 13:51:34 -06:00
Mike Colagrosso
cad2f5f730 List artwork by artist via /artworks/<artist-name> 2024-01-23 13:46:12 -06:00
Mike Colagrosso
813d4f601c Artwork: Rewrite rules for artwork editing 2024-01-17 12:12:25 -06:00
Alex Cabal
b99d2aac1a Merge admin pages with regular pages for art system 2024-01-07 15:47:40 -06:00
Mike Colagrosso
6a5c05511a Add cover art database
Co-authored-by: Job Curtis <job.curtis@gmail.com>
Co-authored-by: Alex Cabal <alex@standardebooks.org>
2024-01-03 19:14:04 -06:00
Alex Cabal
76cf0d296a Use content negotation to serve acceptable content types for web browsers viewing OPDS/RSS/Atom feeds 2023-06-20 15:26:28 -05:00
Alex Cabal
d8f85fa4b3 Add text/javascript to apache cache policy 2023-05-25 23:21:29 -05:00
Alex Cabal
67007049a0 Update Apache config in advance of 22.04 2023-04-03 16:25:21 -05:00
Alex Cabal
35ec084682 Tweak SSL configuration 2023-03-09 01:17:29 -06:00
Alex Cabal
2b91255a7f Add redirect for Downstream 2023-02-23 22:40:37 -06:00
Alex Cabal
ee92ac4291 Add redirect for Gogol 2023-02-23 12:40:44 -06:00
Alex Cabal
1e32a97c7d Some tweaks to collections 2023-02-16 18:45:20 -06:00
Mike Colagrosso
e2dd256edc Add a /collections endpoint 2023-02-16 18:26:34 -06:00
Alex Cabal
0b8ed9101a Enable gzip compression for favicons 2022-12-22 17:22:36 -06:00
Alex Cabal
a0db9799f4 Add ebook redirect 2022-08-14 11:02:59 -05:00
Alex Cabal
e2dcf97961 Add 451 page and prettify the 404 page 2022-07-24 14:12:37 -05:00
Alex Cabal
e857e4e9e6 Rebuild web caches immediately on ebook updates 2022-07-14 15:28:57 -05:00