Sentry on premise nginx ssl (docker)

Greetings,
Could you please share steps, how to run sentry on premise using https.
I tried several configuration and tricks but every time am getting:

CSRF Verification Failed

when connection using https.
Could you please help.
Thanks.