Merge pull request #136 from nolanlawson/static-assets

Add nginx config for static assets
This commit is contained in:
Eugen 2017-04-23 05:49:47 +02:00 committed by GitHub
commit 0018021617
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ server {
try_files $uri @proxy;
}
location /assets {
add_header Cache-Control "public, max-age=31536000, immutable";
}
location @proxy {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;