DNS Cloudflare -> HTTPS Wiki.js

Posted February 18, 2020 2.4k views

I’m looking for help setting up an HTTPS connection from Cloudflare to vps on which I have wiki.js. I use the pre-installed wiki.js from Digitalocean so I don’t know where the configuration is.

How? I have problem with cloudflare, when i use dns cloudflare i see error: Error 521 :( - server no respond, but when i ping in, no problem.

Please help..

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


What you could do in order to fix the 521 error is to change your SSL type to Flexible SSL via your Cloudflare control panel. That way you would not have to install an SSL on your Droplet and your site would still be accessible via HTTPS.

As far as I can see according to the official wiki.js documentation, they are suggesting the approach that I’ve described above and also that they are working on a native Let’s Encrypt integration that is supposed to be coming out soon, for more information you could check the documentation here:

Another thing that you could do is to install Nginx and set it up as a reverse proxy, that way you could install an SSL on your Droplet as well. Here’s a tutorial on how to Deploy Docker container with Nginx:

IT is specifically for Go application, but you could follow the Nginx Reverse Proxy with Let’s Encrypt steps and it should work for any Dockerized application.

Hope that this helps!

by Savic
In this tutorial, you will deploy an example Go web application with gorilla/mux as the request router and Nginx as the web server, all inside Docker containers, orchestrated by Docker Compose. You'll use nginx-proxy with the Let's Encrypt add-on as the reverse proxy.