@echo off
rem Lets the Emberia site talk to Ollama on this computer. Double-click once.
setx OLLAMA_ORIGINS "https://emberia.pages.dev,https://emberia.eu.org" >nul
taskkill /IM "ollama app.exe" /F >nul 2>&1
taskkill /IM ollama.exe /F >nul 2>&1
timeout /t 3 /nobreak >nul
explorer.exe "%LOCALAPPDATA%\Programs\Ollama\ollama app.exe"
echo.
echo Done. Go back to Emberia, it connects by itself.
timeout /t 5 >nul
