Fix hostname binding and add healthcheck to docker
This commit is contained in:
parent
673c344ff4
commit
09bc9c6b42
4 changed files with 9 additions and 10 deletions
|
@ -16,9 +16,8 @@ const fetch = (req: Request) => {
|
|||
|
||||
Bun.serve({
|
||||
port: Bun.env.PORT || 80,
|
||||
hostname: Bun.env.HOSTNAME || "localhost",
|
||||
static: {
|
||||
"/api/healthcheck": new Response("All good!"),
|
||||
"/healthcheck": new Response("All good!"),
|
||||
"/": new Response(await Bun.file("./src/index.html").bytes(), {
|
||||
headers: {
|
||||
"Content-Type": "text/html",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue