Anyexyz commited on
Commit
87e20ec
·
1 Parent(s): 54243ac

Add nginx.conf file for docker-openresty

Browse files
Files changed (1) hide show
  1. nginx.conf +90 -0
nginx.conf ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # nginx.conf -- docker-openresty
2
+ #
3
+ # This file is installed to:
4
+ # `/usr/local/openresty/nginx/conf/nginx.conf`
5
+ # and is the file loaded by nginx at startup,
6
+ # unless the user specifies otherwise.
7
+ #
8
+ # It tracks the upstream OpenResty's `nginx.conf`, but removes the `server`
9
+ # section and adds this directive:
10
+ # `include /etc/nginx/conf.d/*.conf;`
11
+ #
12
+ # The `docker-openresty` file `nginx.vh.default.conf` is copied to
13
+ # `/etc/nginx/conf.d/default.conf`. It contains the `server section
14
+ # of the upstream `nginx.conf`.
15
+ #
16
+ # See https://github.com/openresty/docker-openresty/blob/master/README.md#nginx-config-files
17
+ #
18
+
19
+ #user nobody;
20
+ #worker_processes 1;
21
+
22
+ # Enables the use of JIT for regular expressions to speed-up their processing.
23
+ pcre_jit on;
24
+
25
+
26
+
27
+ #error_log logs/error.log;
28
+ #error_log logs/error.log notice;
29
+ #error_log logs/error.log info;
30
+
31
+ #pid logs/nginx.pid;
32
+
33
+
34
+ events {
35
+ worker_connections 1024;
36
+ }
37
+
38
+
39
+ http {
40
+ include mime.types;
41
+ default_type application/octet-stream;
42
+
43
+ # Enables or disables the use of underscores in client request header fields.
44
+ # When the use of underscores is disabled, request header fields whose names contain underscores are marked as invalid and become subject to the ignore_invalid_headers directive.
45
+ # underscores_in_headers off;
46
+
47
+ #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
48
+ # '$status $body_bytes_sent "$http_referer" '
49
+ # '"$http_user_agent" "$http_x_forwarded_for"';
50
+
51
+ #access_log logs/access.log main;
52
+
53
+ # Log in JSON Format
54
+ # log_format nginxlog_json escape=json '{ "timestamp": "$time_iso8601", '
55
+ # '"remote_addr": "$remote_addr", '
56
+ # '"body_bytes_sent": $body_bytes_sent, '
57
+ # '"request_time": $request_time, '
58
+ # '"response_status": $status, '
59
+ # '"request": "$request", '
60
+ # '"request_method": "$request_method", '
61
+ # '"host": "$host",'
62
+ # '"upstream_addr": "$upstream_addr",'
63
+ # '"http_x_forwarded_for": "$http_x_forwarded_for",'
64
+ # '"http_referrer": "$http_referer", '
65
+ # '"http_user_agent": "$http_user_agent", '
66
+ # '"http_version": "$server_protocol", '
67
+ # '"nginx_access": true }';
68
+ # access_log /dev/stdout nginxlog_json;
69
+
70
+ # See Move default writable paths to a dedicated directory (#119)
71
+ # https://github.com/openresty/docker-openresty/issues/119
72
+ client_body_temp_path /var/run/openresty/nginx-client-body;
73
+ proxy_temp_path /var/run/openresty/nginx-proxy;
74
+ fastcgi_temp_path /var/run/openresty/nginx-fastcgi;
75
+ uwsgi_temp_path /var/run/openresty/nginx-uwsgi;
76
+ scgi_temp_path /var/run/openresty/nginx-scgi;
77
+
78
+ sendfile on;
79
+ #tcp_nopush on;
80
+
81
+ #keepalive_timeout 0;
82
+ keepalive_timeout 65;
83
+
84
+ #gzip on;
85
+
86
+ include /etc/nginx/conf.d/*.conf;
87
+
88
+ # Don't reveal OpenResty version to clients.
89
+ # server_tokens off;
90
+ }