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