Guest User

relayd

a guest
Dec 27th, 2024
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1.  
  2. table <localbox> { 172.16.0.2 }
  3.  
  4. http protocol "https" {
  5. tcp { nodelay, sack, backlog 256, socket buffer 65536 }
  6. tls { no tlsv1.0, ciphers 'HIGH:!aNULL' }
  7. tls no session tickets
  8. match request header append "X-Forwarded-For" value "$REMOTE_ADDR"
  9. match request header append "X-Forwarded-By" value "$SERVER_ADDR:$SERVER_PORT"
  10. match request header append "X-Forwarded-Proto" value "https"
  11. match request header set "Connection" value "close"
  12. match header log "Host"
  13. match header log "X-Forwarded-For"
  14. match header log "User-Agent"
  15. match url log
  16. tls keypair git.example.com
  17. tls keypair cicd.example.com
  18. pass request quick from 93.184.215.14 header "Host" value "git.example.com" forward to <localbox>
  19. pass request quick from 93.184.215.14 header "Host" value "vcs.example.com" forward to <localbox>
  20. }
  21. relay https {
  22. listen on 188.114.97.3 port 443 tls
  23. protocol "https"
  24. forward to <localbox> port 80
  25. }
Advertisement
Add Comment
Please, Sign In to add comment