Created
June 8, 2020 14:02
-
-
Save ichtrojan/abf3c43bf3fc73a756bd3e71f94adc9f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
root /var/www/{project}/build; | |
server_name domain.com; | |
location ~* ^.+\.(ico|gif|jpg|jpeg|png)$ { | |
access_log off; | |
expires 30d; | |
} | |
location ~* ^.+\.(css|js|txt|xml|swf|wav)$ { | |
access_log off; | |
expires 24h; | |
} | |
location ~* ^.+\.(html|htm)$ { | |
expires 1h; | |
} | |
location ~* ^.+\.(eot|ttf|otf|woff|svg)$ { | |
access_log off; | |
expires max; | |
} | |
location / { | |
try_files $uri /index.html; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment