From Kromonos, 7 Months ago, written in nginx.
Embed
  1.     upstream backends_tor {
  2.         least_conn;
  3.         server  192.168.8.1:9050   weight=10 max_fails=2 fail_timeout=30;
  4.         server  192.168.8.3:9050   weight=10 max_fails=2 fail_timeout=30;
  5.         server  192.168.2.1:9050   weight=5 max_fails=2 fail_timeout=30;
  6.         server  192.168.2.190:9050 weight=5 max_fails=2 fail_timeout=30;
  7.     }
  8.  
  9.     upstream backends_netcup {
  10.         least_conn;
  11.         server  192.168.8.3:1080   weight=10 max_fails=2 fail_timeout=30;
  12.         server  192.168.8.1:1080   backup;
  13.     }
  14.  
  15.     upstream backends_dns {
  16.         least_conn;
  17.         server 192.168.2.190:53 weight=10 max_fails=2 fail_timeout=30;
  18.         server 192.168.8.3:53   backup;
  19.     }
  20.