构建用于测试负载均衡服务的Docker 镜像

最近在进行负载均衡的教学和培训视频,需要像学员展示HTTP数据负载均衡前后的变化和客户端信息的展示,并展现数据包信息

  • 获取服务器名
  • 获取服务IP地址
  • 获取客户端IP和访问端口
  • 获取Client IP
  • 获取real IP
  • 获取xff IP
  • 获取访问域名信息
  • 获取server url信息
  • 获取访问时间
  • 获取访问请求ID
  • 获取访问者浏览器信息

Dockerfile构建文件

# 使用镜像模板
FROM nginxdemos/hello:latest

# 维护人员信息
LABEL maintainer="jianhua <jianhua@sec.local>"

# 设置系统时区
ENV TZ=Asia/Shanghai

# 删除原有nginx配置和网页
RUN rm /etc/nginx/conf.d/* &&  rm /usr/share/nginx/html/index.html

# 添加index文件至目录
ADD index.html /usr/share/nginx/html/

# 添加nginx配置文件至目录
ADD hello.conf /etc/nginx/conf.d/

# 对外暴露端口
EXPOSE 80

# 运行nginx服务
CMD ["nginx","-g","daemon off;"]

Dockerfile里面调用的文件信息

hello.conf

server {
    listen 80;
    listen [::]:80;

    root /usr/share/nginx/html;
    try_files /index.html =404;

    expires -1;

    sub_filter_once off;
    # 获取服务器名
    sub_filter 'server_hostname' '$hostname';
    # 获取服务IP地址
    sub_filter 'server_address' '$server_addr:$server_port';
    # 获取客户端IP和访问端口
    sub_filter 'remote_addr' '$remote_addr:$remote_port';
    # 获取Client IP
    sub_filter 'client_ip' '$remote_addr';
    # 获取real IP
    sub_filter 'real_ip' '$http_x_real_ip';
    # 获取xff IP
    sub_filter 'xff_ip' '$http_x_forwarded_for';
    # 获取访问域名信息
    sub_filter 'request_domain' '$host';
    # 获取server url信息
    sub_filter 'server_url' '$request_uri';
    # 获取访问时间
    sub_filter 'server_date' '$time_local';
    # 获取访问请求ID
    sub_filter 'request_id' '$request_id';
    # 获取访问者浏览器信息
    sub_filter 'user_agent' '$http_user_agent';
}

index.html文件

<!DOCTYPE html>
<html>
<head>
    <title>Hello World</title>
    <link href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACA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ku9AAAAAElFTkSuQmCC" rel="icon" type="image/png" />
    <style>
        body {
            margin: 0px;
            font: 20px 'RobotoRegular', Arial, sans-serif;
            font-weight: 100;
            height: 100%;
            color: #0f1419;
        }
        div.info {
            display: table;
            background: #e8eaec;
            padding: 20px 20px 20px 20px;
            border: 1px dashed black;
            border-radius: 10px;
            margin: 0px auto auto auto;
        }
        div.info p {
            display: table-row;
            margin: 5px auto auto auto;
        }
        div.info p span {
            display: table-cell;
            padding: 10px;
        }
        img {
            width: 176px;
            margin: 36px auto 36px auto;
            display:block;
        }
        div.smaller p span {
            color: #3D5266;
        }
        h1, h2 {
            font-weight: 100;
        }
        div.check {
            padding: 0px 0px 0px 0px;
            display: table;
            margin: 36px auto auto auto;
            font: 12px 'RobotoRegular', Arial, sans-serif;
        }
        #footer {
            position: fixed;
            bottom: 36px;
            width: 100%;
        }
        #center {
            width: 400px;
            margin: 0 auto;
            font: 12px Courier;
        }

    </style>
    <script>
        var ref;
        function checkRefresh(){
            if (document.cookie === "refresh=1") {
                document.getElementById("check").checked = true;
                ref = setTimeout(function(){location.reload();}, 1000);
            } else {
            }
        }
        function changeCookie() {
            if (document.getElementById("check").checked) {
                document.cookie = "refresh=1";
                ref = setTimeout(function(){location.reload();}, 1000);
            } else {
                document.cookie = "refresh=0";
                clearTimeout(ref);
            }
        }
    </script>
</head>
<body onload="checkRefresh();">
<img alt="NGINX Logo" src="data:image/svg+xml;base64,PHN2ZyBpZD0iQXJ0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNTAuODg3NTEgNTkuNzYyMTUiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojOTk5O30uY2xzLTJ7ZmlsbDojMDA5NjM5O30uY2xzLTN7ZmlsbDojZmZmO308L3N0eWxlPjwvZGVmcz48dGl0bGU+TkdJTlgtUGFydC1vZi1GNS1ob3Jpei1ibGFjay10eXBlLVJHQjwvdGl0bGU+PHBhdGggY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wMDE1LjUwMjkxIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNy4xOTc4NCAtMC4zNTg5MikiLz48L3N2Zz4="/>
<div class="info">
    <!-- 展示服务器IP地址信息 -->
    <p><span>Server&nbsp;address:</span> <span>server_address</span></p>
    <!-- 展示服务器主机名 -->
    <p><span>Server&nbsp;name:</span> <span>server_hostname</span></p>
    <!-- 展示客户端信息 -->
    <p><span>Client&nbsp;address:</span> <span>remote_addr</span></p>
    <!-- 展示clientIP地址信息 -->
    <p class="smaller"><span>clientip:</span> <span>xff_ip</span></p>
    <!-- 展示realip地址信息 -->
    <p class="smaller"><span>realip:</span> <span>real_ip</span></p>
    <!-- 展示xffIP地址信息 -->
    <p class="smaller"><span>xffip:</span> <span>xff_ip</span></p>
    <!-- 展示服务器域名信息 -->
    <p class="smaller"><span>domain:</span> <span>request_domain</span></p>
    <!-- 展示访问日期信息 -->
    <p class="smaller"><span>Date:</span> <span>server_date</span></p>
    <!-- 展示请求URL信息 -->
    <p class="smaller"><span>URI:</span> <span>server_url</span></p>
    <!-- 展示请求UA信息 -->
    <p class="smaller"><span>UA:</span> <span>user_agent</span></p>
</div>
<div class="check"><input type="checkbox" id="check" onchange="changeCookie()"> Auto Refresh</div>
<div id="footer">
    <div id="center" align="center">
        Request ID: request_id<br/>
        &copy; F5, Inc. 2020 - 2024
    </div>
</div>
</body>
</html>
posted @ 2024-08-08 16:33  二乘八是十六  阅读(43)  评论(0编辑  收藏  举报