rclone/lib/http
Florian Klink 861c01caf5 http: support listening on passed FDs
Instead of the listening addresses specified above, rclone will listen to all
FDs passed by the service manager, if any (and ignore any arguments passed by
`--{{ .Prefix }}addr`.

This allows rclone to be a socket-activated service. It can be configured as described in
https://www.freedesktop.org/software/systemd/man/latest/systemd.socket.html

It's possible to test this interactively through `systemd-socket-activate`,
firing of a request in a second terminal:

```
❯ systemd-socket-activate -l 8088 -l 8089 --fdname=foo:bar -- ./rclone serve webdav :local:test/
Listening on [::]:8088 as 3.
Listening on [::]:8089 as 4.
Communication attempt on fd 3.
Execing ./rclone (./rclone serve webdav :local:test/)
2024/04/24 18:14:42 NOTICE: Local file system at /home/flokli/dev/flokli/rclone/test: WebDav Server started on [sd-listen:bar-0/ sd-listen:foo-0/]
```
2024-09-06 17:21:56 +01:00
..
serve lib/http: fix tests after go1.23 update 2024-07-20 10:54:47 +01:00
templates serve http: support unix sockets and multiple listners 2022-12-15 12:38:09 +00:00
testdata http: add client certificate user auth middleware 2023-06-26 14:33:53 +01:00
auth_test.go cmd/rcd: Fix command docs to include command specific prefix (#6675) 2023-03-22 11:47:35 +00:00
auth.go build: update logging statements to make json log work - fixes #6038 2024-09-06 17:04:18 +01:00
context.go lib/http: fix race condition 2022-12-15 12:38:09 +00:00
middleware_test.go serve webdav: fix webdav with --baseurl under Windows 2024-03-28 10:06:04 +00:00
middleware.go serve webdav: fix webdav with --baseurl under Windows 2024-03-28 10:06:04 +00:00
server_test.go http: fix webdav OPTIONS response (#6433) 2023-08-01 11:48:41 +09:00
server.go http: support listening on passed FDs 2024-09-06 17:21:56 +01:00
template_test.go cmd/rcd: Fix command docs to include command specific prefix (#6675) 2023-03-22 11:47:35 +00:00
template.go build: update logging statements to make json log work - fixes #6038 2024-09-06 17:04:18 +01:00