Skip to content

Commit b3a4c71

Browse files
eballaby913
andauthored
fix: add resource share paths to filesNodeApiPatch for improved routing (#149)
* fix: add resource share paths to filesNodeApiPatch for improved routing * fix: add shared node location path --------- Co-authored-by: aby913 <[email protected]>
1 parent c1e6cc8 commit b3a4c71

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/ingress/controllers/patches.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ func filesNodeApiPatch(ctx context.Context, r *NginxController, s *config.Server
119119
"/api/permission/cache/",
120120
"/api/permission/external/",
121121
"/api/task/",
122+
"~ ^/api/resources/share/(.*)_",
123+
"~ ^/api/preview/share/(.*)_",
124+
"~ ^/api/tree/share/(.*)_",
125+
"~ ^/api/raw/share/(.*)_",
122126
}
123127

124128
var masterLocation = []string{
@@ -130,6 +134,10 @@ func filesNodeApiPatch(ctx context.Context, r *NginxController, s *config.Server
130134
"/api/task/",
131135
"/api/repos/",
132136
"/seafhttp/",
137+
"/api/resources/share/",
138+
"/api/preview/share/",
139+
"/api/tree/share/",
140+
"/api/raw/share/",
133141
}
134142

135143
for node := range podMap {

0 commit comments

Comments
 (0)