anchor.diff:      location /mirror/<%= mirror[:path] %>/ {
           proxy_pass <%= mirror[:url] %>;
           proxy_cache <%= mirror[:cache] %>;
  -    <%- case mirror[:auth_type] -%>
  +
  +        proxy_set_header Connection '';
  +        proxy_set_header Host $proxy_host;
  +        proxy_set_header User-Agent 'Velocita Composer Cache';
  +    <% case mirror[:auth_type] -%>
       <%- when 'basic' -%>
         <%- unless mirror[:auth_user].empty? || mirror[:auth_pass].empty? -%>
           proxy_set_header Authorization "Basic <%= Base64.strict_encode64("#{mirror[:auth_user]}:#{mirror[:auth_pass]}") %>";
  
positive.code: proxy_max_temp_file_size 2m;
  proxy_read_timeout 10s;
  proxy_send_timeout 10s;
  proxy_set_header User-Agent "Velocita Composer Cache";
  proxy_ssl_protocols TLSv1.3 TLSv1.2;
  
  # Remove and ignore headers from proxy server responses
  
negative.code: proxy_redirect <%= mirror[:url] %> <%= velocita_url %>/mirror/<%= mirror[:path] %>/;
  <%- end -%>
  
  <%- if tls_enabled -%>
  
  # TLS configuration
  