update sslproxy deployment to include health check and Jenkinsfile that builds docker image
fixed metrics.xai-corp.net host file
This commit is contained in:
@@ -2,9 +2,9 @@ proxy_cache_path /data/nginx/cache/metrics levels=1:2 keys_zone=metrics:10m max_
|
||||
inactive=60m use_temp_path=off;
|
||||
|
||||
upstream metrics_upstream {
|
||||
server tasks.metrics_graphana:3001;
|
||||
server metrics.xai-corp.net:3001;
|
||||
#server tasks.metrics_graphana:3001;
|
||||
|
||||
server metrics.xai-corp.net:3001 backup;
|
||||
server dkhost.xai-corp.net:3001 backup;
|
||||
}
|
||||
|
||||
@@ -21,8 +21,15 @@ server {
|
||||
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
|
||||
|
||||
location / {
|
||||
proxy_set_header Connection $http_connection;
|
||||
proxy_set_header Connection $http_connection;
|
||||
proxy_set_header Host $host:$server_port;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://metrics_upstream;
|
||||
|
||||
proxy_connect_timeout 3s;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user