Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dbda6fbde1 | ||
|
|
a44107c617 | ||
|
|
b9919164e4 | ||
|
|
584c99ce13 |
1 changed files with 21 additions and 12 deletions
|
|
@ -807,18 +807,27 @@ in
|
||||||
# forge.darkest.space, etc.) were failing every sync
|
# forge.darkest.space, etc.) were failing every sync
|
||||||
# attempt without this.
|
# attempt without this.
|
||||||
migrations.ALLOWED_DOMAINS = "*";
|
migrations.ALLOWED_DOMAINS = "*";
|
||||||
# `ALLOWED_HOST_LIST` is forgejo's webhook SSRF allow-list, and
|
# Forgejo's webhook SSRF allow-list, a strict whitelist.
|
||||||
# it's a STRICT whitelist (only listed hosts deliver). Its
|
# `external` (public unicast only) stays, or user-repo webhooks to
|
||||||
# default is the `external` builtin: all public unicast IPs are
|
# github/slack break; both hyperhive hosts are added because their
|
||||||
# allowed, private/loopback denied. We must KEEP `external` so
|
# webhooks target a private gateway IP `external` denies. The
|
||||||
# user-repo webhooks to public hosts (github, slack, …) keep
|
# swarm's host was the missing one, and every swarm-controller
|
||||||
# working, and ADD the hive gateway host on top: the config-PR +
|
# delivery was refused for it.
|
||||||
# knowledge webhooks target `https://<hyperhive domain>/webhook/*`,
|
#
|
||||||
# which resolves to a private (RFC-1918) gateway IP that
|
# Not gated on `deploy.swarm-ui.enable`: in a spread deployment the
|
||||||
# `external` alone would deny (so they'd only ever be caught by
|
# forge and the swarm host are different machines, so that
|
||||||
# the 5-min poll fallback). Naming the single gateway host is
|
# per-host flag is false exactly where this entry is needed.
|
||||||
# tighter than the broad `private` builtin.
|
# `swarm.ui.domain` is the option the controller builds its public
|
||||||
webhook.ALLOWED_HOST_LIST = "external,${hyperhiveDomain}";
|
# URL from; it is slated to collapse into `swarm.domain`.
|
||||||
|
webhook.ALLOWED_HOST_LIST = lib.concatStringsSep "," (
|
||||||
|
lib.unique (
|
||||||
|
[
|
||||||
|
"external"
|
||||||
|
hyperhiveDomain
|
||||||
|
]
|
||||||
|
++ lib.optional (swarmDomain != null) config.services.hyperhive.swarm.ui.domain
|
||||||
|
)
|
||||||
|
);
|
||||||
log.LEVEL = "Warn";
|
log.LEVEL = "Warn";
|
||||||
# Pinned explicitly rather than left to upstream's default
|
# Pinned explicitly rather than left to upstream's default
|
||||||
# (currently `bleve`, a separate full-text index Forgejo
|
# (currently `bleve`, a separate full-text index Forgejo
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue