feat: security(CORS/API key), OpenAI-compatible endpoint, Paperless hook indexing; .env support

This commit is contained in:
hyungi
2025-08-13 07:36:27 +09:00
parent 325dde803d
commit d17ec57b2e
6 changed files with 164 additions and 6 deletions

View File

@@ -1,6 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
# load .env if exists
if [ -f .env ]; then
set -a
# shellcheck disable=SC1091
. ./.env
set +a
fi
export OLLAMA_HOST=${OLLAMA_HOST:-http://localhost:11434}
export BASE_MODEL=${BASE_MODEL:-qwen2.5:7b-instruct}
export BOOST_MODEL=${BOOST_MODEL:-qwen2.5:14b-instruct}