mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
services: cat-avatar-generator: Fix default cache directory.
* gnu/services/web.scm (cat-avatar-generator-service): Append slash to default cache directory. * doc/guix.texi (PHP-FPM)<cat-avatar-generator-service>: Likewise. Mention requirements. Change-Id: Idd46deca135bf37133b46bee3ba535d9bedf9258 Merges: https://codeberg.org/guix/guix/pulls/5189 Reviewed-by: Yan Abu Arab <yanabuarab@gmail.com> Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
This commit is contained in:
committed by
Nguyễn Gia Phong
parent
7c8cb33b98
commit
f7c9456a6f
@@ -36561,13 +36561,14 @@ in @code{Nginx}. It is used to generate cat avatar from a seed, for instance
|
||||
the hash of a user's email address.
|
||||
|
||||
@deffn {Procedure} cat-avatar-generator-service @
|
||||
[#:cache-dir "/var/cache/cat-avatar-generator"] @
|
||||
[#:cache-dir "/var/cache/cat-avatar-generator/"] @
|
||||
[#:package cat-avatar-generator] @
|
||||
[#:configuration (nginx-server-configuration)]
|
||||
Returns an nginx-server-configuration that inherits @code{configuration}. It
|
||||
extends the nginx configuration to add a server block that serves @code{package},
|
||||
a version of cat-avatar-generator. During execution, cat-avatar-generator will
|
||||
be able to use @code{cache-dir} as its cache directory.
|
||||
be able to use @code{cache-dir} as its cache directory, which must end
|
||||
with a slash, be created manually, and be writable by php-fpm.
|
||||
@end deffn
|
||||
|
||||
A simple setup for cat-avatar-generator can look like this:
|
||||
|
||||
Reference in New Issue
Block a user