Skip to content
CzplPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

sshcard

Interactive SSH business card for czpl.dev, built with Wish and Bubble Tea.

Prerequisites

  • Go 1.24+
  • An SSH host key at ./data/key (generate one if needed):
mkdir -p data
ssh-keygen -t ed25519 -f data/key -N ""

Local development

From the repo root:

go run .

Local defaults use ./data/key, ./static, SSH port 23234, and HTTP port 8080 (no sudo required).

Override any setting with environment variables:

HTTP_PORT=3000 SSH_PORT=2222 go run .

Production (Fly.io)

Deploy:

fly deploy

Connect:

ssh czpl.dev

Production paths and ports are set in fly.toml:

Variable Value
HOST_KEY_PATH /data/key (Fly volume)
STATIC_DIR /static
HTTP_PORT 80

Project layout

main.go      entry point
server.go    HTTP + SSH servers
config.go    env-based configuration
model.go     TUI model and menu content
view.go      TUI rendering
static/      landing page assets
data/        local SSH host key (private key gitignored)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址