moved config steps into separate scripts
All checks were successful
All checks were successful
This commit is contained in:
24
rootfs/app/entrypoint.sh.d/90_nginx.sh
Executable file
24
rootfs/app/entrypoint.sh.d/90_nginx.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "# Configuring nginx"
|
||||
|
||||
cat > /etc/nginx/conf.d/user.conf <<EOF
|
||||
user ${USERNAME} ${GROUPNAME};
|
||||
EOF
|
||||
|
||||
# fix permissions for upload
|
||||
chown "${USERNAME}" /var/lib/nginx /var/lib/nginx/tmp
|
||||
|
||||
cat >"/etc/nginx/custom.d/post_size.conf" <<EOF
|
||||
client_max_body_size ${POSTSIZE};
|
||||
EOF
|
||||
|
||||
cat >"/etc/nginx/conf.d/errorlog.conf" <<EOF
|
||||
# Configures default error logger.
|
||||
error_log ${PATH_LOGS}/nginx-error.log warn;
|
||||
EOF
|
||||
|
||||
cat >"/etc/nginx/httpd.d/accesslog.conf" <<EOF
|
||||
# Sets the path, format, and configuration for a buffered log write.
|
||||
access_log ${PATH_LOGS}/nginx-access.log main;
|
||||
EOF
|
||||
Reference in New Issue
Block a user