Fork of Chiri for Astro for my blog
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 13f0e403e527bf110a9effe0be589c9bfda2f62a 114 lines 2.7 kB view raw
1[build] 2 publish = "dist" 3 command = "pnpm run build" 4 5# Redirects for Astro static assets 6[[redirects]] 7 from = "/_astro/*" 8 to = "/_astro/:splat" 9 status = 200 10 11[[redirects]] 12 from = "/rss" 13 to = "/rss.xml" 14 status = 301 15 16# Enable Brotli Compression 17[build.processing] 18 skip_processing = false 19[build.processing.css] 20 bundle = true 21 minify = true 22[build.processing.js] 23 bundle = true 24 minify = true 25[build.processing.html] 26 pretty_urls = true 27 28# Global headers 29[[headers]] 30 for = "/*" 31 [headers.values] 32 X-Frame-Options = "SAMEORIGIN" 33 X-Content-Type-Options = "nosniff" 34 Referrer-Policy = "strict-origin-when-cross-origin" 35 Permissions-Policy = "geolocation=(), microphone=(), camera=(), fullscreen=(self)" 36 Content-Security-Policy = "default-src 'self'; script-src 'self' 'unsafe-inline' https:; style-src 'self' 'unsafe-inline' https:; img-src 'self' data: https: blob:; font-src 'self' data: https:; frame-src https: player.bilibili.com; connect-src 'self' https:; object-src 'none'; worker-src 'self' blob:; child-src 'self' blob: player.bilibili.com;" 37 38# HTML pages 39[[headers]] 40 for = "/*.html" 41 [headers.values] 42 Cache-Control = "public, max-age=86400, s-maxage=172800" 43 Vary = "Accept-Encoding" 44 45# Blog posts 46[[headers]] 47 for = "/*/" 48 [headers.values] 49 Cache-Control = "public, max-age=86400, s-maxage=172800" 50 Vary = "Accept-Encoding" 51 52# Homepage 53[[headers]] 54 for = "/" 55 [headers.values] 56 Cache-Control = "public, max-age=1800, s-maxage=3600" 57 Vary = "Accept-Encoding" 58 59# Static assets 60[[headers]] 61 for = "/fonts/*" 62 [headers.values] 63 Cache-Control = "public, max-age=31536000, immutable" 64 Vary = "Accept-Encoding" 65 66[[headers]] 67 for = "/_astro/*" 68 [headers.values] 69 Cache-Control = "public, max-age=31536000, immutable" 70 Vary = "Accept-Encoding" 71 72[[headers]] 73 for = "/assets/*" 74 [headers.values] 75 Cache-Control = "public, max-age=31536000, immutable" 76 Vary = "Accept-Encoding" 77 78[[headers]] 79 for = "/*.css" 80 [headers.values] 81 Cache-Control = "public, max-age=31536000, immutable" 82 Vary = "Accept-Encoding" 83 84[[headers]] 85 for = "/*.js" 86 [headers.values] 87 Cache-Control = "public, max-age=31536000, immutable" 88 Vary = "Accept-Encoding" 89 90# Images 91[[headers]] 92 for = "/*.jpg" 93 [headers.values] 94 Cache-Control = "public, max-age=31536000, immutable" 95 Vary = "Accept-Encoding" 96 97[[headers]] 98 for = "/*.png" 99 [headers.values] 100 Cache-Control = "public, max-age=31536000, immutable" 101 Vary = "Accept-Encoding" 102 103[[headers]] 104 for = "/*.webp" 105 [headers.values] 106 Cache-Control = "public, max-age=31536000, immutable" 107 Vary = "Accept-Encoding" 108 109 110 111 112 113 114