Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 610 Bytes

WECHAT_SETUP.md

File metadata and controls

25 lines (21 loc) · 610 Bytes

微信开发环境搭建

nginx.conf:

server {
    listen 80;
    server_name wechat-test1.eggman.tv;
    location / {
       proxy_set_header  Host               $host;
       proxy_set_header  X-Forwarded-Host   $host;
       proxy_set_header  X-Forwarded-Server $host;
       proxy_set_header  X-Real-IP          $remote_addr;
       proxy_set_header  X-Forwarded-For    $proxy_add_x_forwarded_for;
       proxy_buffering                      on;
       proxy_pass                           http://localhost:8180;
   }
}

ssh tunnel:

$ssh root@0.0.0.0 -N -R 8180:0.0.0.0:3002