2 openfire server 1 database connection

Hi,

I’m working on a project that requires XMPP chat between user at Internet/public zone and support user is at Intranet/internal zone. These 2 network zones are closed between each other, however, these 2 zones are connected to the same database. In simple words, public_server-to-database-to-internal_server.

So, I would like to know, how to setup or configure the openfire in such scenario?

Thank you.

Sincerely,
David Wong.