nginx-proxy-manager/rootfs/etc/services.d/nginx/run

13 lines
318 B
Plaintext
Raw Normal View History

2017-12-20 23:02:37 +00:00
#!/usr/bin/with-contenv bash
mkdir -p /tmp/nginx/body \
/var/log/nginx \
2018-07-31 05:18:09 +00:00
/data/{nginx,logs,access} \
2019-08-17 09:01:00 +00:00
/data/nginx/{proxy_host,redirection_host,stream,dead_host,temp} \
2018-07-31 05:18:09 +00:00
/var/lib/nginx/cache/{public,private}
touch /var/log/nginx/error.log && chmod 777 /var/log/nginx/error.log
2017-12-20 23:02:37 +00:00
chown root /tmp/nginx
2018-07-31 05:18:09 +00:00
exec nginx