Skip to content

Instantly share code, notes, and snippets.

@Alhamou
Forked from tagr/server.js
Last active September 4, 2018 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alhamou/fefd45c04893bca7cbe65c6f949c8706 to your computer and use it in GitHub Desktop.
Save Alhamou/fefd45c04893bca7cbe65c6f949c8706 to your computer and use it in GitHub Desktop.
Node.js/Express: Add Expires header to /images and /stylesheets directories
# set client body size to 20M #
client_max_body_size 20M;
server Block :
location / {
proxy_pass http://167.99.154.190:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment