-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TLS config: support passing cert and key by contents (#49)
* add RawFile Signed-off-by: xixi <[email protected]> * add tls example Signed-off-by: xixi <[email protected]>
- Loading branch information
Showing
2 changed files
with
59 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
proxy_ports: [80, 443, 8080] # proxy will do nothing if empty | ||
rules: | ||
- target: Request | ||
selector: | ||
port: 8080 | ||
path: /example # match all path starts with "/example" | ||
method: GET | ||
actions: | ||
delay: 10s | ||
replace: | ||
body: | ||
update_content_length: false # true by default | ||
contents: | ||
type: TEXT | ||
value: '{"name": "Chaos Mesh", "message": "Hello!"}' | ||
tls: | ||
cert_file: | ||
type: Path | ||
value: /usr/local/example.cert | ||
key_file: | ||
type: Path | ||
value: /usr/local/example.key | ||
# ca_file: | ||
# type: Path | ||
# value: /usr/local/root.cert |