Dealing with websockets #1312
Unanswered
andersonpem
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I'm no expert with caddy, but this is how i use the reverse proxy to match my.url/oidc/
with value : OIDC_UPSTREAM: ${OIDC_UPSTREAM:-oidc:8080} I suppose this should works :
Meaby try to change path to expression ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m trying to forward websocket requests to a websocket server. But whatever I do I’m not able to.
My Caddyfile:
I try to do requests like: ws://api.lexample.com/app/app-key?protocol=7&client=js&version=8.3.0&flash=false
The server interprets this as something it should forward to the PHP server instead, then the PHP server throws a 404 because the route doesn’t exist in it indeed.
Am I missing something obvious?
Thank you in advance and sorry for my (possibly) dumb issue 😛
Logs:
{"message":"Uncaught PHP Exception Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException: \"No route found for \"GET https://api.lrgi-sb-brand.com/app/app-key\"\" at RouterListener.php line 127","context":{"exception":{"class":"Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException","message":"No route found for \"GET https://api.example.com/app/app-key\"","code":0,"file":"/var/www/html/vendor/symfony/http-kernel/EventListener/RouterListener.php:127","previous":{"class":"Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException","message":"No routes found for \"/app/app-key/\".","code":0,"file":"/var/www/html/vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:70"}}},"level":400,"level_name":"ERROR","channel":"request","datetime":"2025-01-06T16:19:03.569428+00:00","extra":{}}
FrankenPHP version: 1.3.6 on Debian Bookworm (Docker).
Beta Was this translation helpful? Give feedback.
All reactions