libravatarserv/README.md

78 lines
2.1 KiB
Markdown
Raw Normal View History

2018-11-25 06:33:32 +01:00
**libravatarserv** is a simple [libravatar](https://www.libravatar.org/) server.
It is intended as a
2018-11-24 11:00:07 +01:00
[CGI](https://en.wikipedia.org/wiki/Common_Gateway_Interface) program.
2018-11-25 06:33:32 +01:00
Libravatar is a free service and an open specification for hosting profile
images tied to email or OpenID addresses.
## Features
* Avatar delivery based on email addresses
* Default avatar for unknown addresses
* MD5 hashes
* SHA256 hashes
### Soon
* Variable image size (`s`)
### Not supported
* Avatar delivery based on OpenID
* Default URL for missing images (`d`)
2018-11-24 11:00:07 +01:00
## Usage
2018-11-25 06:33:32 +01:00
Install nginx and
[fcgiwrap](https://www.nginx.com/resources/wiki/start/topics/examples/fcgiwrap/),
copy the [example config](https://schlomp.space/tastytea/libravatarserv/src/branch/master/doc/nginx-example.conf) to the nginx configuration directory and edit it
according to your needs. Other webservers and cgi spawners will also work, of
course.
libravatarserv looks in each of `${XDG_DATA_DIRS}` for a directory named
`libravatarserv`. You can force a different directory by setting the environment
variable `${AVATAR_DIR}`.
The image files are named like your email address, no file extension. Example:
`user@example.com`. If you want to deliver a default image for unknown email
addresses, name it `default`.
2018-11-24 11:00:07 +01:00
## Install
### Dependencies
2018-11-25 06:33:32 +01:00
* C++ compiler (tested: [gcc](https://gcc.gnu.org/) 7,
[clang](https://llvm.org/) 6)
2018-11-24 11:00:07 +01:00
* [cmake](https://cmake.org/) (at least 3.2)
2018-11-25 06:33:32 +01:00
* [crypto++](https://cryptopp.com) (tested: 7.0)
* [imagemagick](https://www.imagemagick.org/) (tested: 7.0)
* [libxdg-basedir](http://repo.or.cz/w/libxdg-basedir.git) (tested: 1.2)
2018-11-24 11:00:07 +01:00
### Compile
```SH
mkdir build
cd build
cmake ..
make
make install
```
## Contributing
Contributions are always welcome. You can submit them as pull requests or via
email to `tastytea`@`tastytea.de`.
2018-11-25 06:33:32 +01:00
## Contact
See https://tastytea.de/
2018-11-24 11:00:07 +01:00
## License & Copyright
```PLAIN
Copyright © 2018 tastytea <tastytea@tastytea.de>.
License GPLv3: GNU GPL version 3 <https://www.gnu.org/licenses/gpl-3.0.html>.
This program comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
```