| 123456789101112131415161718 |
- server {
- listen 80;
- root /usr/share/nginx/html;
- index index.html;
- location / {
- try_files $uri $uri/ /index.html;
- }
- location ~* \.(js|css|png|jpg|jpeg|gif|svg|ico|woff|woff2|ttf|eot|otf|mp4|webm|ogg|mp3|wav|m4a|json|txt|xml)$ {
- expires 1y;
- access_log off;
- add_header Cache-Control "public";
- }
- error_page 404 /index.html;
- }
|