File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change
1
+ .git /*
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Variable | Example | Description
11
11
` SERVER_SENDFILE ` | ` SERVER_SENDFILE=off ` | Allows runtime to specify value of nginx's ` sendfile ` (default, on)
12
12
` SERVER_KEEPALIVE ` | ` SERVER_KEEPALIVE=30 ` | Define HTTP 1.1's keepalive timeout
13
13
` SERVER_WORKER_CONNECTIONS ` | ` SERVER_WORKER_CONNECTIONS=2048 ` | Sets up the number of connections for worker processes
14
+ ` SERVER_LOG_MINIMAL ` | ` SERVER_LOG_MINIMAL=1 ` | Minimize the logging format, appropriate for development environments
14
15
15
16
16
17
### Runtime Commands
Original file line number Diff line number Diff line change 26
26
'$status $body_bytes_sent "$http_referer" '
27
27
'"$http_user_agent" "$http_x_forwarded_for" NGINX_SERVER' ;
28
28
29
+ log_format minimal '$request_method $request_uri $status' ;
30
+
29
31
error_log /dev/stdout info;
30
32
access_log /dev/stdout main;
31
33
Original file line number Diff line number Diff line change 44
44
echo " [nginx] setting worker connection limit ${SERVER_WORKER_CONNECTIONS} "
45
45
sed -i " s/\worker_connections .*;/worker_connections ${SERVER_WORKER_CONNECTIONS} ;/" $CONF_NGINX_SERVER
46
46
fi
47
+
48
+ if [[ $SERVER_LOG_MINIMAL ]]
49
+ then
50
+ echo " [nginx] enabling minimal logging"
51
+ # Uncomments all gzip handling options
52
+ sed -i " s/access_log \/dev\/stdout .*;/access_log \/dev\/stdout minimal;/" $CONF_NGINX_SERVER
53
+ fi
54
+
You can’t perform that action at this time.
0 commit comments