Compare commits
3 changed files with 14 additions and 45 deletions
|
|
@ -87,22 +87,12 @@ in
|
||||||
|
|
||||||
openFirewall = lib.mkOption {
|
openFirewall = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = true;
|
||||||
example = true;
|
|
||||||
description = ''
|
description = ''
|
||||||
Open `httpPort` + `sshPort` in the host firewall. Off by
|
Open `httpPort` + `sshPort` in the host firewall. Off when
|
||||||
default (#651, secure-by-default): the forge is reachable
|
the forge should only be reachable from inside the host.
|
||||||
from the host + every agent container via `localhost` either
|
(The container shares host netns, so this is the only
|
||||||
way (shared netns), so the firewall opens only matter for
|
firewall layer that matters.)
|
||||||
access from outside the host. Flip to `true` when you want
|
|
||||||
the operator's browser / external git clients to hit the
|
|
||||||
forge directly. (The container shares host netns, so this
|
|
||||||
is the only firewall layer that matters.)
|
|
||||||
|
|
||||||
**Breaking change as of #651**: this used to default to
|
|
||||||
`true`. If you relied on the old default for external
|
|
||||||
reach, add `services.hyperhive.forge.openFirewall = true;`
|
|
||||||
to your host config before rebuilding.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -82,23 +82,11 @@ in
|
||||||
|
|
||||||
openFirewall = lib.mkOption {
|
openFirewall = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = true;
|
||||||
example = true;
|
|
||||||
description = ''
|
description = ''
|
||||||
Open `port` in the host firewall. Off by default (#651,
|
Open `port` in the host firewall. Off when the gateway should
|
||||||
secure-by-default). Flip to `true` to expose the gateway to
|
only be reachable from inside the host (e.g. behind another
|
||||||
the operator's browser / external clients — required for any
|
reverse proxy that handles TLS termination).
|
||||||
out-of-host reach, since the agents themselves talk to
|
|
||||||
hive-c0re via the per-agent unix sockets and don't need the
|
|
||||||
nginx vhost. Leave off when running behind another reverse
|
|
||||||
proxy (e.g. caddy / traefik on the host) that handles TLS
|
|
||||||
termination + forwards to `port`.
|
|
||||||
|
|
||||||
**Breaking change as of #651**: this used to default to
|
|
||||||
`true`. If you relied on the old default for external reach
|
|
||||||
(the common case — the gateway is the operator's primary
|
|
||||||
entry point), add `services.hyperhive.gateway.openFirewall = true;`
|
|
||||||
to your host config before rebuilding.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -98,21 +98,12 @@ in
|
||||||
|
|
||||||
openFirewall = lib.mkOption {
|
openFirewall = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = true;
|
||||||
example = true;
|
|
||||||
description = ''
|
description = ''
|
||||||
Open `httpPort` in the host firewall. Off by default (#651,
|
Open `httpPort` in the host firewall. Off when the
|
||||||
secure-by-default): the homeserver is reachable from the
|
homeserver should only be reachable from inside the host
|
||||||
host + every agent container via `localhost` either way
|
(e.g. while bringing the integration up before announcing
|
||||||
(shared netns), so the firewall open only matters for
|
it to other hives).
|
||||||
access from outside the host. Flip to `true` when announcing
|
|
||||||
the homeserver to other hives or when an external matrix
|
|
||||||
client needs to reach the client-server API directly.
|
|
||||||
|
|
||||||
**Breaking change as of #651**: this used to default to
|
|
||||||
`true`. If you relied on the old default for external reach,
|
|
||||||
add `services.hyperhive.matrix.openFirewall = true;` to
|
|
||||||
your host config before rebuilding.
|
|
||||||
|
|
||||||
Note: federation (the matrix-spec well-known port 8448) is
|
Note: federation (the matrix-spec well-known port 8448) is
|
||||||
intentionally not opened here. tuwunel serves the federation
|
intentionally not opened here. tuwunel serves the federation
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue