From db9d350cae5f3b1e2bd125030c8148484568cdeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Mart=C3=ADnez?= Date: Mon, 12 Jan 2015 16:00:39 +0100 Subject: [PATCH] Add healthcheck configuration examples --- config/environments/development.js.example | 11 +++++++++++ config/environments/production.js.example | 11 +++++++++++ config/environments/staging.js.example | 11 +++++++++++ config/environments/test.js.example | 11 +++++++++++ 4 files changed, 44 insertions(+) diff --git a/config/environments/development.js.example b/config/environments/development.js.example index d684cd7f..9627c905 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -150,6 +150,17 @@ var config = { // X-Tiler-Profile header containing elapsed timing for various // steps taken for producing the response. ,useProfiler:true + // Settings for the health check available at /health + ,health: { + enabled: false, + username: 'localhost', + query: "SELECT 1::int as interactivity_id, '0101000020110F0000EE866678CE876D41466F35C2EC1150C1'::geometry as geom, 'Lorem ipsum dolor sit amet' as label", + srid: 3857, + geometry_field: 'geom', + z: 0, + x: 0, + y: 0 + } }; module.exports = config; diff --git a/config/environments/production.js.example b/config/environments/production.js.example index 54b85364..2fc6b0bd 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -159,6 +159,17 @@ var config = { handler: 'inline' } } + // Settings for the health check available at /health + ,health: { + enabled: true, + username: 'localhost', + query: "SELECT 1::int as interactivity_id, '0101000020110F0000EE866678CE876D41466F35C2EC1150C1'::geometry as geom, 'Lorem ipsum dolor sit amet' as label", + srid: 3857, + geometry_field: 'geom', + z: 0, + x: 0, + y: 0 + } }; module.exports = config; diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index 23baf426..dd2a5bb3 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -159,6 +159,17 @@ var config = { handler: 'inline' } } + // Settings for the health check available at /health + ,health: { + enabled: false, + username: 'localhost', + query: "SELECT 1::int as interactivity_id, '0101000020110F0000EE866678CE876D41466F35C2EC1150C1'::geometry as geom, 'Lorem ipsum dolor sit amet' as label", + srid: 3857, + geometry_field: 'geom', + z: 0, + x: 0, + y: 0 + } }; module.exports = config; diff --git a/config/environments/test.js.example b/config/environments/test.js.example index db807c85..1af3c978 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -146,6 +146,17 @@ var config = { // X-Tiler-Profile header containing elapsed timing for various // steps taken for producing the response. ,useProfiler:true + // Settings for the health check available at /health + ,health: { + enabled: false, + username: 'localhost', + query: "SELECT 1::int as interactivity_id, '0101000020110F0000EE866678CE876D41466F35C2EC1150C1'::geometry as geom, 'Lorem ipsum dolor sit amet' as label", + srid: 3857, + geometry_field: 'geom', + z: 0, + x: 0, + y: 0 + } }; module.exports = config;