Closed 9acca9 closed 11 months ago
This is more a Linux question than a trilium question. Look at the directory where you store your trilium data. Then make sure the cert location has the same permissions and owner/group as the data dir.
ok. I follow this response from another web (just change the names of user and group in relation to Trilium) I paste here for if somebody found this having the same "question".
On the other hand, you can create a limited group, and allow the permissions to only be opened for them.
// Create group with root and nodeuser as members
$ sudo addgroup nodecert
$ sudo adduser nodeuser nodecert
$ sudo adduser root nodecert
// Make the relevant letsencrypt folders owned by said group.
$ sudo chgrp -R nodecert /etc/letsencrypt/live
$ sudo chgrp -R nodecert /etc/letsencrypt/archive
// Allow group to open relevant folders
$ sudo chmod -R 750 /etc/letsencrypt/live
$ sudo chmod -R 750 /etc/letsencrypt/archive
That should allow node to access the folders with the certs, while not opening it to anyone else.
You should then reboot or at least logout and in after these changes.
(Many changes to permission and groups require a new session, and we had issues with PM2 until reboot.)
Thanks!
Trilium Version
0.60.4
What operating system are you using?
Other Linux
What is your setup?
Server access only
Operating System Version
Manjaro Linux
Description
Im trying to config SSL/TLS with Let's encrypt. I already have my certificates.
So, folllowing the wiki https://github.com/zadam/trilium/wiki/TLS-configuration
I put the path to the certificates:
Then restart Trilium, and i get this errors:
Ok, permission denied, but... how i can give permission to trillium? Thanks!
Error logs
No response