-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
40 lines (33 loc) · 1.39 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
[build]
command = "hugo"
[context.production.environment]
HUGO_ENV = "netlify"
HUGO_ENABLEGITINFO = "true"
[context.deploy-preview.environment]
[context.branch-deploy.environment]
[[headers]]
for = "/*"
[headers.values]
Content-Security-Policy = "default-src 'self'; base-uri 'none'; font-src 'self' https://cdnjs.cloudflare.com https://fonts.gstatic.com ; form-action 'none'; frame-ancestors 'self'; img-src 'self' data:; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdnjs.cloudflare.com; style-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://fonts.googleapis.com; connect-src 'self' https://api.mabinouze.fr"
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"
Permissions-Policy = "accelerometer=(), camera=(), geolocation=(), microphone=()"
[[headers]]
for = "/*.svg"
[headers.values]
Content-Security-Policy = "default-src 'none'; style-src 'self' 'unsafe-inline'"
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"
Permissions-Policy = "accelerometer=(), camera=(), geolocation=(), microphone=()"
[[redirects]]
from = "/:id"
to = "/round/"
status = 200
[[redirects]]
from = "/:id/details"
to = "/details/"
status = 200