Initial release

This commit is contained in:
2021-04-28 16:03:38 +02:00
commit dd2eaf814f
15 changed files with 278 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# Redirect to SSL
<VirtualHost *:80>
ServerName www.test.com
Redirect permanent / https://www.test.com
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@test.com
ServerName www.test.com
DocumentRoot /var/www/html/www.test.com
ErrorLog ${APACHE_LOG_DIR}/www.test.com-error.log
CustomLog ${APACHE_LOG_DIR}/www.test.com-access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/custom/www.test.com/www.test.com.cer
SSLCertificateKeyFile /etc/ssl/custom/www.test.com/www.test.com.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /var/www/test.com.com>
SSLOptions +StdEnvVars
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

16
config/mysql/my.cnf Normal file
View File

@@ -0,0 +1,16 @@
[mysqld]
bind-address=0.0.0.0
skip-name-resolve=1
log_error =/var/log/mysql/mysql_error.log
general_log_file=/var/log/mysql/mysql.log
general_log =1
#slow_query_log =1
#slow_query_log_file=/var/log/mysql/mysql_slow.log
#long_query_time =2
#log_queries_not_using_indexes = 1
innodb_buffer_pool_instances = 2
innodb-buffer-pool-size=2G
wait_timeout = 28800
innodb_log_file_size = 256MB
max_allowed_packet = 128M
interactive_timeout = 28800

14
config/php-fpm/php.ini Normal file
View File

@@ -0,0 +1,14 @@
[php]
date.timezone=UTC+1
log_errors=On
error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors=Off
max_execution_time=60
memory_limit=1024M
error_log=/var/log/php/error.log
access_log=/var/log/php/access.log
post_max_size=512M
upload_max_filesize=512M
short_open_tag=On
catch_workers_output = yes
log_errors = on

3
config/php/php.ini Normal file
View File

@@ -0,0 +1,3 @@
memory_limit = 256M
post_max_size = 100M
upload_max_filesize = 100M

View File

@@ -0,0 +1 @@
$cfg['ExecTimeLimit'] = 0;

5
config/pma/php.ini Normal file
View File

@@ -0,0 +1,5 @@
[php]
memory_limit=2048M
upload_max_filesize=512M
short_open_tag=On
max_execution_time=60