chore(ingress): prevent external ingress to /api/heap
- also prevent ingress to similiar routes when deployed via docker compose
This commit is contained in:
Родитель
64226cb4cd
Коммит
4b8b137e63
|
@ -128,6 +128,11 @@ http {
|
|||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
|
||||
location ~* ^/((metrics)|(api/health)|(api/heap)) {
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
return 301 /
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
|
||||
location = /50x.html {
|
||||
|
|
|
@ -39,4 +39,17 @@ spec:
|
|||
name: speckle-frontend
|
||||
port:
|
||||
name: www
|
||||
{{- end }}
|
||||
- pathType: Exact
|
||||
path: "/api/heap"
|
||||
backend:
|
||||
service:
|
||||
{{- if .Values.frontend_2.enabled }}
|
||||
name: speckle-frontend-2
|
||||
port:
|
||||
name: web
|
||||
{{- else }}
|
||||
name: speckle-frontend
|
||||
port:
|
||||
name: www
|
||||
{{- end }}
|
||||
|
|
Загрузка…
Ссылка в новой задаче