diff --git a/Server-installation.md b/Server-installation.md index d693eff..95c0559 100644 --- a/Server-installation.md +++ b/Server-installation.md @@ -24,4 +24,15 @@ export TRILIUM_DATA_DIR=/home/myuser/data/my-trilium-data ## Reverse proxy setup -# nginx +### nginx + +``` +location /trilium/{ + proxy_pass http://127.0.0.1:8080/; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection 'upgrade'; + proxy_set_header Host $host; + proxy_cache_bypass $http_upgrade; +} +``` \ No newline at end of file