Skip to content

Commit 4c554d5

Browse files
committed
fix(nginx): _assets should rewrite to _static/sentry/dist
Our default fallback, `_assets`, assumes we use a CDN which is not the case on self-hosted. This patch adds a stop-gap fix for front-end URLs asking for this path. Should fix #3479 and #3470.
1 parent 245f3d1 commit 4c554d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nginx.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ http {
9898
location / {
9999
proxy_pass http://sentry;
100100
}
101+
location /_assets/ {
102+
proxy_pass http://sentry/_static/dist/sentry/;
103+
}
101104
location /_static/ {
102105
proxy_pass http://sentry;
103106
proxy_hide_header Content-Disposition;

0 commit comments

Comments
 (0)