[nextcloud-web] nginx: Move map to correct scope
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nextcloud-web] nginx: Move map to correct scope
- Date: Wed, 23 Jun 2021 11:44:03 +0000 (UTC)
commit 7a35160632471e536471d183696238dbe36c1d30
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Wed Jun 23 13:43:59 2021 +0200
nginx: Move map to correct scope
nginx/nginx.conf | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 9ee174d..5297f28 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -23,6 +23,11 @@ http {
'"$http_user_agent" "$http_x_forwarded_for" "$real_x_forwarded_for"';
access_log /dev/stdout main;
+ map $http_x_forwarded_for $real_x_forwarded_for {
+ default $http_x_forwarded_for;
+ ~^::ffff:(.*) $1;
+ }
+
upstream php-handler {
server localhost:9000;
}
@@ -39,11 +44,6 @@ http {
set_real_ip_from 10.0.0.0/8;
real_ip_header X-Forwarded-For;
- map $http_x_forwarded_for $real_x_forwarded_for {
- default $http_x_forwarded_for;
- ~^::ffff:(.*) $1;
- }
-
# Add headers to serve security related headers
# Before enabling Strict-Transport-Security headers please read into this
# topic first.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]