Better HN
topnewbestaskshowjobs
Log inSign up

surplusvalue

1 karma · joined Jan 5, 2026 (10mo ago) · 1 submissions

Submissions

comment 10mo ago · link · parent

i just set up caddy proxy to redirect x.com to xcancel.com

  {
      local_certs
      order reverse_proxy before file_server
  }
  
  x.com, www.x.com {
      tls internal
      reverse_proxy https://xcancel.com {
          header_up Host xcancel.com
      }
  }

I think I installed my caddy cert on my devices so the browser wouldn't throw a fit, but this works on my mobile devices as well with a dns record to point to this caddy instance (and a wireguard tunnel back home). any improvements to this approach would be appreciated.