From d13d26145f0b37c45e3c9d30a2ac2953013bd4ba Mon Sep 17 00:00:00 2001 From: zadam Date: Thu, 24 Jan 2019 21:22:18 +0100 Subject: [PATCH] Updated Server installation (markdown) --- Server-installation.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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