Hello Experts,
I have reading and trying several thinks but I am unable to get api/webhook to my HomeAssistant.
Here is the json access.log output:
{"ClientAddr":"172.71.127.103:35708","ClientHost":"myPUBLICip","ClientPort":"35708","ClientUsername":"-","DownstreamContentSize":0,"DownstreamStatus":405,"Duration":1781616,"OriginContentSize":0,"OriginDuration":1436007,"OriginStatus":0,"Overhead":345609,"RequestAddr":"ha.mySITE.com","RequestContentSize":0,"RequestCount":1074,"RequestHost":"ha.mySITE.com","RequestMethod":"GET","RequestPath":"/api/webhook/5b6a7a8dc1519e5b8d04a8eee5284271cfd06e8fd5a73600XXXXXXX42f6","RequestPort":"-","RequestProtocol":"HTTP/2.0","RequestScheme":"https","RetryAttempts":0,"RouterName":"ha-rtr@file","ServiceAddr":"192.168.10.50:8123","ServiceName":"ha-svc@file","ServiceURL":"http://192.168.10.50:8123","StartLocal":"2024-09-04T09:03:46.249780195+02:00","StartUTC":"2024-09-04T07:03:46.249780195Z","TLSCipher":"TLS_AES_128_GCM_SHA256","TLSVersion":"1.3","entryPointName":"https","level":"info","msg":"","time":"2024-09-04T09:03:46+02:00"}
In traefik.log I get:
2024-09-03T17:52:41+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/service.go:301 > Creating server entryPointName=https routerName=ha-rtr@file serverName=4e4c6da362850e96 serviceName=ha-svc@file target=http://192.168.10.50:8123
2024-09-03T17:52:41+02:00 DBG github.com/traefik/traefik/v3/pkg/middlewares/chain/chain.go:22 > Creating middleware entryPointName=https middlewareName=chain-no-auth@file middlewareType=Chain routerName=ha-rtr@file
2024-09-03T17:52:41+02:00 DBG github.com/traefik/traefik/v3/pkg/middlewares/compress/compress.go:39 > Creating middleware entryPointName=https middlewareName=middlewares-compress@file middlewareType=Compress routerName=ha-rtr@file
2024-09-03T17:52:41+02:00 DBG github.com/traefik/traefik/v3/pkg/middlewares/observability/middleware.go:33 > Adding tracing to middleware entryPointName=https middlewareName=middlewares-compress@file routerName=ha-rtr@file
2024-09-03T17:52:41+02:00 DBG github.com/traefik/traefik/v3/pkg/middlewares/headers/headers.go:28 > Creating middleware entryPointName=https middlewareName=middlewares-secure-headers@file middlewareType=Headers routerName=ha-rtr@file
2024-09-03T17:52:41+02:00 DBG github.com/traefik/traefik/v3/pkg/middlewares/headers/headers.go:42 > Setting up secureHeaders from {map[] map[X-Robots-Tag:none,noarchive,nosnippet,notranslate,noimageindex, server:] false [] [GET OPTIONS PUT] [] [] [] 100 false [] [X-Forwarded-Host] map[] 63072000 true true true false allow-from https:mySITE.com true true same-origin camera=(), microphone=(), geolocation=(), payment=(), usb=(), vr=() false <nil> <nil> <nil> <nil> <nil>} entryPointName=https middlewareName=middlewares-secure-headers@file middlewareType=Headers routerName=ha-rtr@file
2024-09-03T17:52:41+02:00 DBG github.com/traefik/traefik/v3/pkg/middlewares/headers/headers.go:48 > Setting up customHeaders/Cors from {map[] map[X-Robots-Tag:none,noarchive,nosnippet,notranslate,noimageindex, server:] false [] [GET OPTIONS PUT] [] [] [] 100 false [] [X-Forwarded-Host] map[] 63072000 true true true false allow-from https:mySITE.com true true same-origin camera=(), microphone=(), geolocation=(), payment=(), usb=(), vr=() false <nil> <nil> <nil> <nil> <nil>} entryPointName=https middlewareName=middlewares-secure-headers@file middlewareType=Headers routerName=ha-rtr@file
2024-09-03T17:52:41+02:00 DBG github.com/traefik/traefik/v3/pkg/middlewares/observability/middleware.go:33 > Adding tracing to middleware entryPointName=https middlewareName=middlewares-secure-headers@file routerName=ha-rtr@file
2024-09-03T17:52:41+02:00 DBG github.com/traefik/traefik/v3/pkg/middlewares/redirect/redirect_scheme.go:29 > Creating middleware entryPointName=https middlewareName=middlewares-https-redirectscheme@file middlewareType=RedirectScheme routerName=ha-rtr@file
2024-09-03T17:52:41+02:00 DBG github.com/traefik/traefik/v3/pkg/middlewares/redirect/redirect_scheme.go:30 > Setting up redirection to https entryPointName=https middlewareName=middlewares-https-redirectscheme@file middlewareType=RedirectScheme routerName=ha-rtr@file
2024-09-03T17:52:41+02:00 DBG github.com/traefik/traefik/v3/pkg/middlewares/ratelimiter/rate_limiter.go:49 > Creating middleware entryPointName=https middlewareName=middlewares-rate-limit@file middlewareType=RateLimiter routerName=ha-rtr@file
2024-09-03T17:52:41+02:00 DBG github.com/traefik/traefik/v3/pkg/middlewares/extractor.go:45 > Using IPStrategy entryPointName=https middlewareName=middlewares-rate-limit@file middlewareType=RateLimiter routerName=ha-rtr@file
2024-09-03T17:52:41+02:00 DBG github.com/traefik/traefik/v3/pkg/middlewares/observability/middleware.go:33 > Adding tracing to middleware entryPointName=https middlewareName=middlewares-rate-limit@file routerName=ha-rtr@file
....
2024-09-04T09:03:46+02:00 DBG github.com/traefik/traefik/v3/pkg/server/service/loadbalancer/wrr/wrr.go:196 > Service selected by WRR: 4e4c6da362850e96
2024-09-04T09:04:02+02:00 DBG github.com/traefik/traefik/v3/pkg/middlewares/compress/compress.go:103 > Unable to parse MIME type error="mime: no media type" middlewareName=middlewares-compress@file middlewareType=Com
press
2024-09-04T09:04:02+02:00 DBG github.com/traefik/traefik/v3/pkg/middlewares/compress/compress.go:103 > Unable to parse MIME type error="mime: no media type" middlewareName=middlewares-compress@file middlewareType=Com
press
In Cloudflare I do proxy the DNS resolution on my ha.xxx.com host
In my rule I have:
http:
routers:
ha-rtr:
rule: "Host(`ha.{{env "DOMAINNAME_CLOUD_SERVER"}}`)"
entryPoints:
- https
middlewares:
- chain-no-auth@file
priority: 100
service: ha-svc
tls: {}
services:
ha-svc:
loadBalancer:
servers:
- url: "http://192.168.10.50:8123"
I tried to add another router like:
ha-webhook-rtr:
rule: "Host(`ha.{{env "DOMAINNAME_CLOUD_SERVER"}}`) && ( PathPrefix(`/api/websocket`) )"
entryPoints:
- https
middlewares:
- chain-no-auth@file
priority: 110
service: ha-svc
tls: {}
Any idea of the issue? and what I am missing ?
In another thread, it seems that in 2021 they disabled TLSv1.3 but I don't like trying such idea as I feel this is not what should be done nowadays
Thank you so much in advance!!
Mr X