Enabling https links using snapcraft xwiki

I am using xwiki behind a cloudflare proxy utilizing flexible https to xwiki via nginx.

pages render perfectly but whenever i go to edit i get the error “failed to lock page”

from everything i have read so far it has to do with links back to xwiki are being transformed to https at cloud flare but the receiver is looking for http.

any idea how i can configure it after being deployed via snap so that the links back point to https ?