Commit graph

27 commits

Author SHA1 Message Date
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
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
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
9399bebee7 temp disable archive button, cleanups for new gems 2018-12-10 07:36:22 +00:00
Kyle Drake
34ac611d9b Refactor redis proxy storage 2017-07-06 10:24:14 -07:00
Kyle Drake
0adc6d65fd Fixes for not saving keys/certs when refreshed 2017-06-29 11:12:39 -07:00
Kyle Drake
ca8f8146c7 Merge branch 'master' of github.com:neocities/neocities 2017-03-05 11:07:41 -08:00
Kyle Drake
7b5c34b29b Reset domain fail count to 0 on success 2017-03-05 11:07:17 -08:00
Kyle Drake
cdcc65e951 LetsEncryptWorker: Follow redirects for verification 2017-03-04 17:22:55 +00:00
Kyle Drake
5178ea4e78 Compare with year for root domain check for lets encrypt 2017-01-14 06:12:36 +00:00
Kyle Drake
d16e768072 Merge branch 'master' of github.com:neocities/neocities 2017-01-14 06:00:21 +00:00
Kyle Drake
7198e788d1 No http follow, more debug info on errors 2017-01-13 20:06:59 +00:00
Kyle Drake
6e37fd7d25 improve retry for let's encrypt 2017-01-13 12:04:10 -08:00
Kyle Drake
6132875b6b A few fixes for lets encrypt error handling 2016-09-17 17:51:56 +00:00
Kyle Drake
bfa13e5325 Detect and remove dead custom domains 2016-09-17 10:02:51 -07:00
Kyle Drake
5e2f5c1ae5 Comment for how to delete scheduler jobs 2016-07-03 02:11:16 +00:00
Kyle Drake
54ff80ecd2 Let's Encrypt script is getting ugly, but covers the edge cases now.
Needs refactor eventually.
2016-06-28 03:48:15 +00:00
Kyle Drake
713d057395 Merge branch 'master' of github.com:neocities/neocities 2016-06-23 16:20:51 -07:00
Kyle Drake
8a109f7b4b try to deal with rate limiting 2016-06-23 16:05:26 -07:00
Kyle Drake
568a7e9900 Letsencrypt gets very mad at too many pending auths, adjust times 2016-06-21 23:01:57 +00:00
Kyle Drake
68399bd76c Update certs periodically, retry tweaks 2016-06-19 04:57:47 +00:00
Kyle Drake
2598474596 A few bugfixes for letsencrypt worker 2016-06-19 02:00:14 +00:00
Kyle Drake
96642dc27a the subdomain also needs auth apparently 2016-06-18 18:40:17 -07:00
Kyle Drake
1fc3120363 deduping code and fixes for letsencrypt 2016-06-18 21:25:41 +00:00
Kyle Drake
06b74f3e8e helps when you add the file you moved to git 2016-06-18 12:51:12 -07:00