mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 15:31:05 +08:00
Feat: add local & ssh provider in admin panel (#15039)
### What problem does this PR solve? Feat: add local & ssh provider in admin panel ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
54
docker/.env
54
docker/.env
@@ -242,39 +242,23 @@ REGISTER_ENABLED=1
|
||||
# -----------------------------------------------------------------------------
|
||||
# Sandbox
|
||||
# -----------------------------------------------------------------------------
|
||||
# Sandbox settings are grouped by provider type.
|
||||
# 1. Set `SANDBOX_ENABLED=1` to enable sandbox support.
|
||||
# 2. Set `SANDBOX_PROVIDER_TYPE` to choose the active provider.
|
||||
# 3. Only edit the section that matches the selected provider type.
|
||||
# 4. If you do not use `self_managed`, remove `,sandbox` from `COMPOSE_PROFILES`.
|
||||
#
|
||||
# Naming convention for future providers:
|
||||
# - `SANDBOX_<PROVIDER>_*`
|
||||
# Examples:
|
||||
# - `SANDBOX_SELF_MANAGED_*`
|
||||
# - `SANDBOX_LOCAL_*`
|
||||
# - `SANDBOX_E2B_*`
|
||||
# - `SANDBOX_ALIYUN_CODEINTERPRETER_*`
|
||||
# Sandbox provider type and runtime settings are configured in Admin > Sandbox
|
||||
# Settings.
|
||||
|
||||
# Enable sandbox support.
|
||||
# SANDBOX_ENABLED=1
|
||||
# COMPOSE_PROFILES=${COMPOSE_PROFILES},sandbox
|
||||
# SANDBOX_PROVIDER_TYPE=${SANDBOX_PROVIDER_TYPE:-self_managed}
|
||||
|
||||
# Shared sandbox settings
|
||||
# `SANDBOX_HOST` is kept as the common endpoint name for legacy HTTP fallback
|
||||
# and for the self-managed provider.
|
||||
# Double check that `sandbox-executor-manager` resolves correctly in your
|
||||
# Docker network or `/etc/hosts`.
|
||||
# SANDBOX_HOST=${SANDBOX_HOST:-sandbox-executor-manager}
|
||||
# The MinIO bucket name for storing sandbox-generated artifacts.
|
||||
# SANDBOX_ARTIFACT_BUCKET=sandbox-artifacts
|
||||
|
||||
# Number of days before sandbox artifacts are automatically deleted.
|
||||
# SANDBOX_ARTIFACT_EXPIRE_DAYS=7
|
||||
|
||||
# Provider: self_managed
|
||||
# Use this provider when sandbox executors run as Docker services managed by
|
||||
# RAGFlow. This is the default provider used by the `sandbox` compose profile.
|
||||
# Self-managed deployment defaults
|
||||
# These values are used by the `sandbox` compose profile and shown in Admin as
|
||||
# deployment defaults for the self-managed provider.
|
||||
# Pull the required base images before running:
|
||||
# docker pull infiniflow/sandbox-base-nodejs:latest
|
||||
# docker pull infiniflow/sandbox-base-python:latest
|
||||
@@ -290,29 +274,9 @@ REGISTER_ENABLED=1
|
||||
# SANDBOX_MAX_MEMORY=256m # b, k, m, g
|
||||
# SANDBOX_TIMEOUT=10s # s, m, 1m30s
|
||||
|
||||
# Provider: local
|
||||
# Use this provider only in trusted development environments. It executes code
|
||||
# on the local machine instead of inside Docker-managed sandbox containers.
|
||||
# When `SANDBOX_PROVIDER_TYPE=local`, you usually do not need the `sandbox`
|
||||
# compose profile.
|
||||
# Uncomment and adjust only if you use the local provider.
|
||||
# SANDBOX_LOCAL_ENABLED=true
|
||||
# SANDBOX_LOCAL_PYTHON_BIN=python3
|
||||
# SANDBOX_LOCAL_NODE_BIN=node
|
||||
# SANDBOX_LOCAL_WORK_DIR=/tmp/ragflow-codeexec
|
||||
# SANDBOX_LOCAL_TIMEOUT=30
|
||||
# SANDBOX_LOCAL_MAX_MEMORY_MB=1024
|
||||
# SANDBOX_LOCAL_MAX_OUTPUT_BYTES=1048576
|
||||
# SANDBOX_LOCAL_MAX_ARTIFACTS=20
|
||||
# SANDBOX_LOCAL_MAX_ARTIFACT_BYTES=10485760
|
||||
# Limit native math library threads for local Python subprocesses if NumPy or
|
||||
# OpenBLAS fails with `pthread_create failed` under tight thread limits.
|
||||
# OPENBLAS_NUM_THREADS=1
|
||||
# OMP_NUM_THREADS=1
|
||||
# MKL_NUM_THREADS=1
|
||||
# NUMEXPR_NUM_THREADS=1
|
||||
# BLIS_NUM_THREADS=1
|
||||
# VECLIB_MAXIMUM_THREADS=1
|
||||
# -----------------------------------------------------------------------------
|
||||
# Sandbox End
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
# Enable DocLing
|
||||
USE_DOCLING=false
|
||||
|
||||
Reference in New Issue
Block a user