Skip to content

Commit

Permalink
Updated nginx config for health checks
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew <[email protected]>
  • Loading branch information
Computroniks committed Apr 10, 2024
1 parent 7c45871 commit b95bef3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions conf/conf.d/default.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023 Sidings Media
# SPDX-FileCopyrightText: 2023-2024 Sidings Media
# SPDX-License-Identifier: CC0-1.0

server {
Expand All @@ -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";
}
Expand Down

0 comments on commit b95bef3

Please sign in to comment.