mirror of
https://github.com/open-webui/pipelines
synced 2025-05-12 00:20:48 +00:00
feat: multiple urls support
This commit is contained in:
parent
ff4518651e
commit
d5827887e6
8
start.sh
8
start.sh
@ -70,7 +70,12 @@ install_frontmatter_requirements() {
|
||||
if [[ -n "$PIPELINES_PATH" ]]; then
|
||||
pipelines_dir="./pipelines"
|
||||
mkdir -p "$pipelines_dir"
|
||||
download_pipelines "$PIPELINES_PATH" "$pipelines_dir"
|
||||
|
||||
# Split PIPELINES_PATH by ';' and iterate over each path
|
||||
IFS=';' read -ra ADDR <<< "$PIPELINES_PATH"
|
||||
for path in "${ADDR[@]}"; do
|
||||
download_pipelines "$path" "$pipelines_dir"
|
||||
done
|
||||
|
||||
for file in "$pipelines_dir"/*; do
|
||||
if [[ -f "$file" ]]; then
|
||||
@ -82,5 +87,6 @@ else
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# Start the server
|
||||
uvicorn main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*'
|
||||
|
Loading…
Reference in New Issue
Block a user