aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: ebda78b0bec400de8b4a988c630c7139c3863385 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# fsproxy

"some fuckshit that changes your response codes" - K5DOC

it's not a **f**ile **s**ystem proxy, it's a **f**uck**s**hit proxy

## running
```
Usage of ./fsproxy:
  -host string
        host to bind to (default "localhost:6969")
  -only404
        only change status code to 404
  -upstream string
        upstream host to proxy to (required)
```
example: `./fsproxy --upstream https://example.com`

## docker
the docker image binds to `0.0.0.0:6969` by default, so you'll need to expose the port (`--port 127.0.0.1:6969:6969`).
you'll also need to set the upstream as the command

example: `docker run --rm -it -p 127.0.0.1:6969:6969 docker.io/galenguyer/fsproxy --upstream https://example.com`

### docker-compose
a compose file is also provided for your inconvenience. it can be ran with `docker-compose up --build`

you can also command out the `build` directive and uncomment the `image` directive to use the latest image from docker hub