readme upd

This commit is contained in:
martin legrand
2025-06-02 22:25:22 +02:00
parent da6056e94c
commit e0fa4e6356
2 changed files with 87 additions and 97 deletions
+13
View File
@@ -6,6 +6,19 @@ if "%1"=="full" (
echo Starting partial deployment... (backend run on host), use "full" to run all services in containers
)
where openssl >nul 2>&1
if %ERRORLEVEL% == 0 (
for /f %%i in ('openssl rand -hex 32') do set SEARXNG_SECRET_KEY=%%i
) else (
where python3 >nul 2>&1
if %ERRORLEVEL% == 0 (
for /f %%i in ('python3 -c "import secrets; print(secrets.token_hex(32))"') do set SEARXNG_SECRET_KEY=%%i
) else (
echo Error: Neither openssl nor python is available to generate a secret key.
exit /b 1
)
)
REM Stop all containers
echo Stopping containers...
docker stop $(docker ps -aq) >nul 2>&1