Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿš€ improve fly (#449)

* ๐Ÿš€ improve fly

* ๐Ÿš€ improve fly

authored by

Thibault Le Ouay and committed by
GitHub
da378734 fc68d900

+18 -13
+12 -12
apps/server/fly.toml
··· 15 15 force_https = true 16 16 auto_stop_machines = true 17 17 auto_start_machines = true 18 - min_machines_running = 0 18 + min_machines_running = 6 19 19 processes = ["app"] 20 20 21 21 [deploy] 22 - strategy = "rolling" 22 + strategy = "canary" 23 23 24 24 [[http_service.checks]] 25 25 grace_period = "10s" 26 - interval = "60s" 26 + interval = "15s" 27 27 method = "GET" 28 28 timeout = "5s" 29 29 path = "/ping" 30 30 31 31 32 32 33 - [checks] 34 - [checks.name_of_your_http_check] 35 - port = 3000 36 - type = "http" 37 - interval = "15s" 38 - timeout = "10s" 39 - grace_period = "30s" 40 - method = "get" 41 - path = "/ping" 33 + # [checks] 34 + # [checks.name_of_your_http_check] 35 + # port = 3000 36 + # type = "http" 37 + # interval = "15s" 38 + # timeout = "10s" 39 + # grace_period = "30s" 40 + # method = "get" 41 + # path = "/ping" 42 42 43 43 # [[services.http_checks]] 44 44 # interval = 10000
+2
apps/server/src/index.ts
··· 1 1 import { sentry } from "@hono/sentry"; 2 2 import { Hono } from "hono"; 3 + import { logger } from "hono/logger"; 3 4 4 5 import { checkerRoute } from "./checker"; 5 6 import { env } from "./env"; ··· 23 24 /** 24 25 * Ping Pong 25 26 */ 27 + app.use("/ping", logger()); 26 28 app.get("/ping", (c) => c.json({ ping: "pong", region: env.FLY_REGION }, 200)); 27 29 28 30 /**
+2
apps/server/src/public/index.ts
··· 1 1 import { Hono } from "hono"; 2 + import { logger } from "hono/logger"; 2 3 3 4 import { status } from "./status"; 4 5 5 6 export const publicRoute = new Hono(); 7 + publicRoute.use("*", logger()); 6 8 7 9 publicRoute.route("/status", status);
+2 -1
apps/server/src/v1/index.ts
··· 1 1 import { OpenAPIHono } from "@hono/zod-openapi"; 2 + import { logger } from "hono/logger"; 2 3 3 4 import type { Plan } from "@openstatus/plans"; 4 5 ··· 26 27 * Authentification Middleware 27 28 */ 28 29 api.use("/*", middleware); 29 - 30 + api.use("/*", logger()); 30 31 api.route("/monitor", monitorApi); 31 32 api.route("/incident_update", incidenUpdatetApi); 32 33