woodpecker/docs/docs/30-administration
velsinki dda4998261
Change healtcheck port into address format, redo #1197 (#1423)
As discussed in the comments in PR #1197. Also add documenation
accordingly.

One thing I'm not sure about is the simple check in health.go if the
address is usable in the GET request or not. From reading
https://pkg.go.dev/net#Dial it seems that the only non-standard address
format that would work in the `net` package but not in a GET url would
likely only be `:port`, as the others listed here are actually also
valid urls:

`For TCP, UDP and IP networks, if the host is empty or a literal
unspecified IP address, as in ":80", "0.0.0.0:80" or "[::]:80" for TCP
and UDP, "", "0.0.0.0" or "::" for IP, the local system is assumed.`

One additional thing I noticed is that while `WOODPECKER_SERVER_ADDR`
and `WOODPECKER_SERVER_ADDR` use the default value format of `:PORT`,
`WOODPECKER_SERVER` actually uses `localhost:9000`. I guess it makes a
bit of sense, considering the server might not be local to the agent,
but it looks a bit inconsistent this way. I don't think it would hurt to
make the `WOODPECKER_HEALTHCHECK_ADDR` in this format too, but then it's
different from the server flags again... :-)
2022-11-19 13:06:51 +02:00
..
11-forges Support changed files for Gitea PRs (#1342) 2022-10-28 19:17:30 +02:00
22-backends More spelling & style fixes (#1275) 2022-10-15 21:25:07 +02:00
00-setup.md Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
10-server-config.md Spelling (#1405) 2022-11-09 08:12:17 +01:00
15-agent-config.md Change healtcheck port into address format, redo #1197 (#1423) 2022-11-19 13:06:51 +02:00
30-database.md More spelling & style fixes (#1275) 2022-10-15 21:25:07 +02:00
60-ssl.md More spelling & style fixes (#1275) 2022-10-15 21:25:07 +02:00
70-proxy.md Update Administration Setup Docs (#1293) 2022-10-20 03:33:18 +02:00
80-kubernetes.md Adding initial version of Kubernetes backend (#552) 2022-09-05 06:01:14 +02:00
90-prometheus.md Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
100-external-configuration-api.md Spelling (#1405) 2022-11-09 08:12:17 +01:00
_category_.yml Improve docs (#450) 2021-10-16 21:27:51 +02:00