diff --git a/conf/docker/docker-compose_dev.yml b/conf/docker/docker-compose_dev.yml index f768e1d..e3e473a 100755 --- a/conf/docker/docker-compose_dev.yml +++ b/conf/docker/docker-compose_dev.yml @@ -6,7 +6,7 @@ services: dockerfile: Dockerfile command: sh /home/scripts/start.sh volumes: - - ../nginx/nginx_config_dev.conf:/etc/nginx/conf.d/default.conf + - ../nginx/nginx_config_dev.conf:/etc/nginx/http.d/default.conf - ../../app:/var/www/html - ../scripts/nginx:/home/scripts - ../../letsencrypt:/etc/letsencrypt diff --git a/conf/nginx/nginx_config_dev.conf b/conf/nginx/nginx_config_dev.conf index 94f6c85..65d1d1b 100755 --- a/conf/nginx/nginx_config_dev.conf +++ b/conf/nginx/nginx_config_dev.conf @@ -35,10 +35,12 @@ server { gzip_types text/plain text/css application/javascript; client_max_body_size 1000M; + error_log /var/log/nginx/debug.log debug; + set $host_path "/var/www"; server_name _; - root $host_path/html/public; + root $host_path/html/standard_encode; set $bootstrap "index.php"; charset utf-8; diff --git a/dockerfiles/nginx/Dockerfile b/dockerfiles/nginx/Dockerfile index 3e325e1..645ed87 100755 --- a/dockerfiles/nginx/Dockerfile +++ b/dockerfiles/nginx/Dockerfile @@ -1,3 +1,3 @@ -FROM alpine:3.13 +FROM alpine:3.19 COPY ./scripts/* /home/ RUN sh /home/install.sh \ No newline at end of file diff --git a/dockerfiles/php/scripts/install_ubuntu.sh b/dockerfiles/php/scripts/install_ubuntu.sh index f0883ff..04830ca 100644 --- a/dockerfiles/php/scripts/install_ubuntu.sh +++ b/dockerfiles/php/scripts/install_ubuntu.sh @@ -31,6 +31,9 @@ composer -y apt install supervisor -y sed -i 's@listen = /run/php/php8.3-fpm.sock@listen = 0.0.0.0:9000@g' /etc/php/8.3/fpm/pool.d/www.conf +sed -i 's@short_open_tag@short_open_tag = On@g' /etc/php/8.3/fpm/php.ini +sed -i 's@short_open_tag = Off@short_open_tag = On@g' /etc/php/8.3/fpm/php.ini +sed -i 's@;opcache.revalidate_freq=2@opcache.revalidate_freq=0@g' /etc/php/8.3/fpm/php.ini sed -i 's@post_max_size = 8M@post_max_size = 85M@g' /etc/php/8.3/fpm/php.ini sed -i 's@upload_max_filesize = 2M@upload_max_filesize = 10M@g' /etc/php/8.3/fpm/php.ini @@ -38,6 +41,10 @@ sed -i 's@memory_limit = 128M@memory_limit = 512M@g' /etc/php/8.3/fpm/php.ini sed -i 's@memory_limit = 128M@memory_limit = 512M@g' /etc/php/8.3/cli/php.ini +sed -i 's@; short_open_tag@short_open_tag = On@g' /etc/php/8.3/cli/php.ini + +sed -i 's@;opcache.revalidate_freq=2@opcache.revalidate_freq=0@g' /etc/php/8.3/cli/php.ini + XDEBUG_CONF_CLI="/etc/php/8.3/cli/conf.d/20-xdebug.ini" # echo 'zend_extension=xdebug.so' >> $XDEBUG_CONF echo 'xdebug.start_with_request=yes' >> $XDEBUG_CONF_CLI