# SimpleX Chat Server HAProxy Configuration
#
# This file provides HAProxy configuration snippets for SimpleX servers.
# SimpleX uses TLS passthrough (TCP mode) as it handles TLS internally.
#
# Note: SMP and XFTP servers require direct TLS connections.
# HAProxy can be used for:
# - TCP load balancing (if running multiple instances)
# - Port mapping
# - Connection limiting
#
# For most setups, direct port forwarding is recommended.

# Example frontend for SMP (if needed):
# frontend simplex_smp_frontend
#     bind *:5223
#     mode tcp
#     default_backend simplex_smp_backend
#
# backend simplex_smp_backend
#     mode tcp
#     server simplex-smp 127.0.0.1:15223 check

# Example frontend for XFTP:
# frontend simplex_xftp_frontend
#     bind *:443
#     mode tcp
#     default_backend simplex_xftp_backend
#
# backend simplex_xftp_backend
#     mode tcp
#     server simplex-xftp 127.0.0.1:1443 check
