Report this

What is the reason for this report?

DNS Cloudflare -> HTTPS Wiki.js

Posted on February 18, 2020

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…



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!

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.

Hello,

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:

https://docs.requarks.io/en/install/digitalocean

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:

https://www.digitalocean.com/community/tutorials/how-to-deploy-a-go-web-application-with-docker-and-nginx-on-ubuntu-18-04#step-2-—-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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.