-
Notifications
You must be signed in to change notification settings - Fork 532
/
Copy pathnginx.conf
48 lines (36 loc) · 1.55 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
worker_processes auto;
error_log /var/opt/rh/rh-nginx114/log/nginx/error.log;
pid /var/opt/rh/rh-nginx114/run/nginx/nginx.pid;
include /opt/rh/rh-nginx114/root/usr/share/nginx/modules/*.conf;
events {
worker_connections 1024;
}
http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"shttp_user_agent" "$http_x_forwarded_for"';
access_log /var/opt/rh/rh-nginx114/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
include /etc/opt/rh/rh-nginx114/nginx/mime.types;
default_type application/octet-stream;
include /opt/app-root/etc/nginx.d/*.conf;
server {
listen 8080 default_server;
listen [::]:8080 default_server;
server_name _;
root /opt/app-root/src;
# Load configuration files for the default server block.
include /opt/app-root/etc/nginx.default.d/*.conf;
location / {
error_log /var/opt/rh/rh-nginx114/log/nginx/proxy.log;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass https://logging-es.openshift-logging.svc.cluster.local:9200;
proxy_ssl_verify off;
proxy_ssl_trusted_certificate /opt/app-root/src/elasticsearch/secret/admin-ca;
proxy_ssl_certificate /opt/app-root/src/elasticsearch/secret/admin-cert;
proxy_ssl_certificate_key /opt/app-root/src/elasticsearch/secret/admin-key;
}
}
}