summaryrefslogtreecommitdiff
path: root/.rr.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.rr.yaml')
-rwxr-xr-x.rr.yaml25
1 files changed, 22 insertions, 3 deletions
diff --git a/.rr.yaml b/.rr.yaml
index 2de60b86..ca638aa9 100755
--- a/.rr.yaml
+++ b/.rr.yaml
@@ -31,6 +31,27 @@ http:
"fc00::/7",
"fe80::/10",
]
+ headers:
+ cors:
+ allowed_origin: "*"
+ allowed_headers: "*"
+ allowed_methods: "GET,POST,PUT,DELETE"
+ allow_credentials: true
+ exposed_headers: "Cache-Control,Content-Language,Content-Type,Expires,Last-Modified,Pragma"
+ max_age: 600
+ request:
+ input: "custom-header"
+ response:
+ output: "output-header"
+
+ static:
+ dir: "tests"
+ forbid: [ "" ]
+ request:
+ "input": "custom-header"
+ response:
+ "output": "output-header"
+
pool:
num_workers: 6
max_jobs: 0
@@ -42,7 +63,7 @@ http:
# TTL defines maximum time worker is allowed to live (seconds)
ttl: 0
# IdleTTL defines maximum duration worker can spend in idle mode. Disabled when 0 (seconds)
- idle_ttl: 100
+ idle_ttl: 10
# ExecTTL defines maximum lifetime per job (seconds)
exec_ttl: 10
# MaxWorkerMemory limits memory per worker (MB)
@@ -57,7 +78,6 @@ http:
fcgi:
address: tcp://0.0.0.0:7921
http2:
- enabled: false
h2c: false
max_concurrent_streams: 128
@@ -109,7 +129,6 @@ memcached:
# in memory KV driver
memory:
- enabled: true
# keys ttl check interval
interval: 60