privacyguides.org/netlify.toml

43 lines
2.0 KiB
TOML
Raw Normal View History

2022-10-24 13:52:33 +00:00
[build]
publish = "site/"
2023-02-28 19:20:35 +00:00
command = "mkdocs build --config-file config/mkdocs.en.yml && mkdocs build --config-file config/mkdocs.he.yml && mkdocs build --config-file config/mkdocs.fr.yml && mkdocs build --config-file config/mkdocs.nl.yml && mv _redirects site/"
2022-10-24 13:52:33 +00:00
2023-02-24 16:17:46 +00:00
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "0"
X-Content-Type-Options = "nosniff"
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
2023-02-27 19:30:48 +00:00
Content-Security-Policy = "default-src 'none'; script-src https://www.privacyguides.org https://api.privacyguides.net 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self'; img-src data: 'self'; connect-src https://api.github.com https://*.privacyguides.net 'self'; frame-src https://*.privacyguides.net; frame-ancestors 'none'"
2023-02-24 16:17:46 +00:00
[[headers]]
2023-03-01 21:49:11 +00:00
for = "/:lang/about/donate/"
2023-02-24 16:17:46 +00:00
[headers.values]
2023-03-01 21:49:11 +00:00
Content-Security-Policy = "default-src 'none'; script-src https://opencollective.com https://www.privacyguides.org https://api.privacyguides.net 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self'; img-src https://opencollective.com data: 'self'; connect-src https://api.github.com https://*.privacyguides.net 'self'; frame-src https://opencollective.com; frame-ancestors 'none'"
[[headers]]
for = "/:lang/tor/"
[headers.values]
Content-Security-Policy = "default-src 'none'; script-src https://www.privacyguides.org https://api.privacyguides.net 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self'; img-src data: 'self'; connect-src https://api.github.com https://*.privacyguides.net 'self'; frame-src https://snowflake.torproject.org; frame-ancestors 'none'"
2023-02-24 16:17:46 +00:00
2023-02-26 18:28:44 +00:00
[[redirects]]
from = "/fr/*"
to = "/fr/404/index.html"
status = 404
[[redirects]]
from = "/he/*"
to = "/he/404/index.html"
status = 404
[[redirects]]
from = "/nl/*"
to = "/nl/404/index.html"
status = 404
[[redirects]]
from = "/*"
2023-02-28 19:20:35 +00:00
to = "/en/404/index.html"
2023-02-26 18:28:44 +00:00
status = 404