No CSS / JS while using cloudfared tunnel on raspberrypi

Hi All,

i have a wordpress site running on http://localhost:80 which I wanted to expose to the internet. Tried it using cloudflared and the website is accesible but there is styling associated. I use a wordpress theme which works fine on the local netwrok but looks abominable over the internet.

  1. Server not secured
  2. Absolute links
  3. HTTP links because of that
  4. Mixed content

Ideally you configure your server properly, though in a Tunnel context (and only in a Tunnel context - and only in a localhost context), that is not immediately insecure per se.

My advice in this order

  1. Secure the server - or
  2. Do not use absolute links - or
  3. Use HTTPS rewrites on Cloudflare’s side

I am using this setting

Rewrites cannot rewrite all HTTPS links, so that will depend on your site. Best to switch to secure the server then.

Please expand on this. I may be doing somethings but a few nudges would be great.

Basically the site should load fine on HTTPS without Cloudflare. That’s a necessity when not using Tunnel, but still recommended with Tunnel too.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.