my first commit
This commit is contained in:
BIN
.docker/nginx/._default.conf
Normal file
BIN
.docker/nginx/._default.conf
Normal file
Binary file not shown.
BIN
.docker/nginx/._nginx.conf
Normal file
BIN
.docker/nginx/._nginx.conf
Normal file
Binary file not shown.
28
.docker/nginx/default.conf
Normal file
28
.docker/nginx/default.conf
Normal file
@@ -0,0 +1,28 @@
|
||||
server {
|
||||
listen 80;
|
||||
index index.php index.html;
|
||||
root /var/www/public;
|
||||
|
||||
client_max_body_size 100M; # 413 Request Entity Too Large
|
||||
|
||||
location / {
|
||||
root /var/www/public;
|
||||
index index.html index.php;
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass php:9000;
|
||||
fastcgi_read_timeout 3600;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
send_timeout 3600;
|
||||
proxy_connect_timeout 3600;
|
||||
proxy_read_timeout 3600;
|
||||
proxy_send_timeout 3600;
|
||||
}
|
||||
}
|
||||
34
.docker/nginx/nginx.conf
Normal file
34
.docker/nginx/nginx.conf
Normal file
@@ -0,0 +1,34 @@
|
||||
user nginx;
|
||||
worker_processes 1;
|
||||
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
|
||||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
|
||||
keepalive_timeout 65;
|
||||
|
||||
server_tokens off;
|
||||
chunked_transfer_encoding off;
|
||||
|
||||
gzip on;
|
||||
gzip_types application/json;
|
||||
gzip_min_length 1000;
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
}
|
||||
Reference in New Issue
Block a user