zoukankan      html  css  js  c++  java
  • nginx 代理 (监控+elk)

    upstream grarana {
        server 192.168.188.69:3000 weight=1 max_fails=3 fail_timeout=60;
    }
    
    
    upstream openapollo {
        server 192.168.188.69:30089 weight=1 max_fails=3 fail_timeout=60;
    }
    
    upstream basisapollo {
        server 192.168.188.69:37089 weight=1 max_fails=3 fail_timeout=60;
    }
    
    upstream maintaine {
        server 192.168.188.69:30012 weight=1 max_fails=3 fail_timeout=60;
    }
    
    
    upstream prometheus {
        server 192.168.188.69:9090 weight=1 max_fails=3 fail_timeout=60;
    }
    
    
    
    
    upstream kibana_server {
        server 192.168.188.69:15601 weight=1 max_fails=3 fail_timeout=60;
    }
    
    
    
    
    
    server {
        listen 710;
    
    
       location / {
           root    /var/www/html;
           index  index.html index.htm;
      }
    
    }
    
    server {
        listen 711;
    
        location / {
            proxy_pass http://grarana;
            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;
        }
    
    
    }
    
    
    
    server {
        listen 712;
    
        location / {
            proxy_pass http://openapollo;
            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;
        }
    
    
    }
    
    
    
    server {
        listen 713;
    
        location / {
            proxy_pass http://basisapollo;
            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;
        }
    
    
    }
    
    server {
        listen 714;
    
        location / {
            proxy_pass http://maintaine;
            #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;
        }
    
    
    }
    
    
    server {
        listen 715;
    
        location / {
            proxy_pass http://prometheus;
            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;
        }
    
    
    }
    
    
    server {
        listen 716;
       
        location / {
            proxy_pass http://kibana_server;
            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;
        }
    
    
    }
    View Code
  • 相关阅读:
    ASP.NET Cookies简单应用 记住用户名和密码
    index.dat文件剖析
    簇集索引与聚集索引
    C#开发飞信机器人
    详解Javascript中的Url编码/解码
    基于关系型数据库的WEB OA公文流转系统
    今天Apple陆家嘴点“开战”
    准备在cnblogs活动上的演讲
    4年技术经验
    chinajoy之行
  • 原文地址:https://www.cnblogs.com/hanwei666/p/15239662.html
Copyright © 2011-2022 走看看