Compare commits
5 Commits
7a022bc085
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 28229d8d69 | |||
| 81e2a7828f | |||
| b4a2968399 | |||
| 3112b6e9fe | |||
| d38c799b27 |
@@ -1,11 +1,26 @@
|
|||||||
# Copy this file to .env and adjust values as needed.
|
# Copy this file to .env and adjust values as needed.
|
||||||
# Never commit .env — it is gitignored.
|
# Never commit .env — it is gitignored.
|
||||||
|
|
||||||
NODE_ENV=development
|
# Host port the app is exposed on. Must match the container-internal port (right side of ports mapping).
|
||||||
APP_PORT=3023
|
APP_PORT=3023
|
||||||
FRONTEND_PORT=5173
|
|
||||||
DB_PATH=/data/sqlite/app.db
|
|
||||||
|
|
||||||
# Optional — only required when running with: docker compose --profile llm up
|
# Host port the frontend dev server is exposed on.
|
||||||
OLLAMA_URL=http://ollama:11434
|
FRONTEND_PORT=5173
|
||||||
OLLAMA_MODEL=llama3
|
|
||||||
|
NODE_ENV=development
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# LLM resolver — only active when running: docker compose --profile llm up
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# URL of the Ollama-compatible backend (default points to the compose ollama service).
|
||||||
|
LLM_RESOLVER_URL=http://ollama:11434
|
||||||
|
|
||||||
|
# Model to pull and use. Must be available on the Ollama instance.
|
||||||
|
LLM_RESOLVER_MODEL=llama3.2:3b
|
||||||
|
|
||||||
|
# Request timeout in milliseconds. Increase for larger/slower models.
|
||||||
|
LLM_RESOLVER_TIMEOUT_MS=15000
|
||||||
|
|
||||||
|
# Resolver mode: hybrid (llm with deterministic fallback) | llm | deterministic
|
||||||
|
INTENT_RESOLVER_MODE=hybrid
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ services:
|
|||||||
build: ./app
|
build: ./app
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
ports:
|
ports:
|
||||||
- "${APP_PORT:-3000}:3000"
|
- "${APP_PORT:-3024}:3024"
|
||||||
environment:
|
environment:
|
||||||
- APP_PORT=3000
|
- APP_PORT=3024
|
||||||
- NODE_ENV=${NODE_ENV:-development}
|
- NODE_ENV=${NODE_ENV:-development}
|
||||||
- DB_PATH=/var/lib/charactergarden/app.db
|
- DB_PATH=/var/lib/charactergarden/app.db
|
||||||
- OLLAMA_URL=${OLLAMA_URL:-http://ollama:11434}
|
- OLLAMA_URL=${OLLAMA_URL:-http://ollama:11434}
|
||||||
|
|||||||
@@ -4,15 +4,16 @@ import react from "@vitejs/plugin-react";
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
server: {
|
server: {
|
||||||
|
allowedHosts: ["beepc","cg.sketchferret.com"],
|
||||||
host: "0.0.0.0",
|
host: "0.0.0.0",
|
||||||
port: 5173,
|
port: 5173,
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
target: "http://app:3000",
|
target: "http://app:3024",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
"/health": {
|
"/health": {
|
||||||
target: "http://app:3000",
|
target: "http://app:3024",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user