Setup TLS/web
This commit is contained in:
parent
0e37b877b8
commit
d1772f48ba
2
.gitignore
vendored
2
.gitignore
vendored
@ -32,3 +32,5 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
|
||||
|
||||
# Finder (MacOS) folder config
|
||||
.DS_Store
|
||||
|
||||
*.pem
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user