Giter Site home page Giter Site logo

Comments (6)

shenjia avatar shenjia commented on July 20, 2024 1

搞定了,用下面的规则进行反向代理即可:

handle_path /weChatGPT {
rewrite * /weChatGPT
reverse_proxy 127.0.0.1:7458
}

from wechat-chatgpt.

gtoxlili avatar gtoxlili commented on July 20, 2024

因为并没有这个路由啊

from wechat-chatgpt.

gtoxlili avatar gtoxlili commented on July 20, 2024

确实在 Readme里没写清楚 和微信公众平台对接的路由应该是 ip:7458/weChatGPT

from wechat-chatgpt.

shenjia avatar shenjia commented on July 20, 2024

我了个汗

from wechat-chatgpt.

shenjia avatar shenjia commented on July 20, 2024

我用caddyV2进行反向代理,怎么也转发不过去。caddyFile配置如下:
handle_path /weChatGPT { reverse_proxy 127.0.0.1:7458 }

访问实际域名下的/weChatGPT时,仍然提示404 page not found.
此时后台的日志是
INFO[2022-12-13 20:05:43] "GET http://?????.de/ HTTP/1.1" from 127.0.0.1:56676 - 404 19B in 51.26µs

如果用下面的caddeFile转发,前端访问则502

handle_path /weChatGPT { reverse_proxy 127.0.0.1:7458/weChatGPT }

这到底怎么转发才能把route透传过去啊……求助!

from wechat-chatgpt.

gtoxlili avatar gtoxlili commented on July 20, 2024

确实在 Readme里没写清楚 和微信公众平台对接的路由应该是 ip:7458/weChatGPT

已修复

from wechat-chatgpt.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.