Hello!
I’ve got my sentry up and running on sentry.example.com
, but now it’s necessary to separate sentry admin panel and the endpoint for reports, which is in my case could be done only via separate domains. So what I want to get is something like that
upstream sentry {
server 127.0.0.1:9000;
}
server {
listen 443 ssl http2;
server_name sentry.example.com;
...
location / {
deny all;
}
location ~ ^/api/[1-9]\d*/ {
proxy_pass http://sentry;
}
}
server {
listen 443 ssl http2;
server_name sentryadmin.example.com;
...
location / {
proxy_pass http://sentry;
}
}
which should, as I thought, separate requests for sentry and relay on the level of my nginx (standalone), and pass them into the nginx in the container
But I’m not able to do it, requests from sentryadmin.example.com
are being passed through to the sentry, but it goes into the redirect-loop, while sentry.example.com
works fine.
What am I missing here? Is it a viable solution? Is it possible to do so?
Now I’m thinking about spinning up the nginx container which will replace the default onpremise nginx and doing the proxying from there.
I’ve seen suggestions to use sentry relay for something similar, but there is already a default relay container so It would be ideal to use it instead of creating another one.