From b95bef33e8bd495399721c115f97199dbe69c184 Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 10 Apr 2024 18:40:46 +0100 Subject: [PATCH] Updated nginx config for health checks Signed-off-by: Matthew --- conf/conf.d/default.conf | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/conf/conf.d/default.conf b/conf/conf.d/default.conf index 1b207ab..a04e12e 100644 --- a/conf/conf.d/default.conf +++ b/conf/conf.d/default.conf @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2023 Sidings Media +# SPDX-FileCopyrightText: 2023-2024 Sidings Media # SPDX-License-Identifier: CC0-1.0 server { @@ -16,12 +16,7 @@ server { alias /usr/share/nginx/html/openapi.json; } - location = /docs { - default_type "text/html"; - alias /usr/share/nginx/html/openapi.html; - } - - location /health { + location /openapi/health { return 200 "healthy\n"; default_type "text/plain"; }