server {
    listen 80;
    server_name _;

    root /var/www;
    charset utf-8;

    location /musi/v3/ {
        index index.html;
        try_files $uri $uri/ =404;
    }

    # Video files - large files, enable range requests for seeking
    location /musi/v3/videos/ {
        add_header Cache-Control "public, max-age=86400";
    }

    # Images
    location /musi/v3/images/ {
        add_header Cache-Control "public, max-age=604800";
    }

    # Fonts
    location /musi/v3/fonts/ {
        add_header Cache-Control "public, max-age=2592000";
    }

    # Gzip compression
    gzip on;
    gzip_types text/html text/css application/javascript image/svg+xml;
    gzip_min_length 1000;
}
