Reconfigure to run out of /app directory
This commit is contained in:
@@ -1 +1 @@
|
||||
* * * * * php /var/www/pterodactyl/artisan schedule:run >> /dev/null 2>&1
|
||||
* * * * * php /app/artisan schedule:run >> /dev/null 2>&1
|
@@ -1,7 +1,7 @@
|
||||
user nginx;
|
||||
worker_processes auto;
|
||||
pcre_jit on;
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
error_log /config/logs/nginx/error.log warn;
|
||||
include /etc/nginx/modules/*.conf;
|
||||
|
||||
events {
|
||||
@@ -39,6 +39,6 @@ http {
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
access_log /config/logs/nginx/access.log main;
|
||||
include /etc/nginx/http.d/*.conf;
|
||||
}
|
@@ -1,5 +1,5 @@
|
||||
[global]
|
||||
pid = /run/php-fpm/php-fpm.pid
|
||||
error_log = /var/log/php/error.log
|
||||
error_log = /config/logs/php/error.log
|
||||
log_level = warning
|
||||
include=/etc/php/php-fpm.d/*.conf
|
@@ -1,4 +1,4 @@
|
||||
#!/command/with-contenv bash
|
||||
|
||||
s6-setuidgid nginx
|
||||
/usr/bin/php /var/www/pterodactyl/artisan queue:work --queue=high,standard,low --sleep=3 --tries=3
|
||||
/usr/bin/php /app/artisan queue:work --queue=high,standard,low --sleep=3 --tries=3
|
@@ -2,7 +2,7 @@
|
||||
|
||||
source ContainerTools
|
||||
SNAME=${0##*/}
|
||||
WORKDIR="/var/www/pterodactyl"
|
||||
WORKDIR="/app"
|
||||
|
||||
# If DBHOST value is present, pause boot until target container is up.
|
||||
if [ -n "$DBHOST" ]; then
|
||||
@@ -34,10 +34,16 @@ if [ ! -d "/config/storage" ]; then
|
||||
done
|
||||
fi
|
||||
|
||||
# Check for persistent logging directory, create file path if not present.
|
||||
if [ ! -d "/config/log/nginx" ]; then
|
||||
log "Creating log directory."
|
||||
mkdir -p "/config/log/nginx"
|
||||
# Check for persistent Nginx logging directory, create file path if not present.
|
||||
if [ ! -d "/config/logs/nginx" ]; then
|
||||
log "Creating Nginx log directory."
|
||||
mkdir -p "/config/logs/nginx"
|
||||
fi
|
||||
|
||||
# Check for persistent PHP logging directory, create file path if not present.
|
||||
if [ ! -d "/config/logs/php" ]; then
|
||||
log "Creating PHP log directory."
|
||||
mkdir -p "/config/logs/php"
|
||||
fi
|
||||
|
||||
# Check for config file, create template if not present.
|
||||
@@ -62,11 +68,15 @@ if [ "$HTTPS" == "true" ]; then
|
||||
if [ ! -e "/etc/nginx/http.d/pterodactyl.conf" ]; then
|
||||
log "Symlinking Nginx config file for HTTPS"
|
||||
ln -s /defaults/nginx/https.conf /etc/nginx/http.d/pterodactyl.conf
|
||||
else
|
||||
log "HTTPS Nginx config is already in place"
|
||||
fi
|
||||
else
|
||||
if [ ! -e "/etc/nginx/http.d/pterodactyl.conf" ]; then
|
||||
log "Symlinking Nginx config file for HTTP"
|
||||
ln -s /defaults/nginx/http.conf /etc/nginx/http.d/pterodactyl.conf
|
||||
else
|
||||
log "HTTP Nginx config file is already in place"
|
||||
fi
|
||||
fi
|
||||
log "Initialization complete"
|
||||
|
Reference in New Issue
Block a user