Skip to content

Commit 1a1a1a8

Browse files
committed
add location limits
1 parent 7e50965 commit 1a1a1a8

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed

charts/internal-gateway/files/conf.d/s3-gateway.conf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ server {
77

88
js_import scripts/auth.js;
99
location ~ /(.+) {
10+
client_body_buffer_size 32k;
11+
client_max_body_size 10M;
12+
proxy_buffer_size 128k;
13+
proxy_buffers 4 128k;
14+
proxy_connect_timeout 5s;
15+
proxy_read_timeout 60s;
16+
proxy_send_timeout 60s;
17+
1018
auth_request /api/auth/authenticate;
1119
auth_request_set $auth_entity $upstream_http_x_cf_auth_entity;
1220

@@ -16,6 +24,14 @@ server {
1624
}
1725

1826
location = /api/auth/authenticate {
27+
client_body_buffer_size 32k;
28+
client_max_body_size 10M;
29+
proxy_buffer_size 128k;
30+
proxy_buffers 4 128k;
31+
proxy_connect_timeout 5s;
32+
proxy_read_timeout 60s;
33+
proxy_send_timeout 60s;
34+
1935
proxy_pass http://{{ index $vals "codefresh" "serviceEndpoints" "cfapi-auth" "svc" }}:{{ index $vals "codefresh" "serviceEndpoints" "cfapi-auth" "port" }};
2036
}
2137
}

charts/ngrok-agent/README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# ngrok-agent
2+
3+
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
4+
5+
A Helm chart for Kubernetes
6+
7+
## Maintainers
8+
9+
| Name | Email | Url |
10+
| ---- | ------ | --- |
11+
| codefresh | | <https://codefresh-io.github.io/> |
12+
13+
## Requirements
14+
15+
| Repository | Name | Version |
16+
|------------|------|---------|
17+
| oci://quay.io/codefresh/charts | cf-common | 0.20.1 |
18+
19+
## Values
20+
21+
| Key | Type | Default | Description |
22+
|-----|------|---------|-------------|
23+
| affinity | object | `{}` | |
24+
| codefresh.internal-gateway-port | int | `80` | |
25+
| codefresh.internal-gateway-svc | string | `"internal-gateway"` | |
26+
| codefresh.ngrok-domain | string | `""` | |
27+
| configMaps.config.data."ngrok.yml" | string | `"{{ include (printf \"cf-common-%s.tplrender\" (index .Subcharts \"cf-common\").Chart.Version) ( dict \"Values\" .Values.ngrok.config \"context\" .) | nindent 2 }}\n"` | |
28+
| configMaps.config.enabled | bool | `true` | |
29+
| container.args[0] | string | `"start"` | |
30+
| container.args[1] | string | `"--all"` | |
31+
| container.args[2] | string | `"--config=/etc/ngrok.yml"` | |
32+
| container.args[3] | string | `"--log=stdout"` | |
33+
| container.args[4] | string | `"--log-format=json"` | |
34+
| container.args[5] | string | `"--log-level=debug"` | |
35+
| container.command[0] | string | `"ngrok"` | |
36+
| container.env.NGROK_AUTHTOKEN | string | `""` | |
37+
| container.image.pullPolicy | string | `"IfNotPresent"` | |
38+
| container.image.registry | string | `"docker.io"` | |
39+
| container.image.repository | string | `"ngrok/ngrok"` | |
40+
| container.image.tag | string | `"3-alpine"` | |
41+
| container.volumeMounts.config.path[0].mountPath | string | `"/etc/ngrok.yml"` | |
42+
| container.volumeMounts.config.path[0].subPath | string | `"ngrok.yml"` | |
43+
| controller.deployment.strategy | string | `"Recreate"` | |
44+
| controller.enabled | bool | `true` | |
45+
| controller.replicas | int | `1` | |
46+
| controller.type | string | `"deployment"` | |
47+
| global | object | `{}` | |
48+
| hpa | object | `{}` | |
49+
| keda.auth | object | `{}` | |
50+
| keda.spec | object | `{}` | |
51+
| libraryMode | bool | `true` | |
52+
| ngrok.config | string | `"version: 3\ntunnels:\n ingresshost:\n proto: http\n addr: {{ printf \"%s:%v\" (index .Values.codefresh \"internal-gateway-svc\") (index .Values.codefresh \"internal-gateway-port\") }}\n hostname: {{ index .Values.codefresh \"ngrok-domain\" }}\n"` | |
53+
| nodeSelector | object | `{}` | |
54+
| pdb | object | `{}` | |
55+
| tolerations | list | `[]` | |
56+
| volumes.config.enabled | bool | `true` | |
57+
| volumes.config.type | string | `"configMap"` | |
58+
59+
----------------------------------------------
60+
Autogenerated from chart metadata using [helm-docs v1.9.1](https://github.com/norwoodj/helm-docs/releases/v1.9.1)

0 commit comments

Comments
 (0)