File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,25 @@ server {
186
186
proxy_pass http://upstream_router;
187
187
}
188
188
189
+ {{ if $cfg.EnableEnterprise -}}
190
+ location ~ ^/api/namespaces/([^/]+)/support$ {
191
+ {{ set_upstream "cloud-api" 8080 }}
192
+
193
+ auth_request /auth;
194
+ auth_request_set $tenant_id $upstream_http_x_tenant_id;
195
+ auth_request_set $username $upstream_http_x_username;
196
+ auth_request_set $id $upstream_http_x_id;
197
+ auth_request_set $role $upstream_http_x_role;
198
+ error_page 500 =401 /auth;
199
+ proxy_http_version 1.1;
200
+ proxy_set_header X-ID $id;
201
+ proxy_set_header X-Role $role;
202
+ proxy_set_header X-Tenant-ID $tenant_id;
203
+ proxy_set_header X-Username $username;
204
+ proxy_pass http://upstream_router;
205
+ }
206
+ {{ end -}}
207
+
189
208
location ~ ^/(install.sh|kickstart.sh)$ {
190
209
{{ set_upstream "api" 8080 }}
191
210
You can’t perform that action at this time.
0 commit comments