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

When using Caddy2 as reverse proxy, rpc & api path has two slash in url #207

Open
sulisu opened this issue Oct 2, 2024 · 0 comments
Open

Comments

@sulisu
Copy link

sulisu commented Oct 2, 2024

Version running
Provide the docker label or release tag you're running.
latest september release

Describe the bug
A clear and concise description of what the bug is.

I can open the web page, but when access api and rpc path, browser make request to //api and //rpc. for example:

wss://host:port/base1/base2//rpc/ws
https://host:port/base1/base2//api/v1/cookies
https://host:port/base1/base2//api/v1/version

and server return 404 error. It works if I remove addition slash and manually access the url in browser. I can get response such as "{"rpcVersion":"3.2.1","ytdlpVersion":"2024.08.06\n"}"

Caddy2 as reverse proxy, related config in caddy2 yaml file

redir /base1/base2 /base1/base2/ 301

        route /base1/base2/* {
                uri strip_prefix /base1/base2
                reverse_proxy 127.0.0.1:3033 {
                }
        }

in yt-dlp-web-ui web settings

Is behind a reverse proxy : checked

urlbase: base1/base2

And web ui gives some error message such as:
"Error while connecting to RPC server (host:port/base1/base2/)"

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

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

1 participant