don't show /v1/api/system/healthcheck/ in access log.
This commit is contained in:
@@ -93,7 +93,7 @@ EXPOSE 8080
|
||||
|
||||
# Health check.
|
||||
#
|
||||
HEALTHCHECK --interval=1m --timeout=3s CMD curl -f http://localhost:8080/v1/api/system/healthcheck || exit 1
|
||||
HEALTHCHECK --interval=10s --timeout=3s CMD curl -f http://localhost:8080/v1/api/system/healthcheck || exit 1
|
||||
|
||||
# Run php-fpm
|
||||
#
|
||||
|
||||
@@ -19,6 +19,6 @@ final class HealthCheck
|
||||
return api_response(Status::OK, [
|
||||
'status' => 'ok',
|
||||
'message' => 'System is healthy',
|
||||
]);
|
||||
], headers: ['X-No-AccessLog' => '1']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user