Skip to content

Cloudflare

If your domain's DNS is managed by Cloudflare. There are a few 5Stack specific settings you need to get right. Cloudflare sits in front of your panel and can interfere with certificate generation, WebSockets, and login if it isn't configured correctly.

Pick the setup that matches how you want traffic to reach your server:

SetupWhen to use itGuide
DNS only (grey cloud)Your server is reachable from the internet on ports 80/443. Simplest option.DNS & SSL
Proxied (orange cloud)You want Cloudflare's DDoS protection and caching in front of the panel.Cloudflare Proxy
Cloudflare TunnelYou can't (or don't want to) open inbound firewall ports.Cloudflare Tunnel

Required settings

Regardless of which setup you choose:

  • SSL/TLS encryption mode must be set to Full (or Full (strict) only if Cloudflare can validate your origin certificate). Under Flexible, Cloudflare talks to your origin over HTTP and 5Stack will end up in a redirect loop.
  • 5Stack provisions several subdomains, make sure each one resolves to your server:
SubdomainPurpose
yourdomain.comPanel
api.yourdomain.comAPI
ws.yourdomain.comWebSockets
demos.yourdomain.comDemo downloads
search.yourdomain.comSearch
console.yourdomain.comConsole
inventory.yourdomain.comInventory

A wildcard record (*.yourdomain.com) covers all of these, but see the note on deeply nested subdomains before using one.

In this section