chore(ingress): prevent external ingress to /api/heap

- also prevent ingress to similiar routes when deployed via docker compose
This commit is contained in:
Iain Sproat 2024-02-29 12:54:22 +00:00
Родитель 64226cb4cd
Коммит 4b8b137e63
Не найден ключ, соответствующий данной подписи
2 изменённых файлов: 18 добавлений и 0 удалений

Просмотреть файл

@ -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 }}