Nginx Proxy Manager: ensure /tmp/nginx/body exists via openresty service ExecStartPre

This commit is contained in:
MickLesk
2026-04-04 22:14:08 +02:00
parent 9ce2fe9ee0
commit 9573019d6b
2 changed files with 2 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ Wants=network-online.target
[Service] [Service]
Type=simple Type=simple
ExecStartPre=-/bin/mkdir -p /tmp/nginx/body /run/nginx
ExecStartPre=/usr/local/openresty/nginx/sbin/nginx -t ExecStartPre=/usr/local/openresty/nginx/sbin/nginx -t
ExecStart=/usr/local/openresty/nginx/sbin/nginx -g 'daemon off;' ExecStart=/usr/local/openresty/nginx/sbin/nginx -g 'daemon off;'

View File

@@ -62,6 +62,7 @@ Wants=network-online.target
[Service] [Service]
Type=simple Type=simple
ExecStartPre=-/bin/mkdir -p /tmp/nginx/body /run/nginx
ExecStartPre=/usr/local/openresty/nginx/sbin/nginx -t ExecStartPre=/usr/local/openresty/nginx/sbin/nginx -t
ExecStart=/usr/local/openresty/nginx/sbin/nginx -g 'daemon off;' ExecStart=/usr/local/openresty/nginx/sbin/nginx -g 'daemon off;'