Commit 59e1457d authored by Pepijn Boers's avatar Pepijn Boers
Browse files

Update php request headers

parent 83574557
......@@ -43,6 +43,7 @@ http {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
# We do not want to send requests to app-dnt/dnt but to app-dnt/, so rewrite!
rewrite ^/dnt(.*) /$1 break;
proxy_set_header X-Forwarded-Uri "/dnt";
......@@ -50,15 +51,19 @@ http {
}
location /matomo.php {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
mirror /mirror;
proxy_pass http://app;
}
location = /mirror {
internal;
# change id here? not possible for multiple sides, unless
# we make a separate location for each site id?
# $request_uri is "/something" for url "https://example.com/something"
proxy_pass http://app-dnt$request_uri;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment