News for hackers. Stuff that matters.
Re:Show HN: Pbnj – A minimal, self-hosted pastebin you can d... by davidcollantes on Friday December 05, 2025 @11:56AM (#46163920)
HOWTO without CloudFlare, is it possible?
Re:Show HN: Pbnj – A minimal, self-hosted pastebin you can d... by thunderbong on Friday December 05, 2025 @12:39PM (#46164535)
pnpm run build

should do it

Re:Show HN: Pbnj – A minimal, self-hosted pastebin you can d... by davidcollantes on Friday December 05, 2025 @12:55PM (#46164762)
That creates `dist` with:

404.png .assetsignore _astro/ bread.png favicon.png favicon.svg jelly.png lock.png logo.png og-image.png pbnj.png peanut.png _routes.json styles/ _worker.js/

In it. What comes next?

Re:Show HN: Pbnj – A minimal, self-hosted pastebin you can d... by catapart on Friday December 05, 2025 @01:28PM (#46165219)
- navigate to dist directory

- run pnpm dlx http-serve

- navigate to one of the provided ip addresses

(this uses the tunnl.gg service and is not necessary for local network access)

- [optional, for access via internet] run ssh -t -R 80:[provided ip address including port] proxy.tunnl.gg

Re:Show HN: Pbnj – A minimal, self-hosted pastebin you can d... by davidcollantes on Friday December 05, 2025 @02:02PM (#46165733)
That gave me some other errors. I am giving up. Thanks for helping!
Re:Show HN: Pbnj – A minimal, self-hosted pastebin you can d... by Numerlor on Friday December 05, 2025 @03:00PM (#46166501)
Fwiw if you want a simple pastebin, I've been running pinnwand for a couple years without any issues off of a single short docker compose file, I think running it on host also shouldn't be complicated
Re:Show HN: Pbnj – A minimal, self-hosted pastebin you can d... by mervz on Friday December 05, 2025 @02:21PM (#46166007)
Crazy that people really need instructions on how to self-host stuff these days... this stuff used to be something most devs could figure out.
Re:Show HN: Pbnj – A minimal, self-hosted pastebin you can d... by som on Friday December 05, 2025 @05:00PM (#46167953)
I use CloudFlare a lot for "self hosting" .. but I also run an old pi from home with Bun in place of workers. Suprisingly compatible and low lift.

Not exactly "without CloudFlare", but for true compat you can probably also self host workerd itself which is open source: github.com/cloudflare/workerd

Re:Show HN: Pbnj – A minimal, self-hosted pastebin you can d... by bhavnicksm on Friday December 05, 2025 @05:48PM (#46168417)
Hey!

Right now, some things are somewhat hard-coded to be Cloudflare compatible. If someone's willing, you can just deploy this without Cloudflare, but you'd need to dig into the code a little.

In the future releases, I'll make it possible to host it on VPCs and release a Dockerfile along with it, so that should help a little.

Thanks for checking the project out!