title: How to add a health endpoint in existing AEM Quickstart JAR?
body: <p>I have AEM 6.4 Quickstart JAR to work on AEM OSGI bundles. I am trying to deploy this JAR file using docker.</p>
  
  <p>I am successful in deploying this JAR using docker but our cloud platform services give us a random IP and PORT for each &amp; every new deployment.</p>
  
  <p>In order to fetch a static IP and PORT, we need to configure a health check endpoint inside this JAR so that our NGINX manages to map the random IP &amp; PORT to a static IP &amp; PORT.</p>
  
  <p>So my question is:</p>
  
  <ol>
  <li><p>Can I unpack the Quickstart JAR and do something such that whenever the Quickstart JAR is deployed and if I hit "http://:/health" it should give me the status JSON as <code>{"status":"UP"}</code>?</p></li>
  <li><p>Also, if I cant do above thing, then can I wrap the existing Quickstart JAR into a new JAR, and add a health endpoint in the new JAR, which gives me the status JSON as <code>{"status":"UP"}</code>?</p></li>
  </ol>
  
  <p>Thanks in advance!</p>