Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(server): make the subdir Nginx proxy reachable on Docker Desktop
Elian Doran04de919876d5
diff --git a/apps/server/docker/nginx.conf b/apps/server/docker/nginx.confindex e4e744b18f..1beb67397d 100644--- a/apps/server/docker/nginx.conf+++ b/apps/server/docker/nginx.conf@@ -1,5 +1,5 @@server {- listen 8090;+ listen 8095;location /trilium/ {rewrite ^/trilium(/.*)$ $1 break;@@ -9,7 +9,7 @@ server {proxy_set_header X-Forwarded-Proto $scheme;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";- proxy_pass http://127.0.0.1:8082;+ proxy_pass http://host.docker.internal:8082;proxy_cookie_path / /trilium/;proxy_read_timeout 90;}diff --git a/apps/server/package.json b/apps/server/package.jsonindex 3c5610095a..758b96df3c 100644--- a/apps/server/package.json+++ b/apps/server/package.json@@ -29,7 +29,7 @@"docker-start-rootless-alpine": "pnpm docker-build-rootless-alpine && docker run -p 8081:8080 triliumnext-rootless-alpine","generate-document": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=data TRILIUM_RESOURCE_DIR=src tsx ./scripts/generate_document.ts","proxy-traefik": "docker run --name trilium-traefik --rm --network=host -v ./docker/traefik/traefik.yml:/etc/traefik/traefik.yml:ro -v ./docker/traefik/dynamic:/etc/traefik/dynamic traefik:latest",- "proxy-nginx-subdir": "docker run --name trilium-nginx-subdir --rm --network=host -v ./docker/nginx.conf:/etc/nginx/conf.d/default.conf:ro nginx:latest"+ "proxy-nginx-subdir": "docker run --name trilium-nginx-subdir --rm -p 8095:8095 --add-host=host.docker.internal:host-gateway -v ./docker/nginx.conf:/etc/nginx/conf.d/default.conf:ro nginx:latest"},"dependencies": {"@ai-sdk/anthropic": "4.0.39",