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
  • 相关阅读:
    《阿里感悟》- 技术人员的职业规划
    DIV Vue-cil脚手架
    Django PIL模块(生成随机验证码)
    Django auth模块(用户认证组件)
    Django 数据处理流程
    Django 中间件
    Django ORM (2)
    Django组件——Form
    Django orm
    Django urls
  • 原文地址:https://www.cnblogs.com/hanwei666/p/15239662.html
Copyright © 2011-2022 走看看