@@ -9,41 +9,42 @@ description = "Armor configuration"
9
9
Armor accepts configuration in YAML format, command-line option ` -c ` can be used
10
10
to specify a config file, e.g. ` armor -c config.yaml ` .
11
11
12
- Name | Type | Description
13
- :--- | :--- | :----------
14
- ` address ` | string | HTTP listen address e.g. ` :8080 ` listens to all IP address on port 8080
15
- ` read_timeout ` | number | Maximum duration in seconds before timing out read of the request
16
- ` write_timeout ` | number | Maximum duration before timing out write of the response
17
- ` tls ` | object | TLS configuration
18
- ` plugins ` | array | Global plugins
19
- ` hosts ` | object | Virtual hosts
12
+ | Name | Type | Description |
13
+ | :-------------- | :----- | :---------------------------------------------------------------------- |
14
+ | ` address ` | string | HTTP listen address e.g. ` :8080 ` listens to all IP address on port 8080 |
15
+ | ` read_timeout ` | number | Maximum duration in seconds before timing out read of the request |
16
+ | ` write_timeout ` | number | Maximum duration before timing out write of the response |
17
+ | ` tls ` | object | TLS configuration |
18
+ | ` plugins ` | array | Global plugins |
19
+ | ` hosts ` | object | Virtual hosts |
20
20
21
21
` tls `
22
22
23
- Name | Type | Description
24
- :--- | :--- | :----------
25
- ` address ` | string | HTTPS listen address. Default value ` :80 `
26
- ` cert_file ` | string | Certificate file
27
- ` key_file ` | string | Key file
28
- ` auto ` | bool | Enable automatic certificates from https://letsencrypt.org
29
- ` cache_dir ` | string | Cache directory to store certificates from https://letsencrypt.org . Default value ` ~/.armor/cache ` .
30
- ` email ` | string | Email optionally specifies a contact email address.
31
- ` directory_url ` | string | Defines the ACME CA directory endpoint. If empty, LetsEncryptURL is used (acme.LetsEncryptURL).
23
+ | Name | Type | Description |
24
+ | :-------------- | :----- | :-------------------------------------------------------------------------------------------------- |
25
+ | ` address ` | string | HTTPS listen address. Default value ` :80 ` |
26
+ | ` cert_file ` | string | Certificate file |
27
+ | ` key_file ` | string | Key file |
28
+ | ` auto ` | bool | Enable automatic certificates from https://letsencrypt.org |
29
+ | ` cache_dir ` | string | Cache directory to store certificates from https://letsencrypt.org . Default value ` ~/.armor/cache ` . |
30
+ | ` email ` | string | Email optionally specifies a contact email address. |
31
+ | ` directory_url ` | string | Defines the ACME CA directory endpoint. If empty, LetsEncryptURL is used (acme.LetsEncryptURL). |
32
32
33
33
` hosts `
34
34
35
- Name | Type | Description
36
- :--- | :--- | :----------
37
- ` cert_file ` | string | Certificate file
38
- ` key_file ` | string | Key file
39
- ` plugins ` | array | Host plugins
40
- ` paths ` | object | Paths
35
+ | Name | Type | Description |
36
+ | :---------- | :----- | :-------------------------------------------------------------------------------------------------------------------------- |
37
+ | ` cert_file ` | string | Certificate file |
38
+ | ` key_file ` | string | Key file |
39
+ | ` plugins ` | array | Host plugins |
40
+ | ` paths ` | object | Paths |
41
+ | ` client_ca ` | array | A list of client CA (certificate authority) certificate encoded as base64 DER. If set client must provide valid certificate |
41
42
42
43
` paths `
43
44
44
- Name | Type | Description
45
- :--- | :--- | :----------
46
- ` plugins ` | array | Path plugins
45
+ | Name | Type | Description |
46
+ | :-------- | :---- | :----------- |
47
+ | ` plugins ` | array | Path plugins |
47
48
48
49
## [ Plugins] ({{< ref "plugins/redirect.md">}})
49
50
92
93
targets :
93
94
- url : http://api
94
95
armor.labstack.com :
96
+ client_ca_der :
97
+ - " MIIDSzCCAjOgAwI......E/lYx0qGtr0xHQ=="
95
98
paths :
96
99
" / " :
97
100
plugins :
0 commit comments