archivy / archivy

Archivy is a self-hostable knowledge repository that allows you to learn and retain information in your own personal and extensible wiki.
https://archivy.github.io
MIT License
3.19k stars 114 forks source link

Archivy doesn't redirect to the HTTPS addresses correctly when running behind a Traefik reverse proxy #202

Open jsnfwlr opened 3 years ago

jsnfwlr commented 3 years ago

I can go to https://archivy.example.com and get the login page but when I fill in the data it takes me to http://archivy.example.com

The same goes for adding folders, pages/notes etc

jsnfwlr commented 3 years ago

Probably the same problem behind #196

BrianGilbert commented 3 years ago

I have a synology running Archivy under Docker with port 6875 exposed within network, and setting the following worked for me Storehouse - Synology DiskStation 2021-02-10 10-15-32

jsnfwlr commented 3 years ago

@BrianGilbert - That's not a solution to my issue. What you've done there is use your Synology NAS to forward the requests (both HTTPS and HTTP) to that Hostname to Archivy.

My issue is that I am using Traefik to serve Archivy over HTTPS (no HTTP), and it fails. I semi-solved the issue by redirecting the HTTP requests to HTTPS, but Archivy should not be downgrading the security of HTTPS to HTTP between requests.