# /etc/nginx/conf.d/upstream-anubis.conf

upstream anubis {
  zone anubis_zone 64k;
  # Make sure this matches the values you set for `BIND` and `BIND_NETWORK`.
  # If this does not match, your services will not be protected by Anubis.

  # Try anubis first over a UNIX socket
  #server unix:/run/anubis/nginx.sock;
  server anubis:3000 resolve;

  # Optional: fall back to serving the websites directly. This allows your
  # websites to be resilient against Anubis failing, at the risk of exposing
  # them to the raw internet without protection. This is a tradeoff and can
  # be worth it in some edge cases.
  #server unix:/run/nginx.sock backup;
}