[extensions-web] openshift: added real_ip_header option for nginx
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] openshift: added real_ip_header option for nginx
- Date: Sat, 15 Dec 2018 15:06:08 +0000 (UTC)
commit 5b30eee4225fcf49a896d121ccd5e284564143e5
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Sat Dec 15 19:05:53 2018 +0400
openshift: added real_ip_header option for nginx
openshift/docker/nginx/nginx.conf | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/openshift/docker/nginx/nginx.conf b/openshift/docker/nginx/nginx.conf
index c2e9d27..2bb17c4 100644
--- a/openshift/docker/nginx/nginx.conf
+++ b/openshift/docker/nginx/nginx.conf
@@ -39,6 +39,9 @@ http {
listen 8080 default_server;
listen [::]:8080 default_server;
+ set_real_ip_from 10.0.0.0/8;
+ real_ip_header X-Forwarded-For;
+
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options SAMEORIGIN;
add_header X-UA-Compatible IE=Edge;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]