Skip to content

Commit

Permalink
feat: Add nginx advanced settings (#435)
Browse files Browse the repository at this point in the history
* feat: Add nginx service advanced settings

* network.ingress.extra_headers
* network.ingress.proxy_buffering
* network.ingress.proxy_request_buffering

* Add extra_headers examples
  • Loading branch information
mzottola authored Sep 4, 2023
1 parent b673b98 commit 9bb8309
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/schemas/ApplicationAdvancedSettings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ properties:
type: integer
default: 60
description: Sets a timeout (in seconds) for reading a response from the proxied server
network.ingress.proxy_buffering:
type: string
default: "on"
description: Allows to enable or disable nginx `proxy-buffering`
network.ingress.proxy_request_buffering:
type: string
default: "on"
description: Allows to enable or disable nginx `proxy-request-buffering`
network.ingress.whitelist_source_range:
type: string
description: |
Expand Down Expand Up @@ -128,6 +136,11 @@ properties:
type: integer
description: Sets a timeout (in seconds) for transmitting a request to the grpc server
default: 60
network.ingress.extra_headers:
type: string
default: "{}"
description: Allows to define response headers
example: '{"X-Frame-Options":"DENY ","X-Content-Type-Options":"nosniff"}'
hpa.cpu.average_utilization_percent:
type: integer
description: Percentage value of cpu usage at which point pods should scale up.
Expand Down
13 changes: 13 additions & 0 deletions src/schemas/ContainerAdvancedSettings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ properties:
type: integer
default: 60
description: Sets a timeout (in seconds) for reading a response from the proxied server
network.ingress.proxy_buffering:
type: string
default: "on"
description: Allows to enable or disable nginx `proxy-buffering`
network.ingress.proxy_request_buffering:
type: string
default: "on"
description: Allows to enable or disable nginx `proxy-request-buffering`
network.ingress.grpc_send_timeout_seconds:
type: integer
description: Sets a timeout (in seconds) for transmitting a request to the grpc server
Expand All @@ -106,6 +114,11 @@ properties:
list of source ranges to deny access to ingress proxy.
This property can be used to blacklist source IP ranges for ingress proxy.
The value is a comma separated list of CIDRs, e.g. 10.0.0.0/24,172.10.0.1
network.ingress.extra_headers:
type: string
default: "{}"
description: Allows to define response headers
example: '{"X-Frame-Options":"DENY ","X-Content-Type-Options":"nosniff"}'
network.ingress.basic_auth_env_var:
type: string
default: ""
Expand Down

0 comments on commit 9bb8309

Please sign in to comment.