-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbase.conf
More file actions
83 lines (71 loc) · 1.99 KB
/
base.conf
File metadata and controls
83 lines (71 loc) · 1.99 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
worker_processes auto;
daemon off;
pid /tmp/nginx/nginx.pid;
events {
worker_connections 1024;
}
error_log /tmp/nginx/logs/error.log error;
http {
# Hide nginx version information.
server_tokens off;
sendfile on;
tcp_nopush on;
tcp_nodelay off;
keepalive_timeout 65;
log_format specialLog '$http_x_forwarded_for - '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" '
'$request_time';
access_log /tmp/nginx/logs/access.log specialLog;
client_body_temp_path /tmp/nginx/body;
proxy_temp_path /tmp/nginx/proxy;
fastcgi_temp_path /tmp/nginx/fastcgi;
uwsgi_temp_path /tmp/nginx/uwsgi;
scgi_temp_path /tmp/nginx/scgi;
client_max_body_size 75m;
client_body_timeout 600s;
index index.html index.htm index.xhtml;
include mime.types;
default_type application/octet-stream;
set_real_ip_from 0.0.0.0/0;
real_ip_header X-Forwarded-For;
# Enable Gzip compression.
gzip on;
gzip_http_version 1.0;
gzip_comp_level 5;
gzip_min_length 256;
gzip_proxied any;
gzip_vary on;
gzip_types
application/atom+xml
application/javascript
application/x-javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/plain
text/x-component;
server {
server_name _;
listen @PORT@;
charset utf-8;
fastcgi_buffering off;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
location / {
root @ROOT@;
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}