diff options
author | Vijay Venkatesh Kumar <vv770d@att.com> | 2020-08-13 19:38:23 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-08-13 19:38:23 +0000 |
commit | e3d56903975ae17915a618f5f509a6933b315275 (patch) | |
tree | 712b0bd8e9da7e6872856b9b743d562b6469f5c7 /components/datalake-handler/admin/nginx | |
parent | 3e872d7f1be90810bc7920f4ab0cbc03d5c502d9 (diff) | |
parent | 5ae68c251200a093254c926bb35fa953ae3b5697 (diff) |
Merge "[Datalake] Output logs to stdout."
Diffstat (limited to 'components/datalake-handler/admin/nginx')
-rw-r--r-- | components/datalake-handler/admin/nginx/nginx.conf | 7 | ||||
-rw-r--r-- | components/datalake-handler/admin/nginx/run.sh | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/components/datalake-handler/admin/nginx/nginx.conf b/components/datalake-handler/admin/nginx/nginx.conf index 8613dff5..731935d8 100644 --- a/components/datalake-handler/admin/nginx/nginx.conf +++ b/components/datalake-handler/admin/nginx/nginx.conf @@ -1,8 +1,9 @@ -user nginx; +user datalake; worker_processes 1; -error_log /tmp/error.log warn; pid /tmp/nginx.pid; +error_log stderr warn; +#access_log /dev/stdout http; events { @@ -18,7 +19,7 @@ http { '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; - access_log /tmp/access.log main; + access_log /dev/stdout main; sendfile on; #tcp_nopush on; diff --git a/components/datalake-handler/admin/nginx/run.sh b/components/datalake-handler/admin/nginx/run.sh new file mode 100644 index 00000000..b638807f --- /dev/null +++ b/components/datalake-handler/admin/nginx/run.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +echo resolver `grep nameserver /etc/resolv.conf |awk {'print $2'}` valid=10s\; > /etc/nginx/resolver.conf +echo set \$upstreamName http://dl-feeder.`grep ^search /etc/resolv.conf | awk {'print $2'}`:1680/datalake/v1\$1\$is_args\$args\; > /etc/nginx/upstream.conf +nginx -g "daemon off;" |