add opensearch addons
This commit is contained in:
13
opensearch-nginx-lb/rootfs/config/nginx.conf
Normal file
13
opensearch-nginx-lb/rootfs/config/nginx.conf
Normal file
@@ -0,0 +1,13 @@
|
||||
events {}
|
||||
http {
|
||||
upstream opensearch_coord {
|
||||
server os-coord-1:9200;
|
||||
server os-coord-2:9200;
|
||||
}
|
||||
server {
|
||||
listen 9200;
|
||||
location / {
|
||||
proxy_pass http://opensearch_coord;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/command/execlineb -S0
|
||||
# Prevent restart loops; allow clean exit
|
||||
exit 0
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/command/with-contenv bash
|
||||
set -euo pipefail
|
||||
echo "[s6-run] Starting NGINX load balancer"
|
||||
exec nginx -g 'daemon off;'
|
||||
Reference in New Issue
Block a user