smart_ide/deploy/nginx/http-maps/ia-enso-ollama-bearer.map.conf.example
Nicolas Cantu c13ce79696 Remove nginx Bearer auth from ia.enso /ollama by default
**Motivations:**
- Simplify Cursor/custom clients; Bearer caused confusion with Cursor user API key.

**Root causes:**
- N/A.

**Correctifs:**
- Drop if map check and Authorization stripping on /ollama/; deploy script no longer emits Bearer map.

**Evolutions:**
- Optional Bearer documented in http-maps example; README/services/feature/infrastructure updated; proxy redeployed.

**Pages affectées:**
- deploy/nginx/sites/ia.enso.4nkweb.com.conf
- deploy/nginx/deploy-ia-enso-to-proxy.sh
- deploy/nginx/README-ia-enso.md
- deploy/nginx/http-maps/ia-enso-ollama-bearer.map.conf.example
- docs/features/ia-enso-nginx-proxy-ollama-anythingllm.md
- docs/services.md
- docs/infrastructure.md
2026-03-23 07:45:35 +01:00

13 lines
497 B
Plaintext

# OPTIONAL: Bearer gate on /ollama/ (default repo site has no nginx auth on Ollama).
# Install inside `http { ... }` before server blocks that use $ia_enso_ollama_authorized, and add to
# location /ollama/ { if ($ia_enso_ollama_authorized = 0) { return 401; } ... }
#
# Copy without the .example suffix, set secret (ASCII, no double quotes in value).
map_hash_bucket_size 256;
map $http_authorization $ia_enso_ollama_authorized {
default 0;
"Bearer CHANGE_ME_TO_LONG_RANDOM_SECRET" 1;
}