= '127.0.0.1'
= 7888
= 200
= 12000 # In bytes, how much memory to allocate for each request
# TLS certificate and private key (PEM format). Required for HTTPS and HTTP/2.
# Build with --features http2 to enable TLS support.
# tls_cert_file = '/path/to/cert.pem'
# tls_key_file = '/path/to/key.pem'
[]
= false # true will allow all CORS requests and you can omit configuring cors properties below
= ["https://foo.example", "https://bar.example"] # list of allowed origins, this setting won't apply if cors allow_all set to true
= ["GET", "DELETE", "PUT", "PATCH"] # list of allowed methods, this setting won't apply if cors allow_all set to true
= ["content-type", "x-custom-header"] # list of allowed request headers, in lowercase, this setting won't apply if cors allow_all set to true
= true # if set to true, will allow to transmit credentials via CORS requests, this setting won't apply if cors allow_all set to true
= ["content-type", "x-custom-header"] # list of allowed response headers, in lowercase, this setting won't apply if cors allow_all set to true
= "86400" # in seconds, time to cache in browser CORS information, 86400s = 1 day; this setting won't apply if cors allow_all set to true