Self-Hosting a Dedicated IP Proxy for WhatsApp
This post was translated from Chinese by AI. If anything reads oddly, the Chinese original is authoritative. 中文原文
Do not share this publicly.
Official Open-Source Repository
https://github.com/WhatsApp/proxy
Setup
version: '3.3'
services:
whatsappproxy:
container_name: whatsapp_proxy
image: facebook/whatsapp_proxy:latest
restart: unless-stopped
ports:
# - "80:80" # HTTP
- "27891:443" # HTTPS
# - "5222:5222" # whatsapp
# - "8199:8199" # HAPROXY statistics page
# - "8080:8080" # HTTP with accept-proxy processing
# - "8443:8443" # HTTPS with accept-proxy processing
# - "8222:8222" # JABBER with accept-proxy processing
- "27892:587" # whatsapp.net
# - "7777:7777" # whatsapp.net
healthcheck:
test: /usr/local/bin/healthcheck.sh
interval: 10s
start_period: 5s
environment:
- PUBLIC_IP=服务器公网IP
Usage
Just add it under Settings-Storage and Data-Network/Proxy-Set Proxy
Add the IP first, then set the chat and media ports.
Comments 0