Custom HTML page

Is it possible to add a custom html page to the bitbucket install.

i.e. a public resource such as /monitorbitbucket.html

In Jira or Confluence I can create a custom file under $SERVER/atlassian-${PRODUCT}/monitor-app.html

1 Like

Hi Graham,

I would suggest the servlet plugin module that you can use to return a custom HTML page.
Your servlet implementation would extend HttpServlet and implement/override doGet like so

  @Override
  protected void doGet(final HttpServletRequest req, final HttpServletResponse resp)
    throws ServletException, IOException {
    resp.setContentType("text/html;charset=UTF-8");
    resp
      .getWriter()
      .println(
        "<h1>Hello World</h1>"
      );
  }

Hope that gets you started.
Ulrich
// Izymes