Skip to content

Commit 5ee80fc

Browse files
BarberBarber
authored andcommitted
Merge branch 'main' of github.com:unity-sds/unity-proxy
2 parents cb31db0 + a4afcc6 commit 5ee80fc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
11
Unity Reverse Proxy
2+
3+
How to trigger:
4+
```
5+
resource "aws_lambda_invocation" "example_invocation2" {
6+
function_name = module.unity-proxy-CgbrD.lambda_function_name
7+
8+
input = jsonencode({
9+
filename = "example_filename1",
10+
template = "<VirtualHost *:8080>\nRewriteEngine on \n ProxyPass /management/ http://<DNS_NAME>/\n ProxyPassReverse /management/ http://<DNS_NAME>/ \n ProxyPreserveHost On \n RewriteCond {HTTP:Upgrade} websocket [NC] \n RewriteCond {HTTP:Connection} upgrade [NC] \n RewriteRule /management/(.*) ws://<DNS_NAME>/$1 [P,L] \n FallbackResource /management/index.html \n </VirtualHost>"
11+
})
12+
13+
# Depends on ensures that the Lambda function is created before it is invoked.
14+
depends_on = [module.unity-proxy-CgbrD]
15+
}
16+
```

0 commit comments

Comments
 (0)