privacyguides.org/netlify.toml

277 lines
7.5 KiB
TOML
Raw Normal View History

2022-10-24 09:52:33 -04:00
[build]
publish = "site/"
2023-02-28 14:20:35 -05: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 09:52:33 -04:00
2023-02-24 11:17:46 -05: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 14:30:48 -05: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 11:17:46 -05:00
[[headers]]
2023-03-01 16:49:11 -05:00
for = "/:lang/about/donate/"
2023-02-24 11:17:46 -05:00
[headers.values]
2023-03-01 16:49:11 -05: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 11:17:46 -05:00
2022-10-24 09:52:33 -04:00
[[redirects]]
from = "/.well-known/matrix/*"
to = "https://matrix.privacyguides.org/.well-known/matrix/:splat"
status = 200
force = true
[[redirects]]
from = "/kb"
2023-02-28 14:20:35 -05:00
to = "/en/basics/threat-modeling/"
[[redirects]]
from = "/:lang/kb"
to = "/:lang/basics/threat-modeling/"
2022-10-24 09:52:33 -04:00
[[redirects]]
from = "/coc"
2023-02-28 14:20:35 -05:00
to = "/en/CODE_OF_CONDUCT/"
[[redirects]]
from = "/team"
2023-02-28 14:20:35 -05:00
to = "/en/about/"
2022-10-24 09:52:33 -04:00
[[redirects]]
from = "/browsers"
2023-02-28 14:20:35 -05:00
to = "/en/desktop-browsers/"
2022-10-24 09:52:33 -04:00
[[redirects]]
from = "/blog"
to = "https://blog.privacyguides.org"
[[redirects]]
from = "/blog/2021/12/01/firefox-privacy-2021-update"
to = "https://blog.privacyguides.org/2021/12/01/firefox-privacy-2021-update/"
[[redirects]]
from = "/blog/2021/09/14/welcome-to-privacy-guides"
to = "https://blog.privacyguides.org/2021/09/14/welcome-to-privacy-guides/"
[[redirects]]
from = "/blog/2022/06/09/hide-nothing"
to = "https://blog.privacyguides.org/2022/06/09/hide-nothing/"
[[redirects]]
from = "/blog/2022/04/04/move-fast-and-break-things"
to = "https://blog.privacyguides.org/2022/04/04/move-fast-and-break-things/"
[[redirects]]
from = "/blog/2021/11/01/virtual-insanity"
to = "https://blog.privacyguides.org/2021/11/01/virtual-insanity"
2022-10-24 13:03:22 -04:00
[[redirects]]
from = "/basics/dns-overview"
2023-02-28 14:20:35 -05:00
to = "/en/advanced/dns-overview/"
2022-10-24 13:03:22 -04:00
[[redirects]]
from = "/basics/tor-overview"
2023-02-28 14:20:35 -05:00
to = "/en/advanced/tor-overview/"
2022-10-24 13:03:22 -04:00
[[redirects]]
from = "/real-time-communication/communication-network-types"
2023-02-28 14:20:35 -05:00
to = "/en/advanced/communication-network-types"
2022-10-24 13:03:22 -04:00
[[redirects]]
from = "/advanced/real-time-communication"
2023-02-28 14:20:35 -05:00
to = "/en/advanced/communication-network-types"
2022-10-24 13:03:22 -04:00
[[redirects]]
from = "/android/overview"
2023-02-28 14:20:35 -05:00
to = "/en/os/android-overview/"
2022-10-24 13:03:22 -04:00
[[redirects]]
from = "/linux-desktop/overview"
2023-02-28 14:20:35 -05:00
to = "/en/os/linux-overview/"
2022-10-24 13:03:22 -04:00
[[redirects]]
from = "/android/grapheneos-vs-calyxos"
to = "https://blog.privacyguides.org/2022/04/21/grapheneos-or-calyxos/"
[[redirects]]
from = "/ios/configuration"
to = "https://blog.privacyguides.org/2022/10/22/ios-configuration-guide/"
[[redirects]]
from = "/linux-desktop/hardening"
to = "https://blog.privacyguides.org/2022/04/22/linux-system-hardening/"
[[redirects]]
from = "/linux-desktop/sandboxing"
to = "https://blog.privacyguides.org/2022/04/22/linux-application-sandboxing/"
[[redirects]]
from = "/advanced/signal-configuration-hardening"
to = "https://blog.privacyguides.org/2022/07/07/signal-configuration-and-hardening/"
[[redirects]]
from = "/real-time-communication/signal-configuration-hardening"
to = "https://blog.privacyguides.org/2022/07/07/signal-configuration-and-hardening/"
[[redirects]]
from = "/advanced/integrating-metadata-removal"
to = "https://blog.privacyguides.org/2022/04/09/integrating-metadata-removal/"
[[redirects]]
from = "/advanced/erasing-data"
to = "https://blog.privacyguides.org/2022/05/25/secure-data-erasure/"
[[redirects]]
from = "/providers/dns"
2023-02-28 14:20:35 -05:00
to = "/en/dns/"
[[redirects]]
from = "/software/video-streaming"
2023-02-28 14:20:35 -05:00
to = "/en/video-streaming/"
[[redirects]]
from = "/providers/vpn"
2023-02-28 14:20:35 -05:00
to = "/en/vpn/"
[[redirects]]
from = "/operating-systems"
2023-02-28 14:20:35 -05:00
to = "/en/desktop/"
[[redirects]]
from = "/providers/email"
2023-02-28 14:20:35 -05:00
to = "/en/email/"
[[redirects]]
from = "/threat-modeling"
2023-02-28 14:20:35 -05:00
to = "/en/basics/threat-modeling/"
[[redirects]]
from = "/software/passwords"
2023-02-28 14:20:35 -05:00
to = "/en/passwords/"
[[redirects]]
from = "/self-contained-networks"
2023-02-28 14:20:35 -05:00
to = "/en/tor/"
[[redirects]]
from = "/privacy-policy"
2023-02-28 14:20:35 -05:00
to = "/en/about/privacy-policy/"
[[redirects]]
from = "/metadata-removal-tools"
2023-02-28 14:20:35 -05:00
to = "/en/data-redaction/"
[[redirects]]
from = "/basics"
2023-02-28 14:20:35 -05:00
to = "/en/kb"
[[redirects]]
from = "/software/file-encryption"
2023-02-28 14:20:35 -05:00
to = "/en/encryption/"
[[redirects]]
from = "/providers"
2023-02-28 14:20:35 -05:00
to = "/en/tools/#service-providers"
[[redirects]]
from = "/software/notebooks"
2023-02-28 14:20:35 -05:00
to = "/en/notebooks/"
[[redirects]]
from = "/software/calendar-contacts"
2023-02-28 14:20:35 -05:00
to = "/en/calendar/"
2023-02-14 15:17:53 -05:00
[[redirects]]
from = "/calendar-contacts"
2023-02-28 14:20:35 -05:00
to = "/en/calendar/"
[[redirects]]
from = "/software/metadata-removal-tools"
2023-02-28 14:20:35 -05:00
to = "/en/data-redaction/"
[[redirects]]
from = "/contact"
2023-02-28 14:20:35 -05:00
to = "/en/about/"
[[redirects]]
from = "/welcome-to-privacy-guides"
to = "https://blog.privacyguides.org/2021/09/14/welcome-to-privacy-guides/"
[[redirects]]
from = "/software/email"
2023-02-28 14:20:35 -05:00
to = "/en/email-clients/"
[[redirects]]
from = "/providers/paste"
2023-02-28 14:20:35 -05:00
to = "/en/tools/"
[[redirects]]
from = "/providers/search-engines"
2023-02-28 14:20:35 -05:00
to = "/en/search-engines/"
[[redirects]]
from = "/software/productivity"
2023-02-28 14:20:35 -05:00
to = "/en/productivity/"
[[redirects]]
from = "/software/real-time-communication"
2023-02-28 14:20:35 -05:00
to = "/en/real-time-communication/"
[[redirects]]
from = "/blog/2019/10/05/understanding-vpns"
to = "https://www.jonaharagon.com/posts/understanding-vpns/"
[[redirects]]
from = "/terms-and-notices"
2023-02-28 14:20:35 -05:00
to = "/en/about/notices/"
[[redirects]]
from = "/software/file-sharing"
2023-02-28 14:20:35 -05:00
to = "/en/file-sharing/"
[[redirects]]
from = "/software/networks"
2023-02-28 14:20:35 -05:00
to = "/en/tor/"
[[redirects]]
from = "/social-news-aggregator"
2023-02-28 14:20:35 -05:00
to = "/en/news-aggregators/"
[[redirects]]
from = "/basics/erasing-data"
to = "https://blog.privacyguides.org/2022/05/25/secure-data-erasure/"
[[redirects]]
from = "/linux-desktop"
2023-02-28 14:20:35 -05:00
to = "/en/desktop/"
[[redirects]]
from = "/assets/*"
to = "/en/assets/:splat"
2023-02-26 13:28:44 -05: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 14:20:35 -05:00
to = "/en/404/index.html"
2023-02-26 13:28:44 -05:00
status = 404