DNS Cloudflare -> HTTPS Wiki.js

Hey, 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…

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


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:—-deploying-nginx-proxy-with-let’s-encrypt

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! Regards, Bobby