Added DNS record documentation

This commit is contained in:
tastytea 2018-11-25 07:59:17 +01:00
parent 63540add66
commit a094dd2896
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 8 additions and 0 deletions

View File

@ -26,6 +26,14 @@ copy the [example config](https://schlomp.space/tastytea/libravatarserv/src/bran
according to your needs. Other webservers and cgi spawners will also work, of according to your needs. Other webservers and cgi spawners will also work, of
course. course.
Add the following DNS records to your nameserver:
```PLAIN
_avatars._tcp.example.com. IN SRV 0 0 80 avatars.example.com
_avatars-sec._tcp.example.com. IN SRV 0 0 443 avatars.example.com
```
`_avatars._tcp.example.com` is for HTTP, `_avatars-sec._tcp.example.com` is for
HTTPS.
libravatarserv looks in each of `${XDG_DATA_DIRS}` for a directory named libravatarserv looks in each of `${XDG_DATA_DIRS}` for a directory named
`libravatarserv`. You can force a different directory by setting the environment `libravatarserv`. You can force a different directory by setting the environment
variable `${AVATAR_DIR}`. variable `${AVATAR_DIR}`.