feat: add bentoPDF

This commit is contained in:
CoolnsX
2026-05-14 19:15:25 +05:30
parent fd6fe1eab1
commit 3a9d6995cb
2 changed files with 34 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
[Unit]
Description=BentoPDF container
[Container]
Network=host
ContainerName=bentopdf
Image=ghcr.io/alam00000/bentopdf-simple:latest
Volume=%h/podman/bentopdf:/tmp
Volume=./nginx-listen-on-unix.sh:/docker-entrypoint.d/99-nginx-listen-on-unix.sh:ro
# Enable auto-update container
AutoUpdate=registry
[Service]
Restart=always
TimeoutStartSec=300
[Install]
WantedBy=default.target
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
set -e
entrypoint_log() {
if [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then
echo "$@"
fi
}
SOCKET="${NGINX_SOCKET:-/tmp/nginx.sock}"
entrypoint_log "[coolans] Changing Nginx listen port to $SOCKET"
sed -i -e "s|listen 8080;|listen unix:${SOCKET};|" -e "/listen \[::\]:8080;/d" /etc/nginx/nginx.conf