about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-08-14T10·40+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-08-20T10·26+0100
commit309c5452e1cb2b2cfffd2216017cf8c106cbbb30 (patch)
tree2aff0a1c8b548c2e56c97a7f65b005ef22b6f4e4 /nixos
parent979cbda33c909d3bb2c7e642df6ccf70a76c1aa8 (diff)
Add host field for nginx JSON logs
I'd like to filter logs from {blog,git,zoo}.wpcarro.dev, etc.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/socrates/configuration.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/socrates/configuration.nix b/nixos/socrates/configuration.nix
index 2fb7b5b58f89..f88ebe1222e4 100644
--- a/nixos/socrates/configuration.nix
+++ b/nixos/socrates/configuration.nix
@@ -170,6 +170,7 @@ in {
       '{'
           '"remote_addr":"$remote_addr",'
           '"method":"$request_method",'
+          '"host":"$host",'
           '"uri":"$request_uri",'
           '"status":$status,'
           '"request_size":$request_length,'