Compare commits
2 Commits
789825614e
...
3dc377f9e6
| Author | SHA1 | Date | |
|---|---|---|---|
| 3dc377f9e6 | |||
| 4b8ca04f25 |
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "baudy",
|
||||
"version": "0.0.7",
|
||||
"version": "0.0.8",
|
||||
"module": "index.tsx",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
|
|
|
|||
|
|
@ -22,12 +22,16 @@ app.get('/ggwave.js', () =>
|
|||
|
||||
startup(PORT)
|
||||
|
||||
const hasCerts = await Bun.file('./certs/cert.pem').exists()
|
||||
|
||||
export default {
|
||||
...app.defaults,
|
||||
port: PORT,
|
||||
idleTimeout: 255,
|
||||
...(hasCerts && {
|
||||
tls: {
|
||||
key: Bun.file('./certs/key.pem'),
|
||||
cert: Bun.file('./certs/cert.pem'),
|
||||
},
|
||||
}),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user