-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
54 lines (43 loc) · 1.42 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
51
52
53
# nginx.conf -- docker-openresty
#
# This file is installed to:
# `/usr/local/openresty/nginx/conf/nginx.conf`
# and is the file loaded by nginx at startup,
# unless the user specifies otherwise.
#
# It tracks the upstream OpenResty's `nginx.conf`, but removes the `server`
# section and adds this directive:
# `include /etc/nginx/conf.d/*.conf;`
#
# The `docker-openresty` file `nginx.vh.default.conf` is copied to
# `/etc/nginx/conf.d/default.conf`. It contains the `server section
# of the upstream `nginx.conf`.
#
# See https://github.com/openresty/docker-openresty/blob/master/README.md#nginx-config-files
#
#user nobody;
worker_processes 4;
# Enables the use of JIT for regular expressions to speed-up their processing.
pcre_jit on;
#Comment out the below line and line 41 to fix the broken pipe issue
error_log /dev/stdout info;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$http_fly_client_ip [$time_local] $host "$request" '
'$status $request_time "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
#Comment out the below line and line 26 to fix the broken pipe issue
access_log /dev/stdout main;
server {
listen 80;
listen [::]:80;
server_name make.logs;
location / {
root /usr/local/openresty/nginx/html;
}
}
}