Setup TLS/web

This commit is contained in:
AMay 2026-07-31 11:10:21 -05:00
parent 0e37b877b8
commit d1772f48ba
2 changed files with 8 additions and 1 deletions

2
.gitignore vendored
View File

@ -32,3 +32,5 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
# Finder (MacOS) folder config
.DS_Store
*.pem

View File

@ -1,7 +1,12 @@
import { serve } from "bun";
import { serve,file } from "bun";
import index from "./index.html";
const server = serve({
port: 443,
tls:{
cert: file("cert.pem"),
key: file("key.pem")
},
routes: {
// Serve index.html for all unmatched routes.
"/*": index,