docker-entrypoint.sh 249 B

12345678910111213
  1. #!/usr/bin/env bash
  2. API_BASE_PATH=$API_BASE_PATH;
  3. if [ -z "$API_BASE_PATH" ]; then
  4. API_BASE_PATH="http://jetlinks:8844/";
  5. fi
  6. apiUrl="proxy_pass $API_BASE_PATH;"
  7. sed -i '18c '"$apiUrl"'' /etc/nginx/conf.d/default.conf
  8. nginx -g "daemon off;"