feat(ingress): lab7 enable HTTPS and upstream mTLS

This commit is contained in:
Голиков Maximillian Антон
2026-11-25 08:02:23 +03:00
parent 94c35d3c2c
commit 317fc4097d
6 changed files with 108 additions and 7 deletions
+12 -2
View File
@@ -23,11 +23,21 @@ http {
}
server {
listen 8080;
listen 8443 ssl;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_certificate /run/ingress/ingress.crt;
ssl_certificate_key /run/ingress/ingress.key;
server_tokens off;
location / {
proxy_pass http://backend;
proxy_pass https://backend;
proxy_ssl_protocols TLSv1.2 TLSv1.3;
proxy_ssl_server_name on;
proxy_ssl_name api;
proxy_ssl_verify on;
proxy_ssl_trusted_certificate /run/ingress/ca.crt;
proxy_ssl_certificate /run/ingress/lb.crt;
proxy_ssl_certificate_key /run/ingress/lb.key;
proxy_http_version 1.1;
proxy_set_header Connection "";