Skip to content

HTTP: add --http-proxy-api <path>#598

Merged
djs55 merged 2 commits intomoby:masterfrom
djs55:http-proxy-api
Aug 25, 2022
Merged

HTTP: add --http-proxy-api <path>#598
djs55 merged 2 commits intomoby:masterfrom
djs55:http-proxy-api

Conversation

@djs55
Copy link
Copy Markdown
Collaborator

@djs55 djs55 commented Aug 22, 2022

This adds a third HTTP proxy configuration option. We already have:

  1. command-line
  2. configuration file

This adds an HTTP server. The caller can run:

vpnkit --http-api-path /tmp/foo.sock --ethernet /tmp/ethernet.sock

and then

curl --unix-socket /tmp/foo.sock http://localhost/http_proxy.json

and

curl -X POST -d json --unix-socket /tmp/foo.sock http://localhost/http_proxy.json

djs55 added 2 commits August 22, 2022 20:24
Signed-off-by: David Scott <dave@recoil.org>
Signed-off-by: David Scott <dave@recoil.org>
@djs55 djs55 merged commit 281c14b into moby:master Aug 25, 2022
@djs55 djs55 deleted the http-proxy-api branch August 25, 2022 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant