diff --git a/config/deploy.yml b/config/deploy.yml index 45ae98a..73a2edf 100644 --- a/config/deploy.yml +++ b/config/deploy.yml @@ -20,7 +20,7 @@ proxy: ssl: true host: bright.futureporn.net healthcheck: - path: /up + path: /api/health interval: 2 timeout: 2 diff --git a/services/bright/lib/bright_web/router.ex b/services/bright/lib/bright_web/router.ex index f318fbe..ec63843 100644 --- a/services/bright/lib/bright_web/router.ex +++ b/services/bright/lib/bright_web/router.ex @@ -48,7 +48,6 @@ defmodule BrightWeb.Router do get "/patrons", PatronController, :index get "/about", PageController, :about get "/api", PageController, :api - get "/health", PageController, :health resources "/orders", OrderController, only: [:create, :show] @@ -83,6 +82,7 @@ defmodule BrightWeb.Router do scope "/api", BrightWeb do pipe_through :api resources "/urls", UrlController, except: [:new, :edit] + get "/health", PageController, :health end # Enable LiveDashboard and Swoosh mailbox preview in development