First, based on your config, this looks like you’re running a really old version of Sentry. Seems like 7.x.
With that said, you should be able to just have a server{}
block that listens on a different port or domain that only passes along requests for the store endpoint.
Somethign like:
server {
listen 443;
server_name frontend.yoursentry.com;
location ~ ^/api/(\d+)/store/$ {
uwsgi_pass ...
}
}
This config will only allow request to this endpoint through this server block.