Files
devplacepy/nginx/start.sh
T
retoor e0535bb7c5 feat: add api key auth, devii agent, openai gateway, and admin service management
This commit introduces a comprehensive set of new features including API key authentication with CLI management commands (get, reset, backfill), a Devii agentic assistant with WebSocket terminal and session bootstrap, an OpenAI-compatible LLM gateway service, and an admin service management panel. It also adds Playwright browser automation for bot support, configures internal gateway URLs, refactors content editing/deletion to support JSON API responses, and updates documentation across AGENTS.md, README.md, and the developer docs site.
2026-06-08 15:38:33 +00:00

24 lines
724 B
Bash
Executable File

#!/bin/sh
set -e
if [ "${NGINX_CACHE_ENABLED:-false}" = "true" ]; then
NGINX_CACHE_CONFIG=' proxy_cache app_cache;
proxy_cache_bypass $http_cache_control;
proxy_cache_valid 200 1m;
proxy_cache_use_stale error timeout updating;
proxy_cache_lock on;
add_header X-Cache-Status $upstream_cache_status;'
fi
export NGINX_CACHE_CONFIG
export NGINX_CACHE_MAX_SIZE="${NGINX_CACHE_MAX_SIZE:-1g}"
export NGINX_MAX_BODY_SIZE="${NGINX_MAX_BODY_SIZE:-50m}"
mkdir -p /etc/nginx/conf.d
envsubst '${NGINX_CACHE_CONFIG} ${NGINX_CACHE_MAX_SIZE} ${NGINX_MAX_BODY_SIZE}' \
< /etc/nginx/templates/default.conf.template \
> /etc/nginx/conf.d/default.conf
exec nginx -g 'daemon off;'