Logo 我的知识库

Trilium

安装#

docker pull elestio/trilium:v0.63.7

配置#

Nginx#

https://trilium.atibm.com/share/iBfXhD61SVwA 

https://github.com/TriliumNext/Trilium/wiki/Nginx-proxy-setup

# This part is for proxy and HTTPS configure
server {
    listen 443 ssl http2;
    server_name unix.luoxingding.com; #change trilium.example.net to your domain without HTTPS or HTTP.
    ssl_certificate /etc/nginx/ssl/cert.pem; #change /etc/ssl/note/example.crt to your path of crt file.
    ssl_certificate_key /etc/nginx/ssl/key.pem; #change /etc/ssl/note/example.net.key to your path of key file.
    #ssl on;
    #ssl_session_cache builtin:1000 shared:SSL:10m;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
    ssl_prefer_server_ciphers on;
    access_log /var/log/nginx/access.log; #check the path of access.log, if it doesn't fit your file, change it

    location / {
        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:9981; # change it to a different port if non-default is used
        proxy_read_timeout 90;
        proxy_redirect http://127.0.0.1:9981 https://unix.luoxingding.com; # change them based on your IP, port and domain
    }
}
# This part is for HTTPS forced
server {
            listen 80;
            server_name unix.luoxingding.com; # change to your domain
            return 301 https://$server_name$request_uri;
}

 

https://triliumnext.github.io/Docs/Wiki/sharing.html