Serveur Redis

Connecté sur brandybuck en tant que mountdoom, ajouter un utilisateur dédié à Pixelfed

sudo useradd -r -m /nonexistent -s /usr/bin/nologin pixelfed

Installer le serveur Redis et d'autres programmes annexes

sudo apt install -y redis-server lsb-release git jpegoptim optipng pngquant ffmpeg

Modifier le fichier de configuration

sudo nano /etc/redis/redis.conf

Et modifier ces lignes

# Unix socket.
#
# Specify the path for the Unix socket that will be used to listen for
# incoming connections. There is no default, so Redis will not listen
# on a unix socket when not specified.
#
unixsocket /run/redis/redis.sock
unixsocketperm 770
# If you run Redis from upstart or systemd, Redis can interact with your
# supervision tree. Options:
#   supervised no      - no supervision interaction
#   supervised upstart - signal upstart by putting Redis into SIGSTOP mode
#                        requires "expect stop" in your upstart job config
#   supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET
#                        on startup, and updating Redis status on a regular
#                        basis.
#   supervised auto    - detect upstart or systemd method based on
#                        UPSTART_JOB or NOTIFY_SOCKET environment variables
# Note: these supervision methods only signal "process is ready."
#       They do not enable continuous pings back to your supervisor.
#
# The default is "no". To run under upstart/systemd, you can simply uncomment
# the line below:
#
supervised systemd

Ajouter pixelfed au groupe redis

sudo usermod -aG redis pixelfed

Et redémarrer Redis

sudo systemctl restart redis.service