https://github.com/saladtechnologies/caddy-web-proxy
A simple proxy server implemented with Caddy
https://github.com/saladtechnologies/caddy-web-proxy
Last synced: 8 months ago
JSON representation
A simple proxy server implemented with Caddy
- Host: GitHub
- URL: https://github.com/saladtechnologies/caddy-web-proxy
- Owner: SaladTechnologies
- License: mit
- Created: 2023-10-04T16:08:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-04T19:28:54.000Z (about 2 years ago)
- Last Synced: 2025-02-16T16:58:59.627Z (8 months ago)
- Language: Go
- Size: 48.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# caddy-web-proxy
A simple proxy server implemented with Caddy# Build
```shell
docker buildx build \
-t saladtechnologies/caddy-web-proxy:latest \
--provenance=false \
--output type=docker \
.
```# Run
```shell
docker run \
-p 3000:3000 \
saladtechnologies/caddy-web-proxy:latest
```# Use
To access https://salad.com/salad-cloud/generative-ai, use the following command:
```shell
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.