From 95ecba31b77c011e36afe8358b64e492332f9d7d Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Thu, 14 Mar 2024 12:25:37 -0400 Subject: [PATCH] Revert "have docker nginx logs print the client IP" This reverts commit 78ab2d57c80bf2e200d66d539323bf766629da45. --- crayfish/rootfs/etc/nginx/http.d/default.conf | 4 ---- drupal/rootfs/etc/nginx/http.d/default.conf | 4 ---- 2 files changed, 8 deletions(-) diff --git a/crayfish/rootfs/etc/nginx/http.d/default.conf b/crayfish/rootfs/etc/nginx/http.d/default.conf index 89d44c90..c59416d3 100644 --- a/crayfish/rootfs/etc/nginx/http.d/default.conf +++ b/crayfish/rootfs/etc/nginx/http.d/default.conf @@ -3,10 +3,6 @@ server { listen 8000; root /var/www/html; - # have docker logs show the client IP - real_ip_header X-Forwarded-For; - set_real_ip_from 172.0.0.0/8; - location / { # try to serve file directly, fallback to index.php try_files $uri /index.php$is_args$args; diff --git a/drupal/rootfs/etc/nginx/http.d/default.conf b/drupal/rootfs/etc/nginx/http.d/default.conf index bcb8a4ca..fad70f8e 100644 --- a/drupal/rootfs/etc/nginx/http.d/default.conf +++ b/drupal/rootfs/etc/nginx/http.d/default.conf @@ -2,10 +2,6 @@ server { server_name drupal; - # have docker logs show the client IP - real_ip_header X-Forwarded-For; - set_real_ip_from 172.0.0.0/8; - include /etc/nginx/shared/drupal.defaults.conf; include /etc/nginx/shared/drupal.fpm.conf; # Required for Nginx service to validate that fpm is working.