Add url prefix in reverse proxy

I have run sentry in docker. Configured a nginx proxy on the host sentry.local . Everything is working.
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_pass http://localhost:9000;

But I need to add a prefix to my main domain. So that the sentry was like this url: http://sentry.local/stat/
Changing the parameter system.url-prefix didn’t help.
All the same, requests are often sent to url without a prefix, for example /api/0/organizations/sentry/projects/?all_projects=1&collapse=latestDeploys and other request to the api and static files.
Can you please tell me if it is possible to have url in such a form as I want ?

Unfortunately you cannot host sentry from a sub-path. It needs its own domain.

Ok, I got it, thanks for the quick response

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.