neocities/workers
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
..
ban_worker.rb manual review for supporter violations 2022-05-10 00:18:16 +00:00
black_box_worker.rb BlackBoxWorker: only check deleted 2024-02-17 19:15:46 +00:00
email_worker.rb merge dashboard list view, wire in live data 2015-07-17 13:14:17 -07:00
lets_encrypt_worker.rb Make ACME challenge cleanup more specific 2024-10-20 11:56:18 -04:00
purge_cache_worker.rb remove surf code, clean up purge cache and better define purge cache tests for expected behavior 2024-02-21 13:51:41 -06:00
screenshot_worker.rb add htm to uri, use site.uri for screenshot 2024-09-19 12:47:21 -05:00
stop_forum_spam_worker.rb sidekiq provides string keys not symbols 2023-11-26 17:27:58 +00:00
thumbnail_worker.rb 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