Files
nginx-proxy-manager/docker/rootfs/etc/cont-init.d/01_perms.sh
baudneo 76588a8e2f Add CrowdSec OpenResty bouncer config - ENV: CROWDSEC_BOUNCER = 1 to enable. /data/crowdsec/crowdsec-openresty-bouncer.conf is the configuration file for it.
Add Admin dashboard logging to the /data/logs/admin-panel_[access/error].log  folder - ENV: ADMIN_PANEL_LOG = 1 to enable.

Add OpenResty error log (fallback_error.log) debug level - ENV: OPENRESTY_DEBUG = 1 to enable.
2022-02-18 14:42:11 -07:00

8 lines
182 B
Bash
Executable File

#!/usr/bin/with-contenv bash
# shellcheck shell=bash
set -e
mkdir -p /data/logs
echo "Changing ownership of /data/logs to $(id -u):$(id -g)"
chown -R "$(id -u):$(id -g)" /data/logs