Hello. we run docker image of sentry on our server. When it works without https and domains ( by ip access) it works great and we can see error from our apps. But when we setup https and domain with nginx proxy config there are some errors when we try lo send events in sentry.
sentry.init with debug = true gives us following message when we try to send smth to sentry:
[sentry] ERROR: Unexpected status code: 403
with msg CSRF Verification Failed.
We can provide any additional data if needed. Can you advise what should we do to fix this?
Yes, i uncomment ssl config settings in sentry.conf.py and change system.internal-url-prefix in confing.yml and rebuild sentry after that. Unfortunatelly this wasn’t the cure. Problem still there. Maybe i can bind my sentry to use ssl over https in another way?
I think the issue here is the SSL-terminating Nginx instance is forwarding everything to web:9000 which is the Sentry web backend. So it is lacking the crucial Relay path forwarding for event storage endpoints that are defined in our nginx configuration. If you replace that web:9000 with nginx:80, your issue should be resolved.