From e26a89ee5a48bd88d83b591e85ffab22644623b2 Mon Sep 17 00:00:00 2001
From: Etienne Loupias <eloupias@grandlyon.com>
Date: Thu, 20 Mar 2025 15:15:41 +0100
Subject: [PATCH] feat(jeuIA): store nginx logs

---
 nginx/nginx.conf | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 4070a4c7e..44dc4baa6 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -15,7 +15,10 @@ http {
                       '"$http_user_agent" "$http_x_forwarded_for"'
                       '"$upstream_uri"';
 
+    # Default log to stdout
     access_log  /var/log/nginx/access.log  main;
+    # Also write to file to persist logs
+    access_log  /var/log/nginx/persist/access.$time_local.log  main;
 
     sendfile        on;
 
-- 
GitLab