nginx与ssh 把内网转为公网开发服务器

server {
listen 80;
server_name wechat.xxx.xx;
location / {
proxy_pass http://127.0.0.1:10000;
proxy_set_header X-Real-IP $remote_addr;
}
}
ssh wechat.xxx.xx -R 10000:127.0.0.1:8000
本地web 8000
本地开个 dnsmasq 让 iOS 或 Android 设备用本地的 dns

原文地址:https://www.cnblogs.com/anjunact/p/8533341.html