24 lines
528 B
Nginx Configuration File
24 lines
528 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name volley_bracket;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
include /etc/nginx/mime.types;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location = /favicon.svg {
|
|
log_not_found off;
|
|
access_log off;
|
|
try_files /favicon.svg =404;
|
|
add_header Content-Type image/svg+xml;
|
|
}
|
|
|
|
# Cache compiled JS and CSS assets
|
|
location /assets/ {
|
|
expires 1y;
|
|
add_header Cache-Control "public, immutable";
|
|
}
|
|
} |