aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-07-06 11:41:24 +0000
committerOmar Polo <op@omarpolo.com>2021-07-06 11:41:24 +0000
commit3759d3eb56e899a8982c7e7df9555842b398b9b6 (patch)
tree48ce2ebdb090144bfa4a017c6b263e11abacae2d /README.md
parent7700ab07d3a97459e8d294f0ee672d7eaed67b85 (diff)
show macro usage in the example
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 8 insertions, 5 deletions
diff --git a/README.md b/README.md
index 67cd275..6ee6d9b 100644
--- a/README.md
+++ b/README.md
@@ -56,20 +56,23 @@ server "example.com" {
}
```
-and a slightly complex one
+and a slightly more complex one
```conf
ipv6 on # enable ipv6
+# define a macro
+cert_root = "/path/to/keys"
+
server "example.com" {
alias "foobar.com"
- cert "/path/to/cert.pem"
- key "/path/to/key.pem"
+ cert $cert_root "/example.com.crt"
+ key $cert_root "/example.com.pem"
root "/var/gemini/example.com"
# lang for text/gemini files
- lang "it"
+ lang "en"
# execute CGI scripts in /cgi/
cgi "/cgi/*"
@@ -83,7 +86,7 @@ server "example.com" {
location "/repo/*" {
# change the index file name
index "README.gmi"
- lang "en"
+ lang "it"
}
}
```