restore composer.json, add mysqli extension
This commit is contained in:
46
docker/nginx/nginx.conf
Executable file
46
docker/nginx/nginx.conf
Executable file
@@ -0,0 +1,46 @@
|
||||
server {
|
||||
listen 80 default;
|
||||
|
||||
client_max_body_size 1032M;
|
||||
|
||||
error_log /quyoshli/storage/logs/nginx.error.log warn;
|
||||
access_log /quyoshli/storage/logs/nginx.access.log;
|
||||
|
||||
root /quyoshli/public;
|
||||
index index.php;
|
||||
|
||||
# try to serve file directly, fallback to start.php
|
||||
location / {
|
||||
try_files $uri /$uri /index.php$is_args$args;
|
||||
}
|
||||
|
||||
if (!-e $request_filename) {
|
||||
rewrite ^.*$ /index.php last;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass quyoshli:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PHP_VALUE "error_log=/quyoshli/storage/logs/nginx.error.log";
|
||||
fastcgi_buffers 16 16k;
|
||||
fastcgi_buffer_size 32k;
|
||||
include fastcgi_params;
|
||||
fastcgi_send_timeout 12000;
|
||||
fastcgi_read_timeout 12000;
|
||||
}
|
||||
|
||||
gzip on;
|
||||
gzip_comp_level 5;
|
||||
gzip_min_length 256;
|
||||
gzip_proxied any;
|
||||
gzip_vary on;
|
||||
|
||||
# browser cache control
|
||||
location ~* \.(ico|css|js|gif|jpeg|jpg|png|woff|ttf|otf|svg|woff2|eot)$ {
|
||||
expires 1d;
|
||||
access_log off;
|
||||
add_header Pragma public;
|
||||
add_header Cache-Control "public, max-age=86400";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user