You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 24, 2025. It is now read-only.
access_log /var/log/nginx/access.log; #check the path of access.log, if it doesn't fit your file, change it
30
-
30
+
31
31
location / {
32
32
proxy_set_header Host $host;
33
33
proxy_set_header X-Real-IP $remote_addr;
@@ -40,10 +40,29 @@ Configure Nginx proxy and HTTPS. The operating system here is Ubuntu 18.04.
40
40
proxy_redirect http://127.0.0.1:8080 https://trilium.example.net; # change them based on your IP, port and domain
41
41
}
42
42
}
43
+
43
44
# This part is for HTTPS forced
44
45
server {
45
-
listen 80;
46
-
server_name trilium.example.net; # change to your domain
47
-
return 301 https://$server_name$request_uri;
46
+
listen 80;
47
+
server_name trilium.example.net; # change to your domain
48
+
return 301 https://$server_name$request_uri;
48
49
}
50
+
```
51
+
4. Alternatively if you want to serve the instance under a different path (useful e.g. if you want to serve multiple instances), update the location block like so:
52
+
* update the location with your desired path (make sure to not leave a trailing slash "/", if your `proxy_pass` does not end on a slash as well)
53
+
* add the `proxy_cookie_path` directive with the same path: this allows you to stay logged in at multiple instances at the same time.
0 commit comments