Commit graph

151 commits

Author SHA1 Message Date
Kyle Drake
3767725759 fix for screenshot sizing issues 2024-12-05 15:41:26 -06:00
Kyle Drake
84f916c6bd fix for crop error with webp 2024-11-28 21:11:41 -06:00
Kyle Drake
b495761db4 fix up acme challenge turd cleanup 2024-11-22 11:27:08 -06:00
Kyle Drake
dded5d130a fix removal of well-known acme challenge on letsencrypt 2024-11-20 15:38:57 -06:00
Violet V.
e9fe9b90ba
Make ACME challenge cleanup more specific
The .well-known directory has uses other than ACME challenge response,
so deleting the whole thing as cleanup is incorrect.

I ran into an issue where files I uploaded inside that directory (which
worked initially) disappeared after a while, I assume around the time
neocities renewed the certs for my custom domain. The file (and the
.well-known dir) still appeared in GETs on the /api/list endpoint, but
requests for them on my site returned 404. I tried to re-upload the
original to the same path but it appears since it had the same content
some optimization was preventing it from restoring the deleted file,
because it continued to 404.

Uploading the same file to a different path inside .well-known worked,
and then uploading a file with different content to the original path
worked.

This commit changes the ACME cleanup code to only remove the
.well-known/acme-challenge directory that it uses, and leaves any other
files alone.
2024-10-20 11:56:18 -04:00
Kyle Drake
3a41029313 add htm to uri, use site.uri for screenshot 2024-09-19 12:47:21 -05:00
Kyle Drake
0e827319cd ensure binary write of screenshots 2024-09-18 09:37:13 -05:00
Kyle Drake
29619d51ee remove surf code, clean up purge cache and better define purge cache tests for expected behavior 2024-02-21 13:51:41 -06:00
Kyle Drake
0c1812e457 BlackBoxWorker: only check deleted 2024-02-17 19:15:46 +00:00
Kyle Drake
10ff8a7cc7 sidekiq api available in test for screenshotworker 2023-12-31 00:55:59 -06:00
Kyle Drake
dde5225752 deprecate ipfs 2023-12-28 15:36:20 -06:00
Kyle Drake
9b954f086e move screenshots to default retry cycle 2023-12-25 11:14:18 -06:00
Kyle Drake
9b00bd0169 retry screenshots to 4, add missing image optimizer 2023-12-15 18:09:59 +00:00
Kyle Drake
2bf24375d4 only use full png for index 2023-12-06 10:03:33 -06:00
Kyle Drake
c3789564f0 add opengraph / link expander friendly screenshot, add image optimizers 2023-12-05 15:49:14 -06:00
Kyle Drake
7e49bd96a4 sidekiq provides string keys not symbols 2023-11-26 17:27:58 +00:00
Kyle Drake
6d237600fd stopforumspamworker: hash not methods 2023-11-26 11:14:53 -06:00
Kyle Drake
6ddef6aa59 maxmind minfraud reporting 2023-11-26 11:09:02 -06:00
Kyle Drake
2a3b8593df Better error handling for screenshot and thumbnail workers, hacky fix for lets encrypt cert issue that's temporary 2023-07-19 21:17:48 +00:00
Kyle Drake
6925c21d2b Merge branch 'master' of github.com:neocities/neocities 2023-04-28 15:21:48 +00:00
Kyle Drake
454e4162ce near lossless for screenshots 2023-04-28 15:21:43 +00:00
Kyle Drake
28ed2718ba fix for screenshot worker test 2023-03-28 16:07:31 -05:00
Kyle Drake
f109b416a0 add domain index, check uri on screenshots, set workers to system cpu core count 2023-03-22 13:37:18 +00:00
Kyle Drake
520413140d switch to webp, use png for screenshot returns and be done with the accursed rmagick forever 2023-01-21 09:39:31 -06:00
Kyle Drake
3eb858bb6f fixes for new html redirects 2023-01-17 19:07:03 -06:00
Kyle Drake
5fb1af2a8c switch to faster screenshot resizer lib 2023-01-17 19:04:06 -06:00
Kyle Drake
9bb34424ff purge cache for stripped .html files 2022-12-15 10:21:55 -06:00
Kyle Drake
e7eb6d8a2d fix for gemfile, merge conflicts, test fixes for ruby 3 2022-11-05 12:46:43 -05:00
Kyle Drake
0ca1473d22 mostly finished port to ruby3 2022-08-10 14:31:36 -05:00
Kyle Drake
e61de5b0d6 manual review for supporter violations 2022-05-10 00:18:16 +00:00
Kyle Drake
985a21d347 Revised how black box works 2022-05-10 00:17:43 +00:00
Kyle Drake
a5af32d143 fix for if site is missing 2021-09-08 16:04:32 -05:00
Kyle Drake
c1705f0c52 Move user delete check to front of screenshot worker 2020-12-12 16:59:07 +00:00
Kyle Drake
1260a856d5 dont take screenshots for deleted sites 2020-12-12 16:43:51 +00:00
Kyle Drake
a2a46d406e async black box 2020-11-24 01:11:38 -06:00
Kyle Drake
4533214d71 thumbnailworker: reduce memory issues 2020-05-27 04:02:45 +00:00
Kyle Drake
2656303458 fix for letsencrypt test conditional 2020-05-04 06:39:14 +00:00
Kyle Drake
10018c5124 Fixes for letsencrypt - please no more acme changes :( 2020-04-14 01:31:13 +00:00
Kyle Drake
4dfacac83a update letsencrypt worker to acmev2 2020-04-13 17:49:45 -07:00
Kyle Drake
eb519d0bbf Array for screenshot worker, catch exceptions 2020-01-27 08:13:23 +00:00
Kyle Drake
9399bebee7 temp disable archive button, cleanups for new gems 2018-12-10 07:36:22 +00:00
Kyle Drake
9d3b86302d clean up tests to reflect new purging code 2017-10-15 11:26:42 -07:00
Kyle Drake
b3a5b2d860 directly use PurgeCacheWorker now 2017-08-01 18:06:51 -07:00
Kyle Drake
35d93f5755 delete -> purge hotfix 2017-07-25 13:18:23 -07:00
Kyle Drake
1a563e8aee shut down http-based purging 2017-07-23 16:03:21 -07:00
Kyle Drake
dbc47f0586 key renamed to path 2017-07-23 11:10:10 -07:00
Kyle Drake
bdee6500ee hybridize the cache purging for transistion 2017-07-23 11:09:29 -07:00
Kyle Drake
34ac611d9b Refactor redis proxy storage 2017-07-06 10:24:14 -07:00
Kyle Drake
50b32257df Fix for archive logging 2017-06-29 11:13:36 -07:00
Kyle Drake
0adc6d65fd Fixes for not saving keys/certs when refreshed 2017-06-29 11:12:39 -07:00