美文网首页
NGINX同时发布JMETER报告和禅道、SONAR

NGINX同时发布JMETER报告和禅道、SONAR

作者: 9016 | 来源:发表于2022-08-30 13:58 被阅读0次

server {
        listen       80;
        server_name  localhost;

        #charset koi8-r;
        charset utf-8;

        #access_log  logs/host.access.log  main;

        location /report{
            autoindex on;
            autoindex_exact_size on;
            autoindex_localtime on;

            alias D:/apache-jmeter-5.4.1/report;
            index  index.html index.htm;
            sub_filter 'Index of /report' 'API测试结果';
            sub_filter 'Index of /report' 'API测试结果';
        }
      
        location /{
            proxy_pass http://127.0.0.1:81;
        }
      
        location /sonar{
            proxy_pass http://127.0.0.1:9000/sonar;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
    ……
    ……
    }

JMETER报告发布到localhost:80/report下;

禅道从81端口映射到80,发布到localhost:80/下;

SONAR从9000映射到,localhost:80/sonar。

相关文章

网友评论

      本文标题:NGINX同时发布JMETER报告和禅道、SONAR

      本文链接:https://www.haomeiwen.com/subject/epmlnrtx.html