add log directive to simple example
authorAJ ONeal <aj@therootcompany.com>
Tue, 14 Jul 2020 02:53:05 +0000 (02:53 +0000)
committerAJ ONeal <aj@therootcompany.com>
Tue, 14 Jul 2020 02:53:05 +0000 (02:53 +0000)
caddy/README.md

index db52f692e523bb257e4a9fc2661bb2deca0150e7..6016a1cc55199728d612f9fa3fcd72516d84cdd9 100644 (file)
@@ -36,6 +36,12 @@ www.example.com {
 }
 
 example.com {
+    # log to stdout, which is captured by journalctl
+    log {
+        output stdout
+        format console
+    }
+
     # turn on standard streaming compression
     encode gzip zstd