Skip to content

Commit d6b3260

Browse files
committed
Updated cookbook
Signed-off-by: Vishal Rana <[email protected]>
1 parent 79ad9d6 commit d6b3260

File tree

1 file changed

+14
-25
lines changed

1 file changed

+14
-25
lines changed

website/content/cookbook/auto-tls.md

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ HTML page.
1616
- Copy config `config.json` to `/etc/armor`
1717
- Copy `index.html` to `/var/www/test`
1818
- Start Armor `armor -c /etc/armor/config.json`
19-
- Browse to `http://test.lab.st`, and in a few seconds TLS certificate will
20-
be installed automatically.
19+
- Browse to `http://test.lab.st`, and in a few seconds TLS certificate will be installed automatically.
2120

2221
## Maintainers
2322

@@ -27,29 +26,19 @@ be installed automatically.
2726

2827
`config.json`
2928

30-
```js
31-
{
32-
"address": ":80",
33-
"tls": {
34-
"address": ":443",
35-
"auto": true
36-
},
37-
"plugins": [{
38-
"name": "https-redirect"
39-
}],
40-
"hosts": {
41-
"test.lab.st": {
42-
"paths": {
43-
"/": {
44-
"plugins": [{
45-
"name": "static",
46-
"root": "/var/www/test"
47-
}]
48-
}
49-
}
50-
}
51-
}
52-
}
29+
```yaml
30+
---
31+
address: :80
32+
tls:
33+
address: :443
34+
auto: true
35+
plugins:
36+
- name: https-redirect
37+
hosts:
38+
test.lab.st:
39+
plugins:
40+
- name: static
41+
root: /var/www/test
5342
```
5443
5544
`index.html`

0 commit comments

Comments
 (0)