Skip to content

Instantly share code, notes, and snippets.

@LuenCC
Forked from hofmannsven/README.md
Created October 26, 2018 16:33
Show Gist options
  • Save LuenCC/d0a4337932589e87da30f0ddb20d824a to your computer and use it in GitHub Desktop.
Save LuenCC/d0a4337932589e87da30f0ddb20d824a to your computer and use it in GitHub Desktop.
Nginx proxy configuration for Google Analytics
server {
### ...
location = /analytics.js {
# Proxy to google-analytics.com
proxy_pass https://www.google-analytics.com;
# Custom expires time
expires 1y;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment