View Single Post
  #1   (View Single Post)  
Old 29th September 2022
billy_bazooka billy_bazooka is offline
Port Guard
 
Join Date: Sep 2016
Posts: 31
Default relayd how to https to local webserver at port 8080?

I know this is supposed to be simple, but I can't seem to make it work.

I have a local webserver running at port 8080.
It is not httpd.

I have certs for my website (lets say badda.bing.org) all set up.
How to use relayd to send all browser requests from https://badda.bing.org to my local webserver running at port 8080?

Code:
http protocol "https-secure-headers" {
  match header set "X-Forwarded-For" value "$REMOTE_ADDR"
  match header set "X-Forwarded-By" value "$SERVER_ADDR:$SERVER_PORT"
  pass
  tls keypair badda.bing.org
}

relay "tls-to-http" {
  listen on $ipv4 port 443 tls
  protocol "https-secure-headers"
  forward to $LOCALHOST port 80
}
What am I doing wrong? How to make this work?
Thanks.
Reply With Quote