nginx: put the comment back
This commit is contained in:
parent
4afa1f605a
commit
2d8374571b
1 changed files with 1 additions and 2 deletions
|
@ -12,8 +12,8 @@ in {
|
||||||
recommendedProxySettings = lib.mkDefault true;
|
recommendedProxySettings = lib.mkDefault true;
|
||||||
recommendedTlsSettings = lib.mkDefault true;
|
recommendedTlsSettings = lib.mkDefault true;
|
||||||
|
|
||||||
|
# for graylog logging
|
||||||
commonHttpConfig = ''
|
commonHttpConfig = ''
|
||||||
# for graylog logging
|
|
||||||
log_format graylog2_json escape=json '{ "timestamp": "$time_iso8601", '
|
log_format graylog2_json escape=json '{ "timestamp": "$time_iso8601", '
|
||||||
'"facility": "nginx", '
|
'"facility": "nginx", '
|
||||||
'"src_addr": "$remote_addr", '
|
'"src_addr": "$remote_addr", '
|
||||||
|
@ -30,7 +30,6 @@ in {
|
||||||
'"http_user_agent": "$http_user_agent" }';
|
'"http_user_agent": "$http_user_agent" }';
|
||||||
access_log syslog:server=${access_log_sink} graylog2_json;
|
access_log syslog:server=${access_log_sink} graylog2_json;
|
||||||
error_log syslog:server=${error_log_sink};
|
error_log syslog:server=${error_log_sink};
|
||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue