im
Clone
https://git.tahinli.com/Tahinli/im.git
0 watching0 forksRustAGPL-3.0542.8 KiBb9f0726Tahinli27 days ago34 commits
| 1 | # Ferron reverse proxy for im. Same format as the forge and iz examples (ferron.conf, not KDL). |
| 2 | # Replace im.example.com with the public host name (base_url in /etc/im/im.toml must match it). |
| 3 | # A bare host block gets automatic TLS. |
| 4 | # |
| 5 | # The proxy sends X-Forwarded-For for the client. im reads that header only from peers listed in |
| 6 | # trusted_proxies; with Ferron on the same machine the peer is 127.0.0.1, so set |
| 7 | # trusted_proxies = ["127.0.0.1/32"] in im.toml. Left empty, every visitor counts as 127.0.0.1 and one |
| 8 | # visitor's failures throttle everyone. |
| 9 | # |
| 10 | # Buffering is off because the live update streams (server-sent events) must reach the browser |
| 11 | # as they are written. |
| 12 | # |
| 13 | # Keep /reset/, /invite/ and /email/ out of the access log: those paths carry tokens that grant access. |
| 14 | im.example.com { |
| 15 | buffer_request 0 |
| 16 | buffer_response 0 |
| 17 | proxy { |
| 18 | upstream http://127.0.0.1:7650 |
| 19 | } |
| 20 | } |