Closed leomeinel closed 2 years ago
I am not sure if this is related to the proxy headers in my nginx config, maybe in combination with the https=false
inside ~/trilium-data/config.ini
.
I did a lot of troubleshooting, but can't seem to find the problem. Or maybe can't find the right proxy settings for nginx.
I am currently trying to set up trilium behind Cloudflare with its
Full(strict)
* configuration andHSTS
.*
Full(strict)
When accessing the domain (when also listening on 0.0.0.0) at https://`IP`:8081 it works fine, but I get an SSL error:
This website does not supply ownership information
because traffic is not routed through Cloudflare.I am also running another domain on the same server, which is why I can only use port 8080. I would like to proxy the connection to my docker image of trilium:latest.
I didn't really find a lot of information on this and my current setup sadly doesn't work. Note: I don't know a lot about nginx and especially docker which I've never used before, but the same settings (except the proxy to docker) work on my website https://meinel.dev.
The problem I am facing is that https://meinel.click tries to redirect to https://meinel.dev and therefore shows an
Invalid SSL certificate Error code 526
. Probably because that website is listening on port 443 of the same IP. If I connect to https://meinel.click:8080/ I get aSecure Connection Failed
notice from Firefox. http://meinel.click:8081/ can't be loaded directly, but that is expected.Maybe I configured something entirely wrong, but I can't really find good information on how to do it otherwise, so I am asking if someone might be able to help me with my config :)
/etc/nginx/conf.d/meinel.click.conf
(Host)~/trilium-data/config.ini
(Host)docker run
(Host)Thanks in advance for any response to this :+1: and thanks for such an awesome self-hosted notes application!