# nvr-http-proxy **Repository Path**: huran135232/nvr-http-proxy ## Basic Information - **Project Name**: nvr-http-proxy - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-17 - **Last Updated**: 2024-08-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 设置构建平台 export BUILDPLATFORM=linux/amd64 # 设置目标操作系统 export TARGETOS=linux # 设置目标架构 export TARGETARCH=amd64 # 构建镜像 docker buildx build \ --platform $BUILDPLATFORM \ --build-arg TARGETOS=$TARGETOS \ --build-arg TARGETARCH=$TARGETARCH \ --tag your-image-name:multi-arch \ --push \ . docker build --build-arg TARGETOS="Linux" --build-arg TARGETA="arm" -t myimage . docker buildx build --platform linux/arm64 -t nvr_http_proxy:1.0 . docker run --name nvr_http_proxy --restart always -d -p 13523:13523 nvr_http_proxy:1.0 ### nginx配置 location /nvrproxy{ rewrite ^/nvrproxy(.*) /proxy$1 break; proxy_pass http://172.16.30.238:13523; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; }