mirror of
https://github.com/coder/code-server.git
synced 2026-02-19 18:01:15 +08:00
Create health-server.js
This commit is contained in:
parent
0b2136af8d
commit
213c841b3c
11
health-server.js
Normal file
11
health-server.js
Normal file
@ -0,0 +1,11 @@
|
||||
const http = require("http");
|
||||
|
||||
http.createServer((req, res) => {
|
||||
if (req.url === "/healthz") {
|
||||
res.writeHead(200);
|
||||
res.end("ok");
|
||||
} else {
|
||||
res.writeHead(404);
|
||||
res.end();
|
||||
}
|
||||
}).listen(3000);
|
||||
Loading…
x
Reference in New Issue
Block a user