diff options
author | lain <lain@soykaf.club> | 2024-05-27 15:20:43 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2024-05-27 15:20:43 +0000 |
commit | e93ae96e1323fae954c2ce482cbb1df9ed9441c6 (patch) | |
tree | 874cebf85a5dcc16e65fb5a0626e1e98be39512e /installation | |
parent | d11ba9e85bfe44a0f82605a1c0bc588f5e0a48f1 (diff) | |
parent | ed93af64e14e1e82cf4840b1a160df8eddecc55c (diff) | |
download | pleroma-e93ae96e1323fae954c2ce482cbb1df9ed9441c6.tar.gz pleroma-e93ae96e1323fae954c2ce482cbb1df9ed9441c6.zip |
Merge branch 'nsfw-api-mrf' into 'develop'
NSFW API Policy
See merge request pleroma/pleroma!3471
Diffstat (limited to 'installation')
-rw-r--r-- | installation/nsfw-api.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/installation/nsfw-api.service b/installation/nsfw-api.service new file mode 100644 index 000000000..ec629df67 --- /dev/null +++ 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 |