Laverna / laverna

Laverna is a JavaScript note taking application with Markdown editor and encryption support. Consider it like open source alternative to Evernote.
https://laverna.cc/index.html
Mozilla Public License 2.0
9.18k stars 800 forks source link

SSL for Laverna + storage #703

Open petrk94 opened 7 years ago

petrk94 commented 7 years ago

Hello I would like to know how to use laverna with SSL / HTTPS? I have set up my domain with SSL to use HTTPS, but when I try to access laverna in xxx.de/laverna than its using http and not https. But when I type https://xxx.de/laverna than it works too How I can redirect it to the HTTPS version?

The other question, I have it selfhosted on my server, are the notes all stored in the mysql database? So when Im backup the mysql database, and restore the information, than laverna is working with the "imported" notes without problems?

Thanks

jekuno commented 7 years ago

Regarding question 1: Use a .htaccess file to always redirect from http to https.

petrk94 commented 7 years ago

@jekuno thanks for your information. I will change it as soon as possible. I have read about the storaging of laverna, that its all stored in the browser cache, but what happens when I make a clean up with CCleaner or similar? Than the files are lost, its not very practical ?

jekuno commented 7 years ago

I'm new to laverna but you can enable sync with Dropbox and RemoteStorage. Also there are standalone desktop apps for all OS which probably save data in a dedicated laverna folder on your file system.

petrk94 commented 7 years ago

Yes I have seen it, but not tested it yet, whether it access the browser storage and make it persistent in the file system when the App is installed locally

petrk94 commented 7 years ago

I have changed few entries, but it didnt helped. What I need to change in .htaccess to redirect to https automatically?