apps/server/docker/nginx-proxy-manager/README.md
Start Trilium on the host (default port 8080):
pnpm run server:start
Start Nginx Proxy Manager:
docker compose up -d
Open the NPM admin panel at http://localhost:8081 and log in with:
[email protected]changeme
(You'll be asked to change these on first login.)Add a proxy host:
localhosthttphost.docker.internal8080Access Trilium through NPM at http://localhost:8090.
To test Trilium behind a subpath (e.g. /trilium/), add a Custom Nginx Configuration in NPM under the Advanced tab of the proxy host:
location /trilium/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://host.docker.internal:8080/;
proxy_cookie_path / /trilium/;
proxy_read_timeout 90;
}
docker compose down -v