logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: c802c3055ef6c1f763d5df68f9e5308093f7d565
parent b293c14a1b01398029dfa80aea306946efc2f284
Author: Alex Gleason <alex@alexgleason.me>
Date:   Thu, 17 Jun 2021 15:04:40 -0500

NsfwApiPolicy: add systemd example file

Diffstat:

Ainstallation/nsfw-api.service15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/installation/nsfw-api.service b/installation/nsfw-api.service @@ -0,0 +1,15 @@ +[Unit] +Description=NSFW API +After=docker.service +Requires=docker.service + +[Service] +TimeoutStartSec=0 +Restart=always +ExecStartPre=-/usr/bin/docker stop %n +ExecStartPre=-/usr/bin/docker rm %n +ExecStartPre=/usr/bin/docker pull eugencepoi/nsfw_api:latest +ExecStart=/usr/bin/docker run --rm -p 127.0.0.1:5000:5000/tcp --env PORT=5000 --name %n eugencepoi/nsfw_api:latest + +[Install] +WantedBy=multi-user.target