IRCNow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
openbsd:net:relayd [2020/03/19 12:30]
jrmu
openbsd:net:relayd [2020/03/19 12:33]
jrmu
Line 1: Line 1:
-Suppose you want to have relayd act as a reverse proxy for two different domains served on separate ports. In this case, suppose both git.ircnow.org and bnc3.ircnow.org need relayd to provide TLS acceleration,​ but run on separate ports (6698 and 8080).+Suppose you want to have relayd act as a reverse proxy for two different domains served on separate ports. In this case, suppose both www.ircnow.org and bnc.ircnow.org need relayd to provide TLS acceleration,​ but run on separate ports (1338 and 8080).
  
 <​code>​ <​code>​
Line 5: Line 5:
 webhost="​127.0.0.1"​ webhost="​127.0.0.1"​
  
-table <git> { $webhost } +table <www> { $webhost } 
-table <bnc3> { $webhost }+table <bnc> { $webhost }
 http protocol https { http protocol https {
         match request header append "​X-Forwarded-For"​ value "​$REMOTE_ADDR"​         match request header append "​X-Forwarded-For"​ value "​$REMOTE_ADDR"​
Line 18: Line 18:
 #       tls { no tlsv1.0, ciphers HIGH }  ​ #       tls { no tlsv1.0, ciphers HIGH }  ​
 #       tls no session tickets #       tls no session tickets
-        match request header "​Host"​ value "bnc3.ircnow.org"​ forward to <bnc3+        match request header "​Host"​ value "bnc.ircnow.org"​ forward to <bnc
-        match request header "​Host"​ value "git.ircnow.org"​ forward to <git>+        match request header "​Host"​ value "www.ircnow.org"​ forward to <www>
 } }
  
Line 28: Line 28:
  
         # Forward to hosts in the table         # Forward to hosts in the table
-        forward to <bnc3> port 6669 mode loadbalance check icmp +        forward to <bnc> port 1338 mode loadbalance check icmp 
-        forward to <git> port 8080 mode loadbalance check icmp+        forward to <www> port 8080 mode loadbalance check icmp
 }                                    }                                   
 </​code>​ </​code>​