Skip to content

Commit

Permalink
README updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene committed Feb 28, 2022
1 parent ffb3773 commit 5b7c6e4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ spec:
- proxy:
hostname: target-example.com
port: 443
connectTimeout: 5
```

### Simple reverse proxy (path)
Expand All @@ -78,6 +79,7 @@ spec:
- proxy:
hostname: target-example.com
port: 443
connectTimeout: 5
```

### Simple reverse proxy (regex)
Expand Down Expand Up @@ -252,6 +254,40 @@ spec:
AllowedIPRanges: ["1.2.3.4/16"] # optional IP restriction
```

## Configure defaults
Defaults can be configured using the defaults type:
```
api: proxy.in4it.io/v1
kind: defaults
metadata:
name: myDefaults
spec:
connectTimeout: 20
```

## Lua Filter
A Lua Filter can be configured. This is a global filter on the listeners. You can specify also specify mTLS listeners.
```
api: proxy.in4it.io/v1
kind: luaFilter
metadata:
name: default-lua-filter
spec:
listener:
mTLS: test-mtls
inlineCode: |
-- Called on the request path.
function envoy_on_request(request_handle)
-- Do something.
end
-- Called on the response path.
function envoy_on_response(response_handle)
-- Do something.
end
```



## Run on AWS with terraform

There is a terraform module available in this repository. It'll configure an S3 bucket, a Network Loadbalancer, and 3 fargate containers. The container setup consist of 2 envoy proxies (one for http and one for https), and the roxprox server. To start using it, add the following code to your terraform project:
Expand Down

0 comments on commit 5b7c6e4

Please sign in to comment.