From 5ae68c251200a093254c926bb35fa953ae3b5697 Mon Sep 17 00:00:00 2001 From: Kate Hsuan Date: Thu, 6 Aug 2020 02:10:12 +0000 Subject: [Datalake] Output logs to stdout. Issue-ID: DCAEGEN2-2371 Issue-ID: DCAEGEN2-2379 Signed-off-by: Kate Hsuan Change-Id: I4c3eb0d80c653ff95da2cb14cd15d864df86c095 --- components/datalake-handler/admin/nginx/run.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 components/datalake-handler/admin/nginx/run.sh (limited to 'components/datalake-handler/admin/nginx/run.sh') 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;" -- cgit 1.2.3-korg