mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
fix: windows friendly daemon help
tweak the daemon --help output to use escaped double quotes instead of single quotes so the same command can be used on windows. fixes: #2034 License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
This commit is contained in:
parent
dd16b3ca1c
commit
be5d5fdca6
@ -100,8 +100,8 @@ ipfs supports passing arbitrary headers to the API and Gateway. You can
|
||||
do this by setting headers on the API.HTTPHeaders and Gateway.HTTPHeaders
|
||||
keys:
|
||||
|
||||
ipfs config --json API.HTTPHeaders.X-Special-Header '["so special :)"]'
|
||||
ipfs config --json Gateway.HTTPHeaders.X-Special-Header '["so special :)"]'
|
||||
ipfs config --json API.HTTPHeaders.X-Special-Header "[\"so special :)\"]"
|
||||
ipfs config --json Gateway.HTTPHeaders.X-Special-Header "[\"so special :)\"]"
|
||||
|
||||
Note that the value of the keys is an _array_ of strings. This is because
|
||||
headers can have more than one value, and it is convenient to pass through
|
||||
@ -111,9 +111,9 @@ CORS Headers (for API)
|
||||
|
||||
You can setup CORS headers the same way:
|
||||
|
||||
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["example.com"]'
|
||||
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
|
||||
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'
|
||||
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"example.com\"]"
|
||||
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods "[\"PUT\", \"GET\", \"POST\"]"
|
||||
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials "[\"true\"]"
|
||||
|
||||
Shutdown
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user