mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-11-25 09:13:06 -05:00
The error log is fairly quiet during regular use but can end up logging one or more lines per request during DDoS attacks. Errors are logged for worker_connections depletion and limit_conn rejections. There's also currently an nginx bug with modern TLS and OpenSSL causing some client side TLS errors to be logged as crit instead of info.
40 lines
762 B
Text
40 lines
762 B
Text
@version: 4.10
|
|
|
|
source s_internal {
|
|
internal();
|
|
};
|
|
source s_nginx_access {
|
|
unix-dgram("/run/nginx-access-log" group("http") perm(0660));
|
|
};
|
|
source s_nginx_error {
|
|
unix-dgram("/run/nginx-error-log" group("http") perm(0660));
|
|
};
|
|
|
|
destination d_journald {
|
|
unix-dgram("/dev/log");
|
|
};
|
|
destination d_nginx_access {
|
|
file("/var/log/nginx/access.log" template("${MESSAGE}\n"));
|
|
};
|
|
destination d_nginx_error {
|
|
file("/var/log/nginx/error.log" template("${MESSAGE}\n"));
|
|
};
|
|
|
|
log {
|
|
source(s_internal);
|
|
destination(d_journald);
|
|
};
|
|
log {
|
|
source(s_nginx_access);
|
|
destination(d_nginx_access);
|
|
};
|
|
log {
|
|
source(s_nginx_error);
|
|
destination(d_nginx_error);
|
|
};
|
|
|
|
options {
|
|
keep-hostname(yes);
|
|
stats(freq(0));
|
|
use-dns(no);
|
|
};
|