-
Notifications
You must be signed in to change notification settings - Fork 0
/
rws.config.toml
13 lines (12 loc) · 1.12 KB
/
rws.config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
ip = '127.0.0.1'
port = 7888
thread_count = 200
request-allocation-size-in-bytes = 12000 # In bytes, how much memory to allocate for each request
[cors]
allow_all = false # true will allow all CORS requests and you can omit configuring cors properties below
allow_origins = ["https://foo.example", "https://bar.example"] # list of allowed origins, this setting won't apply if cors allow_all set to true
allow_methods = ["GET", "DELETE", "PUT", "PATCH"] # list of allowed methods, this setting won't apply if cors allow_all set to true
allow_headers = ["content-type", "x-custom-header"] # list of allowed request headers, in lowercase, this setting won't apply if cors allow_all set to true
allow_credentials = 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
expose_headers = ["content-type", "x-custom-header"] # list of allowed response headers, in lowercase, this setting won't apply if cors allow_all set to true
max_age = "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