Modified PHP
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
server {
|
||||
listen 80 default_server;
|
||||
|
||||
server_name api.com www.api.com;
|
||||
server_name change.me www.change.me;
|
||||
|
||||
root /srv/www/api;
|
||||
root /var/www;
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass php:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
}
|
||||
location ~ \.php {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass php:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
}
|
||||
|
||||
error_log /var/log/nginx/api_error.log;
|
||||
access_log /var/log/nginx/api_access.log;
|
||||
}
|
||||
error_log /var/log/nginx/error.log;
|
||||
access_log /var/log/nginx/access.log;
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
FROM php:7.2-fpm
|
||||
FROM php:7.2-fpm
|
||||
|
||||
RUN docker-php-ext-install mysqli
|
||||
RUN docker-php-ext-install mysqli
|
||||
11
docker/php/php.ini
Normal file
11
docker/php/php.ini
Normal file
@@ -0,0 +1,11 @@
|
||||
[php]
|
||||
date.timezone=UTC
|
||||
log_errors=On
|
||||
error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT
|
||||
display_errors=Off
|
||||
max_execution_time=60
|
||||
memory_limit=256M
|
||||
error_log = /var/log/php/error.log
|
||||
access_log = /var/log/php/access.log
|
||||
post_max_size = 24M
|
||||
upload_max_filesize = 24M
|
||||
@@ -1,12 +1,11 @@
|
||||
[www]
|
||||
[www]
|
||||
|
||||
user = www-data
|
||||
group = www-data
|
||||
user = www-data
|
||||
group = www-data
|
||||
|
||||
listen = nginx:9000
|
||||
|
||||
pm = dynamic
|
||||
pm.max_children = 5
|
||||
pm.start_servers = 2
|
||||
pm.min_spare_servers = 1
|
||||
pm.max_spare_servers = 3
|
||||
listen = nginx:9000
|
||||
pm = dynamic
|
||||
pm.max_children = 5
|
||||
pm.start_servers = 2
|
||||
pm.min_spare_servers = 1
|
||||
pm.max_spare_servers = 3
|
||||
Reference in New Issue
Block a user