forked from jparyani/Lychee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
52 lines (38 loc) · 998 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#user html;
worker_processes 1;
daemon off;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
# increase upload defaults
client_max_body_size 0; #max size disabled
client_header_timeout 30m;
client_body_timeout 30m;
server {
listen 33411;
root /opt/app;
location / {
index index.html index.htm index.php;
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
try_files $uri = 404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param PHP_VALUE "max_execution_time=1800
post_max_size=1500M
upload_max_filesize=32M
max_input_time=1800
max_file_uploads=300";
include fastcgi_params;
}
client_max_body_size 1000M;
}
}