mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
Docker logs
This commit is contained in:
parent
8f40f6cff2
commit
4cd726f580
5 changed files with 23 additions and 27 deletions
|
@ -148,6 +148,8 @@ RUN dos2unix /usr/local/bin/docker-entrypoint && \
|
|||
sed -i 's/^memory_limit.*$/memory_limit = 512M/' /etc/php/8.1/apache2/php.ini && \
|
||||
a2enmod rewrite expires headers ssl xsendfile
|
||||
|
||||
RUN echo "error_log = /dev/stdout" >> /etc/php/8.1/apache2/php.ini
|
||||
|
||||
# Add Apache configuration
|
||||
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
|
||||
|
||||
|
|
|
@ -1,21 +1,8 @@
|
|||
php_flag log_errors on
|
||||
php_value error_log /dev/stderr
|
||||
ErrorLog /dev/stderr
|
||||
#CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
php_value error_log /dev/stdout
|
||||
ErrorLog /dev/stdout
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
#TransferLog /dev/stdout
|
||||
<VirtualHost localhost:80>
|
||||
ServerName localhost
|
||||
ServerAdmin CONTACT_EMAIL
|
||||
DocumentRoot "/var/www/html/AVideo"
|
||||
</VirtualHost>
|
||||
<VirtualHost localhost:443>
|
||||
ServerName localhost
|
||||
ServerAdmin CONTACT_EMAIL
|
||||
DocumentRoot "/var/www/html/AVideo"
|
||||
SSLEngine on
|
||||
SSLCertificateFile TLS_CERTIFICATE_FILE
|
||||
SSLCertificateKeyFile TLS_CERTIFICATE_KEY
|
||||
</VirtualHost>
|
||||
<VirtualHost *:80>
|
||||
ServerName SERVER_NAME
|
||||
ServerAdmin CONTACT_EMAIL
|
||||
|
@ -35,3 +22,16 @@ ErrorLog /dev/stderr
|
|||
Order Allow,Deny
|
||||
Allow from All
|
||||
</Directory>
|
||||
<VirtualHost *:80>
|
||||
ServerName localhost
|
||||
ServerAdmin CONTACT_EMAIL
|
||||
DocumentRoot "/var/www/html/AVideo"
|
||||
</VirtualHost>
|
||||
<VirtualHost *:443>
|
||||
ServerName localhost
|
||||
ServerAdmin CONTACT_EMAIL
|
||||
DocumentRoot "/var/www/html/AVideo"
|
||||
SSLEngine on
|
||||
SSLCertificateFile TLS_CERTIFICATE_FILE
|
||||
SSLCertificateKeyFile TLS_CERTIFICATE_KEY
|
||||
</VirtualHost>
|
|
@ -1,23 +1,17 @@
|
|||
ErrorLog /dev/stderr
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
#TransferLog /dev/stdout
|
||||
<VirtualHost *:80>
|
||||
ServerName SERVER_NAME
|
||||
ServerAlias localhost
|
||||
ServerAdmin CONTACT_EMAIL
|
||||
DocumentRoot "/var/www/html/AVideo"
|
||||
|
||||
ErrorLog /dev/stderr
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
TransferLog /dev/stdout
|
||||
</VirtualHost>
|
||||
<VirtualHost *:443>
|
||||
ServerName SERVER_NAME
|
||||
ServerAlias localhost
|
||||
ServerAdmin CONTACT_EMAIL
|
||||
DocumentRoot "/var/www/html/AVideo"
|
||||
|
||||
ErrorLog /dev/stderr
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
TransferLog /dev/stdout
|
||||
|
||||
SSLEngine on
|
||||
SSLCertificateFile TLS_CERTIFICATE_FILE
|
||||
SSLCertificateKeyFile TLS_CERTIFICATE_KEY
|
||||
|
|
|
@ -71,7 +71,7 @@ global $global, $config, $advancedCustom, $advancedCustomUser;
|
|||
|
||||
$global['docker_vars'] = '/var/www/docker_vars.json';
|
||||
if (file_exists($global['docker_vars'])) {
|
||||
$global['logfile'] = 'php://stdout';
|
||||
$global['logfile'] = 'php://stderr';
|
||||
} else if (empty($global['logfile'])) {
|
||||
$global['logfile'] = $global['systemRootPath'] . 'videos/avideo.log';
|
||||
}
|
||||
|
|
|
@ -3847,4 +3847,4 @@ function getUser() {
|
|||
|
||||
function getUniqueValuesFromArray(items) {
|
||||
return [...new Set(items)];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue