Skip to content

Add one-command VPS deploy and diagnostic script for opencode-hub - #1712

Open
cramelolo291-bot wants to merge 17 commits into
CodebuffAI:mainfrom
cramelolo291-bot:main
Open

cramelolo291-bot wants to merge 17 commits into
CodebuffAI:mainfrom
cramelolo291-bot:main

Conversation

@cramelolo291-bot

@cramelolo291-bot cramelolo291-bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Summary

Adds a one-command VPS deployment and a diagnostic script for opencode-hub, plus the supporting Docker/Caddy stack and documentation.

What changed

  • opencode-hub/deploy/ — Docker Compose + Caddy stack (HTTPS via Let's Encrypt/ZeroSSL), .env.example, Caddyfile, and detailed README.md covering DNS, verification, backup, and troubleshooting.
  • install.sh / bootstrap.sh — one-command install on a fresh VPS: clones the repo, installs Docker, fills .env, creates the login, and starts all containers.
  • doctor.sh — diagnostic script to inspect a deployed opencode-hub.
  • Dockerfiles — Dockerfile.hub, Dockerfile.opencode, Dockerfile.hermes for the hub/data server, opencode agent, and optional Hermes agent.
  • .dockerignore / .gitignore — exclude runtime data, secrets, and local state from build context.
  • README.md updates — documents the permanent VPS deployment path with a custom domain.

Why

The hub previously only ran in ephemeral sandboxes. This makes it deployable to a real VPS with a stable HTTPS URL and automatic certificates, while keeping opencode and Hermes on the internal compose network.

Fixes none (new feature).

codebuff-team and others added 3 commits November 24, 2026 12:59
Installing on a fresh VPS still meant cloning the repo, hand-editing .env
and hashing a password before Caddy would serve the domain. Add
deploy/install.sh (Docker + .env + basic auth + compose), deploy/bootstrap.sh
for a one-line curl install, and an auth.caddy snippet imported by the
Caddyfile so the domain is not openly usable. The opencode image now installs
the real npm package (opencode-ai) and runs `opencode web`, so the deployed
root shows the actual opencode UI instead of the API-only server.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
When the domain does not answer, the useful facts are spread across DNS,
listening ports, container states and Caddy's certificate store, and the
README only lists symptoms. Add a read-only doctor.sh that checks all of
them in one run and prints a fix suggestion for each failure, so a deploy
can be triaged on the VPS without guessing or reading logs first.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

PR checks passed

Title, description and scope all look right. A maintainer
will take it from here.

@cramelolo291-bot
cramelolo291-bot marked this pull request as ready for review November 24, 2026 21:17
@cramelolo291-bot
cramelolo291-bot marked this pull request as draft November 24, 2026 21:17
@cramelolo291-bot
cramelolo291-bot marked this pull request as ready for review November 24, 2026 21:17
Sync public snapshot from freebuff-private
@cramelolo291-bot
cramelolo291-bot marked this pull request as draft November 24, 2026 21:38
@cramelolo291-bot
cramelolo291-bot marked this pull request as ready for review November 24, 2026 21:38
@codebuff-team

Copy link
Copy Markdown
Contributor

This PR doesn't fit here. It adds a whole new subsystem — opencode-hub/ — that proxies and deploys a different open-source project (anomalyco/opencode) plus an unrelated "Hermes Agent" from NousResearch, with Docker/Caddy/VPS bootstrap scripts, systemd units, and curl-pipe-bash installers. None of this touches Freebuff/Codebuff functionality; the PR body itself says it is "Bukan produk resmi opencode maupun Freebuff" (not an official product of either). That's a strong signal it belongs in its own repo, not this one.

Beyond scope, the content raises real red flags:

  • data/resources.json cites a security incident (nexusrootlab/incident, "OpenCode Zen" leak dated 2026-04-02) and a registry updated field dated 2026-11-24 — future dates and an unverifiable/likely fabricated incident report baked in as supposed justification for security advice. That's not something a reviewer can trust without independent verification, and shouldn't ship as fact in a README.
  • The bootstrap/install scripts (bootstrap.sh, install.sh) run as root via curl | sudo bash, clone an arbitrary branch/repo, and build/install an external project's Docker images and NousResearch's installer script (curl ... | bash inside Dockerfile.hermes). That's a meaningful supply-chain surface for something unrelated to this project's purpose.
  • At +3199/-0 across 25 files, written in Indonesian, with no tests and no integration with any existing Freebuff code paths, this is far too large and far too tangential for a maintainer to port by hand.

If the goal is to deploy opencode agents, that belongs in its own repository rather than inside Freebuff's mirror. Recommend closing this PR; it's not something that can be meaningfully ported into the private tree.

@codebuff-team codebuff-team added bot:triaged Classified by the community triage bot pr:rejected Not a change this project wants; closed with an explanation labels Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:triaged Classified by the community triage bot pr:rejected Not a change this project wants; closed with an explanation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants