We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4d0532 commit 4d9335fCopy full SHA for 4d9335f
1 file changed
resources/healthcheck.mjs
@@ -1,11 +1,9 @@
1
-import fetch from 'node-fetch'
2
-
3
// Kill myself after 5 second timeout
4
setTimeout(() => {
5
process.exit(1)
6
}, 5000)
7
8
-fetch(`http://localhost:${process.env.CMD_PORT || '3000' }/_health`, {headers: { "user-agent": "hedgedoc-container-healthcheck/1.1"}}).then((response) => {
+fetch(`http://localhost:${process.env.CMD_PORT || '3000' }/_health`, {headers: { "user-agent": "hedgedoc-container-healthcheck/1.2"}}).then((response) => {
9
if (!response.ok) {
10
11
}
0 commit comments