-
-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Describe the bug
Hi 👋🏿 , currently after changing http.port
in the tsdproxy.yaml
, the internal healthcheck no longer sends requests to the correct port.
I think maybe the cause is the hardcoded port number in the code below 🤔
tsdproxy/cmd/healthcheck/main.go
Line 12 in f4cfbb9
h, err := http.Get("http://127.0.0.1:8080/health/ready/") |
Expected behavior
The healthcheck command will send requests to the port configured in tsdproxy.yaml
.
My config
defaultproxyprovider: default
docker:
local:
host: unix:///var/run/docker.sock
targethostname: 192.168.0.4
files: {}
tailscale:
providers:
default:
authKey: ""
controlurl: https://controlplane.tailscale.com
datadir: /data/
http:
hostname: 0.0.0.0
port: 8081 # <=== port changed from 8080
log:
level: info
json: false
proxyaccesslog: true
Logs
Docker reports an unhealthy
status.
$ docker compose ps
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
tailscale-proxy-tsdproxy-1 almeidapaulopt/tsdproxy:1 "/tsdproxyd" tsdproxy 7 minutes ago Up 7 minutes (unhealthy) 8080/tcp, 0.0.0.0:8081->8081/tcp, [::]:8081->8081/tcp
RichardEpure
Metadata
Metadata
Assignees
Labels
No labels