This. Also, make sure the proxy is proxying websocket traffic as well. I do it with pure nginx like this:
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://192.168.1.100:8123/;
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;
# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
I'm guessing they have a blacklist of known VPN servers and block you from accessing them. One of the options is running a VPN server at your home outside of China.
Ask your ISP to be excluded from their NAT and to give you a public IP address
Use a DDNS service if your public IP changes regularly, so you have a domain name which always points to your current IP
Install Wireguard VPN on your computer (or if you have a fancy router like Mikrotik run it on the router)
Port forward a port to that computer/server
Install Wireguard app on Android and connect. If done well, your data will be sent encrypted to your home, and you access the Internet from there.