Has anyone sucessfully added the nginx-lua-module to WordOps? I tried recompiling with nginx-ee.sh bash script, but no luck.
I haven't been able to figure out the best way to call the Google Analytics measurement protocol via nginx. I've been testing with the nginx 'mirror' option, but ideally I would like to use POST requests with lua.
location /event {
internal;
resolver 8.8.8.8 ipv6=off;
proxy_pass https://www.google-analytics.com/collect?v=1&t=event&tid=$sub4&cid=$cid&ec=Outbound_click&ea=$request_uri&dh=$http_host&dp=$request_uri&uip=$remote_addr&dr=$http_referer&z=$msec;
proxy_set_header "User-Agent" "$http_user_agent";
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header "cache-control" "no-cache";
proxy_set_header Pragma "no-cache";
proxy_cache off;
}
location /out {
mirror /event;
return 302 https://affiliatelink.com;
}
I've been playing around with every setting I can think of without luck, does anyone have any suggestions?