We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用场景: 反向代理, 挂到 nginx / caddy
现在必须要下面的配置挂到 caddy, 前端 example.com/clip/, 但前端访问 api 使用的是绝对路径 /server 即 example.com/server 等, 不好反代. 需要详细列出 api 里的路径(/server /text /revoke ...)才行.
example.com/clip/
/server
example.com/server
# # cloud-clipboard # redir /clip /clip/ handle_path /clip/* { reverse_proxy 127.0.0.1:9501 } @clip-api path /server /text /revoke /revoke/* /upload /upload/* /file/* /push handle @clip-api { reverse_proxy 127.0.0.1:9501 }
希望改为相对 html 的 ./server 地址, 或者 api 加上 prefix /cloud-clipboard-api/server /cloud-clipboard-api/text (但是这样要改不同语言实现的后端.....
./server
/cloud-clipboard-api/server
/cloud-clipboard-api/text
Thanks.
The text was updated successfully, but these errors were encountered:
6d6e618
感谢 🙏
Sorry, something went wrong.
No branches or pull requests
使用场景: 反向代理, 挂到 nginx / caddy
现在必须要下面的配置挂到 caddy, 前端
example.com/clip/
, 但前端访问 api 使用的是绝对路径/server
即example.com/server
等, 不好反代. 需要详细列出 api 里的路径(/server /text /revoke ...)才行.希望改为相对 html 的
./server
地址, 或者 api 加上 prefix/cloud-clipboard-api/server
/cloud-clipboard-api/text
(但是这样要改不同语言实现的后端.....Thanks.
The text was updated successfully, but these errors were encountered: