后台服务程序: 点击下载
1、程序上传服务器任意路径并添加权限(chmod +x wzyd_node)
2、部署GO项目即可
3、开放15557端口
4、打开网址 ip:15557
5、搭配域名(配置伪静态即可)
xlocation / {proxy_pass http://127.0.0.1:15557/;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;}location ~ .*\.(js|css)$ {proxy_pass http://127.0.0.1:15557;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;proxy_intercept_errors on;error_page 404 = @local_static;expires 12h;error_log /dev/null;access_log /dev/null;}location = /gethero { proxy_pass https://api.wzryqz.cn/gethero; }