Ticket #2643: nginx.conf.txt

File nginx.conf.txt, 3.4 KB (added by srikanthvpai@…, 2 years ago)

configuration file

Line 
1# For more information on configuration, see:
2# * Official English Documentation: http://nginx.org/en/docs/
3# * Official Russian Documentation: http://nginx.org/ru/docs/
4
5#user nginx;
6user ec2-user;
7worker_processes auto;
8error_log /var/log/nginx/error.log;
9pid /run/nginx.pid;
10
11# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
12include /usr/share/nginx/modules/*.conf;
13
14events {
15 worker_connections 1024;
16}
17
18
19stream {
20 log_format tcp '$remote_addr - - [$time_local] $protocol $status $bytes_sent $bytes_received $session_time "$upstream_addr"';
21 access_log /var/log/nginx/access.log tcp;
22 error_log /var/log/nginx/error.log;
23 upstream kafka_read {
24 server b-1.coacmsprovisionedmskc.fsy2h2.c13.kafka.us-east-1.amazonaws.com:9096;
25 server b-2.coacmsprovisionedmskc.fsy2h2.c13.kafka.us-east-1.amazonaws.com:9096;
26# server 10.10.12.34:3306 backup;
27 }
28 server {
29 listen 443 ssl default_server;
30 ssl_reject_handshake on;
31 }
32 server {
33 #listen 443;
34 listen 443 ssl;
35 server_name client.kafka.com;
36 # Server certificate and key
37 ssl_certificate /etc/nginx/cert/server/server.crt;
38 ssl_certificate_key /etc/nginx/cert/server/server.key;
39 # CA certificate for client verification
40 ssl_client_certificate /etc/nginx/cert/ca/ca.crt;
41 ssl_verify_client on;
42 proxy_pass kafka_read;
43 }
44}
45
46
47
48
49# http {
50 # log_format main '$remote_addr - $remote_user [$time_local] "$request" '
51 # '$status $body_bytes_sent "$http_referer" '
52 # '"$http_user_agent" "$http_x_forwarded_for"';
53
54 # access_log /var/log/nginx/access.log main;
55
56 # sendfile on;
57 # tcp_nopush on;
58 # tcp_nodelay on;
59 # keepalive_timeout 65;
60 # types_hash_max_size 4096;
61
62 # include /etc/nginx/mime.types;
63 # default_type application/octet-stream;
64
65 # # Load modular configuration files from the /etc/nginx/conf.d directory.
66 # # See http://nginx.org/en/docs/ngx_core_module.html#include
67 # # for more information.
68 # include /etc/nginx/conf.d/*.conf;
69
70 # server {
71 # listen 80;
72 # listen [::]:80;
73 # server_name _;
74 # root /usr/share/nginx/html;
75
76 # # Load configuration files for the default server block.
77 # include /etc/nginx/default.d/*.conf;
78
79 # error_page 404 /404.html;
80 # location = /404.html {
81 # }
82
83 # error_page 500 502 503 504 /50x.html;
84 # location = /50x.html {
85 # }
86 # }
87
88# # Settings for a TLS enabled server.
89# #
90# # server {
91# # listen 443 ssl http2;
92# # listen [::]:443 ssl http2;
93# # server_name _;
94# # root /usr/share/nginx/html;
95# #
96# # ssl_certificate "/etc/pki/nginx/server.crt";
97# # ssl_certificate_key "/etc/pki/nginx/private/server.key";
98# # ssl_session_cache shared:SSL:1m;
99# # ssl_session_timeout 10m;
100# # ssl_ciphers PROFILE=SYSTEM;
101# # ssl_prefer_server_ciphers on;
102# #
103# # # Load configuration files for the default server block.
104# # include /etc/nginx/default.d/*.conf;
105# #
106# # error_page 404 /404.html;
107# # location = /40x.html {
108# # }
109# #
110# # error_page 500 502 503 504 /50x.html;
111# # location = /50x.html {
112# # }
113# # }
114
115# }
116