├── .github └── workflows │ ├── build.yml │ └── readme_update.yml ├── Dockerfile ├── LICENSE ├── README.md ├── renovate.json └── rootfs ├── app └── web │ └── index.html └── etc └── nginx ├── http.d └── default.conf └── nginx.conf /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build 2 | 3 | on: 4 | workflow_dispatch: 5 | push: 6 | branches: 7 | - master 8 | paths: 9 | - Dockerfile 10 | - rootfs/* 11 | - .github/workflows/build.yml 12 | 13 | jobs: 14 | build: 15 | runs-on: ubuntu-latest 16 | steps: 17 | - 18 | name: Checkout 19 | uses: actions/checkout@v4 20 | 21 | - 22 | name: Docker meta 23 | id: meta 24 | uses: docker/metadata-action@v5 25 | with: 26 | images: ${{ secrets.DOCKER_USERNAME }}/wxchat 27 | tags: | 28 | type=raw,value=latest 29 | 30 | - 31 | name: Set Up QEMU 32 | uses: docker/setup-qemu-action@v3 33 | 34 | - 35 | name: Set Up Buildx 36 | uses: docker/setup-buildx-action@v3 37 | 38 | - 39 | name: Login DockerHub 40 | uses: docker/login-action@v3 41 | with: 42 | username: ${{ secrets.DOCKER_USERNAME }} 43 | password: ${{ secrets.DOCKER_PASSWORD }} 44 | 45 | - 46 | name: Build 47 | uses: docker/build-push-action@v6 48 | with: 49 | context: . 50 | file: Dockerfile 51 | platforms: | 52 | linux/386 53 | linux/amd64 54 | linux/arm64/v8 55 | linux/arm/v7 56 | linux/arm/v6 57 | linux/ppc64le 58 | linux/s390x 59 | push: true 60 | tags: ${{ steps.meta.outputs.tags }} 61 | labels: ${{ steps.meta.outputs.labels }} 62 | cache-from: type=gha, scope=${{ github.workflow }} 63 | cache-to: type=gha, scope=${{ github.workflow }} -------------------------------------------------------------------------------- /.github/workflows/readme_update.yml: -------------------------------------------------------------------------------- 1 | name: Docker readme update 2 | 3 | on: 4 | workflow_dispatch: 5 | push: 6 | branches: 7 | - master 8 | paths: 9 | - README.md 10 | 11 | jobs: 12 | job: 13 | name: Docker Hub Description 14 | runs-on: ubuntu-latest 15 | steps: 16 | - 17 | name: Checkout 18 | uses: actions/checkout@v4 19 | 20 | - 21 | name: Docker Hub Description 22 | uses: peter-evans/dockerhub-description@v4 23 | with: 24 | username: ${{ secrets.DOCKER_USERNAME }} 25 | password: ${{ secrets.DOCKER_PASSWORD }} 26 | repository: ${{ secrets.DOCKER_USERNAME }}/wxchat 27 | short-description: MoviePilot 微信转发代理 28 | readme-filepath: ./README.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.21 2 | 3 | ENV TZ=Asia/Shanghai 4 | 5 | RUN apk add --no-cache tzdata nginx && \ 6 | rm -rf /var/cache/apk/* /tmp/* 7 | 8 | COPY --chmod=755 ./rootfs / 9 | 10 | EXPOSE 80 11 | 12 | ENTRYPOINT ["nginx"] 13 | CMD ["-g", "daemon off;"] -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 DDS-Rem 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MoviePilot 微信转发代理 Docker 2 | 3 | [![Build](https://github.com/DDS-Derek/wxchat-Docker/actions/workflows/build.yml/badge.svg)](https://github.com/DDS-Derek/wxchat-Docker/actions/workflows/build.yml) [![Docker readme update](https://github.com/DDS-Derek/wxchat-Docker/actions/workflows/readme_update.yml/badge.svg)](https://github.com/DDS-Derek/wxchat-Docker/actions/workflows/readme_update.yml) 4 | 5 | ```bash 6 | docker run -d \ 7 | --name wxchat \ 8 | --restart=always \ 9 | -p 80:80 \ 10 | ddsderek/wxchat:latest 11 | ``` 12 | 13 | ```yaml 14 | version: '3.3' 15 | services: 16 | wxchat: 17 | container_name: wxchat 18 | restart: always 19 | ports: 20 | - '80:80' 21 | image: 'ddsderek/wxchat:latest' 22 | ``` -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": [ 4 | "config:base" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /rootfs/app/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 微信代理 6 | 7 | 8 | 9 |

微信代理搭建成功!

10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /rootfs/etc/nginx/http.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | listen [::]:80; 4 | 5 | location / { 6 | root /app/web; 7 | index index.html index.htm; 8 | } 9 | location /cgi-bin/gettoken { 10 | proxy_pass https://qyapi.weixin.qq.com; 11 | } 12 | location /cgi-bin/message/send { 13 | proxy_pass https://qyapi.weixin.qq.com; 14 | } 15 | location /cgi-bin/menu/create { 16 | proxy_pass https://qyapi.weixin.qq.com; 17 | } 18 | 19 | } -------------------------------------------------------------------------------- /rootfs/etc/nginx/nginx.conf: -------------------------------------------------------------------------------- 1 | user root; 2 | worker_processes auto; 3 | pcre_jit on; 4 | error_log /dev/stdout warn; 5 | include /etc/nginx/modules/*.conf; 6 | include /etc/nginx/conf.d/*.conf; 7 | 8 | events { 9 | worker_connections 1024; 10 | } 11 | 12 | http { 13 | include /etc/nginx/mime.types; 14 | default_type application/octet-stream; 15 | server_tokens off; 16 | client_max_body_size 1m; 17 | sendfile on; 18 | tcp_nopush on; 19 | ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3; 20 | ssl_prefer_server_ciphers on; 21 | ssl_session_cache shared:SSL:2m; 22 | ssl_session_timeout 1h; 23 | ssl_session_tickets off; 24 | gzip_vary on; 25 | map $http_upgrade $connection_upgrade { 26 | default upgrade; 27 | '' close; 28 | } 29 | log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 30 | '$status $body_bytes_sent "$http_referer" ' 31 | '"$http_user_agent" "$http_x_forwarded_for"'; 32 | access_log /dev/stdout main; 33 | include /etc/nginx/http.d/*.conf; 34 | } --------------------------------------------------------------------------------