# Ferron reverse proxy for im. Same format as the forge and iz examples (ferron.conf, not KDL). # Replace im.example.com with the public host name (base_url in /etc/im/im.toml must match it). # A bare host block gets automatic TLS. # # The proxy sends X-Forwarded-For for the client. im reads that header only from peers listed in # trusted_proxies; with Ferron on the same machine the peer is 127.0.0.1, so set # trusted_proxies = ["127.0.0.1/32"] in im.toml. Left empty, every visitor counts as 127.0.0.1 and one # visitor's failures throttle everyone. # # Buffering is off because the live update streams (server-sent events) must reach the browser # as they are written. # # Keep /reset/, /invite/ and /email/ out of the access log: those paths carry tokens that grant access. im.example.com { buffer_request 0 buffer_response 0 proxy { upstream http://127.0.0.1:7650 } }