server.toml 361 B

1234567891011121314
  1. # rathole configuration with Proxy Protocol enabled.
  2. #
  3. # Each service can optionally set `proxy_protocol` to:
  4. # - "v1" (human-readable line)
  5. # - "v2" (binary header)
  6. # If omitted, Proxy Protocol is disabled for that service.
  7. [server]
  8. bind_addr = "0.0.0.0:2333"
  9. default_token = "123"
  10. [server.services.foo1]
  11. bind_addr = "0.0.0.0:5202"
  12. proxy_protocol = "v2"