forked from SwiftDocOrg/swiftdoc.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
42 lines (38 loc) · 1.15 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
[[headers]]
for = "/*"
[headers.values]
Content-Security-Policy= """
default-src none;
script-src 'self' *.swiftdoc.org;
style-src 'self';
img-src 'self';
font-src 'self';
frame-ancestors 'none';
object-src 'none';
connect-src 'self' *.swiftdoc.org;
base-uri 'none';
upgrade-insecure-requests;
report-uri https://readeval.report-uri.com/r/d/ct/reportOnly;
"""
Expect-CT = """
max-age=0, report-uri="https://readeval.report-uri.com/r/d/ct/reportOnly"
"""
Referrer-Policy = "same-origin"
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
X-Content-Type-Options = "nosniff"
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
[[headers]]
for = "/site.webmanifest"
[headers.values]
Content-Type = "application/manifest+json"
[[headers]]
for = "/feed.xml"
[headers.values]
Content-Type = "application/rss+xml"
[[redirects]]
from = "https://swiftdoc.netlify.com/*"
to = "https://swiftdoc.org/:splat"
[[redirects]]
from = "http://swiftdoc.netlify.com/*"
to = "https://swiftdoc.org/:splat"