Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3384976
D12558.id41663.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
568 B
Referenced Files
None
Subscribers
None
D12558.id41663.diff
View Options
diff --git a/keyserver/src/keyserver.js b/keyserver/src/keyserver.js
--- a/keyserver/src/keyserver.js
+++ b/keyserver/src/keyserver.js
@@ -159,6 +159,10 @@
server.use(express.json({ limit: '250mb' }));
server.use(cookieParser());
+ server.get('/health', (req: $Request, res: $Response) => {
+ res.send('OK');
+ });
+
// Note - the order of router declarations matters. On prod we have
// keyserverBaseRoutePath configured to '/', which means it's a catch-all.
// If we call server.use on keyserverRouter first, it will catch all
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 10:56 PM (5 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2598501
Default Alt Text
D12558.id41663.diff (568 B)
Attached To
Mode
D12558: [keyserver] add health check route to keyserver for use by load balancer
Attached
Detach File
Event Timeline
Log In to Comment