summaryrefslogtreecommitdiffstats
path: root/components/datalake-handler/admin/nginx/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'components/datalake-handler/admin/nginx/run.sh')
-rw-r--r--components/datalake-handler/admin/nginx/run.sh5
1 files changed, 5 insertions, 0 deletions
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;"