fix nginx config for piwik and add headers
@@ -63,7 +63,15 @@ http {
ssl_certificate_key /etc/letsencrypt/live/matchat.org/privkey.pem;
location /piwik {
- proxy_pass https://satvm01.researchstudio.at:8080;
+ return 302 /piwik/;
+ }
+
+ location /piwik/ {
+ proxy_pass http://satvm01.researchstudio.at:8080/;
+ proxy_redirect off;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Host $host;
}
location /owner {
