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..

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.

×
1 answer

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-%E2%80%94-deploying-nginx-proxy-with-let%E2%80%99s-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

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.
Submit an Answer