mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-17 05:44:57 +00:00
* docs: split nginx configuration files to their own directory Signed-off-by: Xe Iaso <me@xeiaso.net> * test: add nginx config smoke test based on the config in the docs Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net>
17 lines
651 B
Plaintext
17 lines
651 B
Plaintext
# /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;
|
|
} |