forked from canonical/content-cache-k8s-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
62 lines (61 loc) · 2.09 KB
/
config.yaml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.
options:
site:
type: string
description: >
Required if no nginx-proxy relation is established. The site name, e.g. "mysite.local".
If the backend is set and this option is empty then the site will default to the application
name.
backend:
type: string
description: >
Required if no nginx-proxy relation is established. The backend to use for site, e.g. "http://mybackend.local:80".
default: ""
backend_site_name:
type: string
description: >
Backend site name, e.g. mybackend.local. If none given, will
work out from the configured 'backend' config above.
default: ""
cache_all:
type: boolean
description: >
By default, we respect upstream cache headers (Cache-Control
and Expires). This overrides that and enables caching even if
upstream tells us not to.
WARNING: It won't cache when Vary: * and Set-Cookies headers are sent in the responses.
This option overrides the backend cache time instructions (Expires or max-age) by setting
a cache time to 1h (which could be less than the caching instructed by the backend)
default: False
cache_inactive_time:
type: string
description: >
The maximum age/time inactive objects are stored in cache.
default: "10m"
cache_max_size:
type: string
description: >
The size of the Nginx storage cache.
default: "10G"
cache_use_stale:
type: string
description: >
Determines in which cases a stale cached response can be used
during communication with the proxied server.
default: "error timeout updating http_500 http_502 http_503 http_504"
cache_valid:
type: string
description: >
Sets caching time for different response codes.
default: "200 1h"
client_max_body_size:
type: string
description: >
Override max. request body size (default 1m).
default: "1m"
tls_secret_name:
type: string
description: >
The name of the K8s secret to be associated with the ingress resource.
default: ""