-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnetlify.toml
65 lines (58 loc) · 2.28 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
# BUILD Settings:
# ##############################################################################
[dev]
publish = "public"
port = 64946
autolaunch = true
# HEADERS - BASIC AUTH
# ##############################################################################
[[headers]]
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "*"
Content-Security-Policy = "form-action https:"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "origin-when-cross-origin"
Strict-Transport-Security = "max-age=31536000"
Permissions-Policy = "vibrate=(), geolocation=(), midi=(), notifications=(), push=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), speaker=()"
X-Frame-Options = "DENY"
[[headers]]
for = "/editor"
[headers.values]
X-Frame-Options = "ALLOWALL"
# PLUGINS
# ##############################################################################
# Fetch vault plugin needs to come before any of the contextual environment
# variable plugins so they can act on the new vars.
[[plugins]]
package = "netlify-plugin-vault-variables"
[plugins.inputs]
endpoint = 'https://vault.stanford.edu'
# Order doesn't matter here as these will be fetch asyncronously. Try not to have dupes.
secrets = ['secret/data/projects/adapt/giving']
# Set which environment variables to use for the approle login
secretId = 'VAULT_SECRET_ID'
roleId = 'VAULT_ROLE_ID'
[[plugins]]
package = "@netlify/plugin-gatsby"
[[plugins]]
package = '/plugins/netlify-plugin-contextual-auth'
[plugins.inputs]
username = 'adapt'
password = 'letmein2021'
context = ['branch-deploy', 'deploy-preview']
# CONTEXTUAL PLUGINS
# ##############################################################################
# Production context:
# All deploys from the main repository branch
# will inherit these settings.
[context.main]
# Deploys from main branch run this plugin in the build.
# Plugins context requires double brackets.
[[context.main.plugins]]
package = "netlify-plugin-submit-sitemap"
[context.main.plugins.inputs]
# Path to the sitemap URL (optional, default = /sitemap.xml)
sitemapPath = "/sitemap/sitemap-index.xml"
# REDIRECTS are located in static/_redirects
# ###############################################################################