-
Notifications
You must be signed in to change notification settings - Fork 4
/
nginx.conf
50 lines (38 loc) · 1.05 KB
/
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
worker_processes 2;
error_log logs/nginx.stderr.log;
events {
worker_connections 1024;
}
http {
default_type application/octet-stream;
access_log logs/nginx.stdout.log;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
#keepalive_timeout 0;
keepalive_timeout 65;
gzip on;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_proxied any;
gzip_vary off;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript application/json;
gzip_min_length 1000;
gzip_disable "MSIE [1-6]\.";
server_names_hash_bucket_size 64;
types_hash_max_size 2048;
types_hash_bucket_size 64;
#upstream api {
# server unix:/tmp/api.sock;
#}
server {
listen 8080;
server_name localhost;
client_max_body_size 1M;
access_log logs/nginx.stdout.log;
error_log logs/ngnix.stderr.log;
location / {
proxy_pass http://localhost:9292;
}
}
}