forked from alexandtheweb/uxbrighton-prototype
-
Notifications
You must be signed in to change notification settings - Fork 4
/
netlify.toml
90 lines (72 loc) · 3.97 KB
/
netlify.toml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
##############################
# Build settings
##############################
[build]
command = "npm i && bundle exec jekyll build" # Install dependencies and build site
publish = "_site" # Directory to publish (relative to root of your repo)
# Plugins to run during build
[[plugins]]
package = "/netlify/plugins/jobs-structured-schema-api/netlify-plugin-jobs-structured-schema-api" # Plugin to generate structured data for jobs
##############################
# Netlify dev server (local)
##############################
# Dev settings: (Used when running local Netlify dev server)
[dev]
command = "bundle exec jekyll serve"
# Declaring port for netlify dev server to use when running the `npm run dev` command
port = 8888
##############################
# Headers
##############################
# Headers (Global)
[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/*"
[headers.values]
Content-Security-Policy = "script-src 'self' 'unsafe-inline' 'unsafe-eval' *.netlify.com unpkg.com *.google.com *.google.co.uk *.google-analytics.com *.googletagmanager.com *.facebook.com *.facebook.net *.licdn.com *.linkedin.com *.twitter.com *.ads-twitter.com *.googleapis.com *.jquery.com *.cloudflare.com *.typekit.com *.youtube.com *.inspectlet.com *.x.com; style-src 'self' 'unsafe-inline' *.google.com *.google.co.uk *.google-analytics.com *.googletagmanager.com *.facebook.com *.facebook.net *.licdn.com *.linkedin.com *.twitter.com *.ads-twitter.com *.fontdeck.com; object-src 'self' 'unsafe-inline'; img-src 'self' 'unsafe-inline' *.google.com *.google.co.uk *.google-analytics.com *.googletagmanager.com *.facebook.com *.facebook.net *.licdn.com *.linkedin.com *.twitter.com *.ads-twitter.com *.cloudfront.net *.t.co *.inspectlet.com *.x.com *.unpkg.com blob: data:" # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
Referrer-Policy = "no-referrer, strict-origin-when-cross-origin" # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload" # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
X-Content-Type-Options = "nosniff" # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
X-Frame-Options = "SAMEORIGIN" # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
X-XSS-Protection = "1; mode=block" # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
# Header for .ico files
[[headers]]
for = "/*.ico"
[headers.values]
Content-Type = "image/x-icon"
# Header for 'normal' JS
[[headers]]
for = "/*.js"
[headers.values]
Content-Type = "text/javascript; charset=utf-8"
# Header for ES6 Modules
[[headers]]
for = "/*.mjs"
[headers.values]
Content-Type = "text/javascript; charset=utf-8"
# Header for JSON
[[headers]]
for = "/*.json"
[headers.values]
Content-Type = "application/json; charset=utf-8"
##############################
# Redirects
##############################
## ########################################################################
# Redirect rule to point temporary Netlify URL to preferred domain name
# ========================================================================
# NOTE: This requires the DNS records to be updated to point to Netlify.
[[redirects]]
from = "https://uxbri.netlify.app/*"
to = "https://uxbri.org/:splat"
status = 301
force = true
# ########################################################################
# Site-specific page redirects
# ========================================================================
# 404 pages
[[redirects]]
from = "/*"
to = "/404"
status = 404
## more info on configuring this file: https://docs.netlify.com/configure-builds/file-based-configuration/