import { Hono } from 'https://deno.land/x/hono@v3.11.10/mod.ts'
import { basicAuth, logger } from 'https://deno.land/x/hono@v3.11.10/middleware.ts'
const app = new Hono()
app.use('*', logger())
app.get(
'/ping',
(c) => c.text('pong')
)
const cert = await Deno.readTextFile('/root/fullchain.pem')
const key = await Deno.readTextFile('/root/privkey.pem')
Deno.serve({ port: 443, cert, key }, app.fetch)
import { Hono } from 'https://deno.land/x/hono@v3.11.10/mod.ts'
import { basicAuth, logger } from 'https://deno.land/x/hono@v3.11.10/middleware.ts'
const app = new Hono()
app.use('*', logger())
app.get(
'/ping',
(c) => c.text('pong')
)
const cert = await Deno.readTextFile('/root/fullchain.pem')
const key = await Deno.readTextFile('/root/privkey.pem')
Deno.serve({ port: 443, cert, key }, app.fetch)