Skip to content

Commit 01fe145

Browse files
author
Raman
committed
fix: Update asset routing in NGINX configuration for v3.0
1 parent 4a8dc46 commit 01fe145

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

deployment/config/nginx/nginx.dev.conf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ http {
5454
}
5555

5656
rewrite /v1.0/(.*) /$1;
57+
rewrite /v3.0/(.*) /$1;
5758

5859
location ~* ^/wss {
5960
auth_request /auth;
@@ -105,14 +106,14 @@ http {
105106
proxy_pass http://channel_ms;
106107
}
107108

108-
location ~* ^/media {
109+
location ~* ^/assets {
109110
auth_request /auth;
110111
auth_request_set $auth_status $upstream_status;
111112

112-
add_header X-match-uri "/media";
113+
add_header X-match-uri "/assets";
113114
add_header X-uri $1;
114115

115-
rewrite ^(i|/)?/media(/|$)(.*)$ /$4 break;
116+
rewrite ^(i|/)?/assets(/|$)(.*)$ /$4 break;
116117
proxy_pass http://media_ms;
117118
}
118119

deployment/config/nginx/nginx.docker.conf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ http {
7979
}
8080

8181
rewrite /v1.0/(.*) /$1;
82+
rewrite /v3.0/(.*) /$1;
8283

8384

8485
location ~* ^/wss {
@@ -131,14 +132,14 @@ http {
131132
proxy_pass http://channel_ms;
132133
}
133134

134-
location ~* ^/media {
135+
location ~* ^/assets {
135136
auth_request /auth;
136137
auth_request_set $auth_status $upstream_status;
137138

138-
add_header X-match-uri "/media";
139+
add_header X-match-uri "/assets";
139140
add_header X-uri $1;
140141

141-
rewrite ^(i|/)?/media(/|$)(.*)$ /$4 break;
142+
rewrite ^(i|/)?/assets(/|$)(.*)$ /$4 break;
142143
proxy_pass http://media_ms;
143144
}
144145

0 commit comments

Comments
 (0)