Skip to content
New issue

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

关于Caddy2反代一种失败的情况 #216

Open
toyo2333 opened this issue Jul 27, 2024 · 1 comment
Open

关于Caddy2反代一种失败的情况 #216

toyo2333 opened this issue Jul 27, 2024 · 1 comment

Comments

@toyo2333
Copy link

是你用提供的这种域名的方式,没问题。

status.mydomian.org {
    encode gzip zstd
    reverse_proxy nodestatus:35601
}

但如果是这种,就不行

status.mydomian.org {
    encode gzip zstd

    handle_path /deeplx/* {
         reverse_proxy deeplx:1188
    }

    handle_path /status/* {
         reverse_proxy nodestatus:35601
    }
}

而之前用这种方式部署的其他小工具比如deeplx就可以正常被反代使用。

ps 我的caddy和nodestatus都是docker部署在一个yaml文件里,所以可以用容器名称访问。这部分没有问题。

是不是因为还有什么其他前端页面的路径要处理,这里没有被反代到导致失败?

@cokemine
Copy link
Owner

一些前端的静态文件需要重写
#65 (comment)
Caddy可能需要额外插件来实现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants