mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-11 02:58:49 +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>
16 lines
622 B
Plaintext
16 lines
622 B
Plaintext
# /etc/nginx/conf.d/upstream-anubis.conf
|
|
|
|
upstream anubis {
|
|
# 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 127.0.0.1:8923;
|
|
|
|
# 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;
|
|
} |