Clean PHP7.3 prod
This commit is contained in:
parent
16567d30b6
commit
8f0699e493
4 changed files with 569 additions and 522 deletions
|
|
@ -57,20 +57,19 @@ RUN docker-php-ext-install exif gd gettext intl mysqli pdo_mysql xsl opcache zip
|
|||
RUN pecl install imagick-3.6.0 && docker-php-ext-enable imagick
|
||||
RUN pecl install memcached-3.1.5 && docker-php-ext-enable memcached
|
||||
|
||||
#RUN useradd -ms /bin/bash noroot
|
||||
|
||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
COPY conf/common-apache.conf /etc/apache2/conf-available/z-app.conf
|
||||
COPY conf/common-ports.conf /etc/apache2/ports.conf
|
||||
COPY conf/common-security.conf /etc/apache2/conf-enabled/security.conf
|
||||
|
||||
COPY conf/php.ini /usr/local/etc/php/conf.d/app.ini
|
||||
COPY conf/php.ini /usr/local/etc/php/php.ini
|
||||
|
||||
COPY conf/vhost.conf /etc/apache2/sites-available/000-default.conf
|
||||
|
||||
RUN a2enmod rewrite remoteip headers && \
|
||||
RUN a2enmod rewrite remoteip headers http2 && \
|
||||
a2enconf z-app
|
||||
|
||||
#USER noroot
|
||||
RUN mkdir -p /app/tmp && chmod -R 770 /app/tmp && chown -R www-data:www-data /app
|
||||
USER www-data
|
||||
WORKDIR /app/srcs
|
||||
|
|
@ -2,6 +2,6 @@
|
|||
# have to change the VirtualHost statement in
|
||||
# /etc/apache2/sites-enabled/000-default.conf
|
||||
|
||||
Listen 8080
|
||||
Listen 4433
|
||||
|
||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,4 +1,5 @@
|
|||
<VirtualHost *:8080>
|
||||
<VirtualHost *:4433>
|
||||
Protocols h2 h2c http/1.1
|
||||
ServerAdmin contact@ldc.fr
|
||||
DocumentRoot /app/srcs/public
|
||||
|
||||
|
|
@ -7,9 +8,9 @@
|
|||
AllowOverride All
|
||||
Require all granted
|
||||
|
||||
php_admin_value open_basedir /app/srcs/
|
||||
|
||||
php_admin_value open_basedir "/app/srcs/:/app/tmp/"
|
||||
php_admin_value upload_tmp_dir /app/tmp
|
||||
|
||||
SetEnvIf X_FORWARDED_PROTO https HTTPS=on
|
||||
</Directory>
|
||||
|
||||
</VirtualHost>
|
||||
Loading…
Add table
Reference in a new issue