Files
inbuxa-installer/internal/release/release.go
T
jcoffey-dev 6e05b0cc27 Install the mail server on the host: release binary, its own user, a systemd unit
--server host now installs instead of refusing. The server is the release
binary for this machine's architecture, checked against a SHA-256 written
into the source (internal/release), run once with --version before it is
put in place, and installed as /usr/local/bin/inbuxa-server so it does not
collide with this program. It gets a system user, its configuration and
data in <dir>/server, its environment in <dir>/server.env (0600), and
inbuxa-server.service.

First boot is the container sequence. During setup a drop-in under /run
lets the server reach loopback and nothing else, and the step's credential
is in a root-only file rather than the unit. Then the listeners are fitted
to the host: plain HTTP to 127.0.0.1:8081, where a container install
publishes it; the server's own 443 listener removed, since the proxy holds
443; on --local every listener on loopback. The finished unit has
ConditionPathExists on the configuration, so a server that loses it stays
down instead of coming back in bootstrap mode.

The console and the webmail stay containers. Beside a host server the
webmail and Caddy share the host's network and reach it on loopback; the
console keeps the project network. A container install renders the same
files as before.

status and export report the server as host. A re-run converges; moving the
server between a container and the host is refused, not built yet.

e2e/cases/install-host.sh: 43 checks on Debian 13. install-local,
install-public, status-export and topology pass unchanged.
2026-10-11 22:32:51 -07:00

34 lines
1.4 KiB
Go

// SPDX-FileCopyrightText: 2026 Coffey Labs LLC
// SPDX-License-Identifier: AGPL-3.0-or-later
// Package release is which version of the mail server this installer puts on
// a machine, as an image or as a binary, and what that binary must hash to.
//
// One version for both shapes, so a server moved from a container to the host
// is the same program, and the plan, the image tag and the download cannot
// name three different releases.
package release
import "fmt"
// ServerVersion is the inbuxa-server release this installer installs.
const ServerVersion = "2026.10.10.1"
// ServerImage is that release as a container image.
const ServerImage = "registry.coffeylabs.org/inbuxa/inbuxa-server:" + ServerVersion
// ServerSHA256 is the SHA-256 of each architecture's release tarball, copied
// from the release's SHA256SUMS when the version was moved and checked here
// rather than fetched beside the download: a checksum that arrives with the
// file only proves the file arrived.
var ServerSHA256 = map[string]string{
"amd64": "118087b0f7c98d326e3622a1732d733d1869c8b9210cc8a4eeb5c7101009daa5",
"arm64": "128c1234032bf4806e44285271469db6eba246f8944d474c92f9d3fdbbcd03f4",
}
// ServerTarball is where the release's tarball for an architecture is.
func ServerTarball(arch string) string {
return fmt.Sprintf("https://git.coffeylabs.org/inbuxa/inbuxa-server/releases/download/v%s/inbuxa-linux-%s.tar.gz",
ServerVersion, arch)
}