From a3c197b342ccdefb43d22f03d8c125d0bd3a0a8c Mon Sep 17 00:00:00 2001
From: FORESTIER Fabien <fabien.forestier@soprasteria.com>
Date: Tue, 15 May 2018 17:08:37 +0200
Subject: [PATCH] Try with encoding header

---
 nginx-development.conf | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/nginx-development.conf b/nginx-development.conf
index 61da272b..b79efa75 100644
--- a/nginx-development.conf
+++ b/nginx-development.conf
@@ -44,7 +44,11 @@ server {
 
     location /wordpress/ {
         #proxy_pass https://elastic2.recette.data.grandlyon.com/elastic/;
+        sub_filter 'http:\/\/192.168.62.15:8000' 'https:\/\/data-reloaded-dev.datalab.erasme.org\/wordpress';
+        sub_filter_once off;
+        sub_filter_types *;
         proxy_pass http://192.168.62.15:8000/;
+        proxy_set_header Accept-Encoding "";
         # proxy_set_header  X-Real-IP  $remote_addr;
         # proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
         #proxy_set_header Host $http_host;
-- 
GitLab