Compare commits

...

2 Commits

Author SHA1 Message Date
3dc377f9e6 Bump version to 0.0.8
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 13:39:31 -07:00
4b8ca04f25 Make TLS optional when certs don't exist
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 13:39:21 -07:00
2 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "baudy", "name": "baudy",
"version": "0.0.7", "version": "0.0.8",
"module": "index.tsx", "module": "index.tsx",
"type": "module", "type": "module",
"bin": { "bin": {

View File

@ -22,12 +22,16 @@ app.get('/ggwave.js', () =>
startup(PORT) startup(PORT)
const hasCerts = await Bun.file('./certs/cert.pem').exists()
export default { export default {
...app.defaults, ...app.defaults,
port: PORT, port: PORT,
idleTimeout: 255, idleTimeout: 255,
...(hasCerts && {
tls: { tls: {
key: Bun.file('./certs/key.pem'), key: Bun.file('./certs/key.pem'),
cert: Bun.file('./certs/cert.pem'), cert: Bun.file('./certs/cert.pem'),
}, },
}),
} }