49 lines
1.4 KiB
Plaintext
49 lines
1.4 KiB
Plaintext
server {
|
|
listen 80;
|
|
server_name ml.dot-dot.ru;
|
|
return 301 https://$server_name$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name ml.dot-dot.ru;
|
|
|
|
ssl_certificate /etc/nginx/ssl/dot2024.crt;
|
|
ssl_certificate_key /etc/nginx/ssl/dot2024.key;
|
|
|
|
location / {
|
|
proxy_pass http://ml-api:8080;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
chunked_transfer_encoding off;
|
|
proxy_buffering off;
|
|
proxy_cache off;
|
|
}
|
|
|
|
location /metrics {
|
|
proxy_pass http://node-exporter:9100;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
chunked_transfer_encoding off;
|
|
proxy_buffering off;
|
|
proxy_cache off;
|
|
}
|
|
|
|
location /cadvisor {
|
|
proxy_pass http://cadvisor:8080/metrics;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
chunked_transfer_encoding off;
|
|
proxy_buffering off;
|
|
proxy_cache off;
|
|
}
|
|
} |