zlacker

[parent] [thread] 0 comments
1. surplu+(OP)[view] [source] 2026-01-07 16:45:33
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.
[go to top]