Skip to content

A simple proxy server implemented with Caddy

License

Notifications You must be signed in to change notification settings

SaladTechnologies/caddy-web-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

caddy-web-proxy

A simple proxy server implemented with Caddy

Build

docker buildx build \
-t saladtechnologies/caddy-web-proxy:latest \
--provenance=false \
--output type=docker \
.

Run

docker run \
-p 3000:3000 \
saladtechnologies/caddy-web-proxy:latest

Use

To access https://salad.com/salad-cloud/generative-ai, use the following command:

curl  -X GET \
  'https://localhost:3000/salad-cloud/generative-ai' \
  --header 'Accept: */*' \
  --header 'x-upstream-host: salad.com'

Note, all parts of the request are proxied as-is, including the headers. The only exception is the Host header, which is replaced with the value of the x-upstream-host header.

About

A simple proxy server implemented with Caddy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published