Skip to content

Commit 0d659d0

Browse files
committed
Fix Dockerfile EXPOSE comment, CSP link, and blocklist references
Add a comment before EXPOSE in both Dockerfiles noting that readers should change the port to match their app. Update the Content-Security-Policy MDN link from the old URL (docs/Web/HTTP/CSP) to the current redirect target (docs/Web/HTTP/Guides/CSP). Replace the oliphant/blocklists reference, which is retired, with Pelago and FIRE, which the project now recommends as replacements. Suggested by 2chanhaeng in #697 (comment) #697 (comment) #697 (comment) Assisted-by: Claude Code:claude-sonnet-4-6[2m]
1 parent 7941da8 commit 0d659d0

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.hongdown.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ proper_nouns = [
5353
"Encyclia",
5454
"ESLint",
5555
"Express",
56+
"FIRES",
5657
"h3",
5758
"Hackers' Pub",
5859
"Hollo",

docs/manual/deploy.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ COPY . .
494494
# the official node images.
495495
USER node
496496

497+
# Change this to the port number your Fedify app uses.
497498
EXPOSE 3000
498499
CMD ["pnpm", "run", "start"]
499500
~~~~
@@ -514,6 +515,7 @@ COPY . .
514515
RUN deno task build
515516

516517
USER deno
518+
# Change this to the port number your Fedify app uses.
517519
EXPOSE 8000
518520
CMD ["deno", "task", "start"]
519521
~~~~
@@ -1082,7 +1084,7 @@ than a compromise. At minimum, forbid inline scripts
10821084
> hijacked. Sanitize every post, every summary, every actor bio, from
10831085
> every server, always.
10841086
1085-
[strong Content-Security-Policy]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
1087+
[strong Content-Security-Policy]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP
10861088

10871089
### Server-side request forgery (SSRF)
10881090

@@ -1208,16 +1210,17 @@ Block abusive instances early
12081210
: Apply domain-level blocklists at the inbox listener so that incoming
12091211
activities from known-abusive instances are rejected before you spend
12101212
time parsing them. The fediverse maintains several community blocklists
1211-
([oliphant/blocklists] is one starting point); curate your own rather
1212-
than importing them wholesale.
1213+
([Pelago] and [FIRES] are community-maintained starting points); curate
1214+
your own rather than importing them wholesale.
12131215

12141216
Keep the system clock in sync
12151217
: HTTP signatures are valid only within `~FederationOptions.signatureTimeWindow`
12161218
(one hour by default). Run NTP on every web and worker node. Clock
12171219
drift is the second-most-common “it worked in staging” production
12181220
issue after reverse-proxy misconfiguration.
12191221

1220-
[oliphant/blocklists]: https://codeberg.org/oliphant/blocklists
1222+
[Pelago]: https://pelago.1sland.social/blocklist
1223+
[FIRES]: https://fires.fedimod.org/
12211224

12221225

12231226
Observability in production

0 commit comments

Comments
 (0)