mirror of https://github.com/omar-polo/gmid.git
show macro usage in the example
This commit is contained in:
parent
7700ab07d3
commit
3759d3eb56
13
README.md
13
README.md
|
@ -56,20 +56,23 @@ server "example.com" {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
and a slightly complex one
|
and a slightly more complex one
|
||||||
|
|
||||||
```conf
|
```conf
|
||||||
ipv6 on # enable ipv6
|
ipv6 on # enable ipv6
|
||||||
|
|
||||||
|
# define a macro
|
||||||
|
cert_root = "/path/to/keys"
|
||||||
|
|
||||||
server "example.com" {
|
server "example.com" {
|
||||||
alias "foobar.com"
|
alias "foobar.com"
|
||||||
|
|
||||||
cert "/path/to/cert.pem"
|
cert $cert_root "/example.com.crt"
|
||||||
key "/path/to/key.pem"
|
key $cert_root "/example.com.pem"
|
||||||
root "/var/gemini/example.com"
|
root "/var/gemini/example.com"
|
||||||
|
|
||||||
# lang for text/gemini files
|
# lang for text/gemini files
|
||||||
lang "it"
|
lang "en"
|
||||||
|
|
||||||
# execute CGI scripts in /cgi/
|
# execute CGI scripts in /cgi/
|
||||||
cgi "/cgi/*"
|
cgi "/cgi/*"
|
||||||
|
@ -83,7 +86,7 @@ server "example.com" {
|
||||||
location "/repo/*" {
|
location "/repo/*" {
|
||||||
# change the index file name
|
# change the index file name
|
||||||
index "README.gmi"
|
index "README.gmi"
|
||||||
lang "en"
|
lang "it"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue