OpenPostยถ
Descriptionยถ
OpenPost is a self-hosted publishing desk for social media. Teams compose posts once, adapt them per network, schedule them and publish them to Mastodon, Pixelfed, PeerTube, Bluesky, Facebook Pages, Instagram, Threads, X, YouTube, LinkedIn and TikTok from one interface.
Overviewยถ
This role deploys the unmodified official ghcr.io/getopenpost/openpost image as one all process behind the shared OpenResty proxy at publish.<DOMAIN_PRIMARY>.
It stores data in the central PostgreSQL, keeps media in the web-svc-seaweedfs object store when one is deployed, signs users in through Keycloak over OIDC and sends mail through the platform mail service.
An always-on egress relay lets OpenPost publish to the Mastodon, Pixelfed and PeerTube instances of the same deployment without weakening its SSRF guard.
For operation, platform onboarding and the egress design see Administration.md.
Architectureยถ
ARCHITECTURE.md draws OpenPost from its own metadata: the containers it runs under compose, what changes under swarm, how each volume is backed, and every role it depends on or is depended upon by.
Section |
Drawn from |
|---|---|
|
|
|
|
|
|
|
Featuresยถ
Official image only: The role pins an upstream release tag, configures OpenPost purely through environment variables and lets the update tooling propose new release tags.
Keycloak single sign-on: OpenPostโs native OIDC adapter provisions users just in time on their first login, and the platform administrator becomes instance admin through the bootstrap allowlist.
No LDAP adapter: OpenPost ships no LDAP login, so the role declares no
ldapservice; directory accounts sign in through Keycloakโs OpenLDAP federation over OIDC.Egress relay: An nginx stream relay carries the canonical domains of the deployed Mastodon, Pixelfed and PeerTube instances as network aliases on a subnet outside OpenPostโs blocked ranges and forwards the untouched TLS stream by SNI to the shared proxy.
Break-glass admin: A local instance admin is bootstrapped on the first deploy so the instance stays manageable when Keycloak is unavailable.
Data minimisation: Diagnostics, the update check, product telemetry, feedback, public profiles, stock media search and workflow AI are switched off.
Central credentials: Developer app credentials for X, Meta, Threads, LinkedIn, YouTube and TikTok come from the central
APImapping, and a network without credentials stays unavailable.Automated crossposting: A crossposter sidecar polls configured Mastodon, Pixelfed and PeerTube accounts and hands every new post to OpenPost, as a draft for review or for immediate publishing, with per-network shortening, attribution, opt-out by hashtag, loop prevention and mailed reports of failed deliveries.
Quick Setupยถ
Developmentยถ
Clone, set up the workstation, and deploy OpenPost onto the local stack:
git clone https://github.com/infinito-nexus/core.git
cd core
make onboard
make compose-deploy mode=reinstall apps=web-app-openpost full_cycle=false
Productionยถ
Run the published image to provision the inventory and deploy OpenPost to a managed server over SSH. The image logs in as root, so the server must accept root over a public key, and the two key variables are the two halves of one key pair: the private half authenticates the deploy, and the public half is what the deploy keeps authorized for root and installs for the administrator account. Naming a public half that does not belong to the private one locks the running deploy out at its next reconnect.
APP=web-app-openpost
HOST="<your-server>"
DOMAIN="<your-domain>"
TLS_MODE=self_signed
SSH_PUBLIC_KEY="<your-ssh-public-key>"
SSH_PRIVATE_KEY="<your-ssh-private-key-file>"
WORKDIR="$HOME/.infinito.nexus"
mkdir -p "$WORKDIR/inventories"
docker run --rm \
-v "$WORKDIR/inventories:/etc/infinito.nexus/inventories" \
-v "$SSH_PRIVATE_KEY:/run/secrets/deploy_key:ro" \
-e APP="$APP" -e HOST="$HOST" -e DOMAIN="$DOMAIN" -e TLS_MODE="$TLS_MODE" -e SSH_PUBLIC_KEY="$SSH_PUBLIC_KEY" \
ghcr.io/infinito-nexus/core/debian:latest bash -c '
INVENTORY=/etc/infinito.nexus/inventories/production
infinito administration inventory provision "$INVENTORY" \
--inventory-file "$INVENTORY/devices.yml" \
--host "$HOST" \
--include "$APP" \
--vars "{\"TLS_MODE\": \"$TLS_MODE\", \"DOMAIN_PRIMARY\": \"$DOMAIN\", \"SYS_SVC_SSHD_PERMIT_ROOT_LOGIN\": \"prohibit-password\", \"users\": {\"root\": {\"authorized_keys\": [\"$SSH_PUBLIC_KEY\"]}, \"administrator\": {\"authorized_keys\": [\"$SSH_PUBLIC_KEY\"]}}}" &&
infinito administration deploy dedicated "$INVENTORY/devices.yml" \
--password-file "$INVENTORY/.password" \
-u root --private-key /run/secrets/deploy_key \
--diff -vv'
The inventory under $WORKDIR is written by the container as root, including the vault password at inventories/production/.password. Run sudo chown -R "$USER" "$WORKDIR" afterwards to read it.
Developer Notesยถ
See Administration.md for the egress relay, the break-glass procedure, per-network onboarding and the staging checklist.
Further Resourcesยถ
Creditsยถ
Part of the Infinito.Nexus Project and maintained by Kevin Veen-Birkenbach. Licensed under the Infinito.Nexus Community License (Non-Commercial).
That licence covers this role. The software it deploys is a separate grant: AGPL-3.0-only, under which commercial use is allowed. You owe its authors this much: publish the source of changes once you offer it over a network, which a hosted deployment does. Permission for one of the two is not permission for the other.