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

[Bug]: Caddyfile uses invalid ws/wss schemes #2774

Open
1 task done
nazarewk opened this issue Jan 19, 2024 · 1 comment
Open
1 task done

[Bug]: Caddyfile uses invalid ws/wss schemes #2774

nazarewk opened this issue Jan 19, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@nazarewk
Copy link

nazarewk commented Jan 19, 2024

Contact Details

No response

What happened?

you should use http[s]:// instead of ws[s]:// in Caddyfile, 2.7 is throwing errors for it.

see caddyserver/caddy#5755

Version

v0.22.0

What OS are you using?

No response

Relevant log output

# Jan 18 20:32:35 wg-0 caddy[140830]: Error: adapting config using caddyfile: server block 2, key 0 (wss://broker.subsidize-stroller.kdn.im): determining listener address: the scheme wss:// is only supported in browsers; use https:// instead

# Jan 18 20:28:34 wg-0 caddy[140329]: Error: adapting config using caddyfile: parsing caddyfile tokens for 'reverse_proxy': parsing upstream 'ws://127.0.0.2:8883': the scheme ws:// is only supported in browsers; use http:// instead, at /etc/caddy/caddy_config:57

Contributing guidelines

  • Yes, I did.
@nazarewk nazarewk added the bug Something isn't working label Jan 19, 2024
@nazarewk nazarewk changed the title [Bug]: Caddyfile uses invalid ws/wss schemes [Bug]: Caddyfile uses invalid ws/wss schemes Jan 19, 2024
@cocoonkid
Copy link

Up to 2.6.4 works. Parsing needs to change to support 2.7.6 which is latest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants