update deploy scripts with metrics

update xaibox to be single image
This commit is contained in:
2018-08-20 21:23:29 -04:00
parent 1e4a882f8d
commit 1cd5efe697
14 changed files with 84 additions and 16 deletions

View File

@@ -0,0 +1,28 @@
proxy_cache_path /data/nginx/cache/metrics levels=1:2 keys_zone=metrics:10m max_size=10g
inactive=60m use_temp_path=off;
upstream metrics_upstream {
server tasks.metrics_graphana:3001;
server metrics.xai-corp.net:3001 backup;
server dkhost.xai-corp.net:3001 backup;
}
# xaibox.xai-corp.net
server {
listen 443 ssl;
server_name metrics.xai-corp.net;
ssl_certificate /etc/letsencrypt/live/xai-corp.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/xai-corp.net/privkey.pem;
client_max_body_size 200m;
#Strict-Transport-Security: max-age=15768000
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
location / {
proxy_set_header Connection $http_connection;
proxy_pass http://metrics_upstream;
}
}