generated from Coderic/coderic.co
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudflare.toml
More file actions
42 lines (33 loc) · 904 Bytes
/
cloudflare.toml
File metadata and controls
42 lines (33 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Cloudflare Pages configuration
# Documentation: https://developers.cloudflare.com/pages/platform/build-configuration/
[build]
command = "bundle exec jekyll build"
output_directory = "_site"
[build.environment]
RUBY_VERSION = "3.4.4"
BUNDLE_WITHOUT = "development test"
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-Content-Type-Options = "nosniff"
X-XSS-Protection = "1; mode=block"
Referrer-Policy = "strict-origin-when-cross-origin"
[[headers]]
for = "/images/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.js"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.css"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.woff2"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[env.production]
NODE_ENV = "production"