Verisoft Wiki

When adding a new service and ensuring it is accessible over HTTPS, simply configuring Traefik in the Docker Compose file isn’t enough. To guarantee a secure, reliable connection, you must also set up the correct DNS records in Cloudflare. This includes creating the proper DNS roles, verifying that they’re active, and ensuring that user requests are accurately routed to your service. The steps below detail how to configure these settings and validate that everything is working as intended.

1. What is DNS?

diagram+of+how+a+DNS+server+works.png


2. Adding a DNS Role in Cloudflare


3. Verifying DNS Role Activation

If it doesn’t, re-check your DNS settings in Cloudflare.


Additional information:

The difference between accessing via DNS only and with Cloudflare proxy

When deciding how to expose your services, you have two primary approaches:

  1. Cloudflare proxy.
  2. DNS only

Cloudflare proxy

With the Cloudflare proxy enabled, requests are forwarded directly to a specific server IP and port (for example, Chat.verisoft.io ---> 95.216.217.133:3001 ). This method is particularly useful when Traefik routing isn’t feasible, as it provides a secure SSL connection even while directing traffic straight to the server.

In that case, we need to open the firewall to the desired port. So the service can be reached with Chat.verisoft.io or 95.216.217.133:3001. In that case- its not fully secured.

Frame 4.png

Configure Cloudflare proxy:

DNS-only + Traefik

On the other hand, opting for DNS-only routing directs traffic through Traefik's configured secure ports.(All the services go thought one or two ports )

This approach not only enhances security by leveraging Traefik’s built-in protections and SSL management but also allows you to restrict direct port access using firewall rules, thereby reducing potential vulnerabilities.

Frame 5.png

In summary, while the Cloudflare proxy offers flexibility when Traefik isn’t available, DNS-only routing delivers a more controlled and secure environment by ensuring all traffic passes through your established security layers.