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
Update Nginx.md
hulmgulm48a310e0aab6
diff --git a/docs/User Guide/User Guide/Installation & Setup/Server Installation/2. Reverse proxy/Nginx.md b/docs/User Guide/User Guide/Installation & Setup/Server Installation/2. Reverse proxy/Nginx.mdindex 25572d50ab..24b57c4ea2 100644--- a/docs/User Guide/User Guide/Installation & Setup/Server Installation/2. Reverse proxy/Nginx.md+++ b/docs/User Guide/User Guide/Installation & Setup/Server Installation/2. Reverse proxy/Nginx.md@@ -16,6 +16,13 @@ Configure Nginx proxy and HTTPS. The operating system here is Ubuntu 18.04.3. Fill the file with the context shown below, part of the setting show be changed. Then you can enjoy your web with HTTPS forced and proxy.```+ # This part configures, where your Trilium server is running+ upstream trilium {+ zone trilium 64k;+ server 127.0.0.1:8080; # change it to a different hostname and port if non-default is used+ keepalive 2;+ }+# This part is for proxy and HTTPS configureserver {listen 443 ssl;@@ -35,9 +42,8 @@ Configure Nginx proxy and HTTPS. The operating system here is Ubuntu 18.04.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:8080; # change it to a different port if non-default is used+ proxy_pass http://trilium;proxy_read_timeout 90;- proxy_redirect http://127.0.0.1:8080 https://trilium.example.net; # change them based on your IP, port and domain}}@@ -55,16 +61,16 @@ Configure Nginx proxy and HTTPS. The operating system here is Ubuntu 18.04.```location /trilium/instance-one {+ rewrite /trilium/instance-one/(.*) /$1 break;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://127.0.0.1:8080; # change it to a different port if non-default is used+ proxy_pass http://trilium;proxy_cookie_path / /trilium/instance-oneproxy_read_timeout 90;- proxy_redirect http://127.0.0.1:8080 https://trilium.example.net; # change them based on your IP, port and domain}- ```\ No newline at end of file+ ```