16 lines
354 B
Markdown
16 lines
354 B
Markdown
curl\_sh
|
|
========
|
|
_A User-Agent based proxy_
|
|
|
|
This nginx configuration will return `script.sh` if the user-agent contains "**curl**".
|
|
In any other case it will act as a reverse-proxy to `PROXY_PASS_HOST`.
|
|
|
|
curl\_sh does not support HTTPS.
|
|
|
|
### Usage
|
|
|
|
```sh
|
|
$ docker build . -t curl_sh
|
|
$ docker run -e PROXY_PASS_HOST=http://my_host:1234 --rm curl_sh
|
|
```
|