Repository navigation
Expand file tree
/
Copy pathnetlify.toml
More file actions
102 lines (83 loc) · 1.89 KB
/
Copy pathnetlify.toml
File metadata and controls
102 lines (83 loc) · 1.89 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[build]
command = "hugo --gc --minify"
publish = "public"
[build.environment]
HUGO_VERSION = "0.87.0"
HUGO_UGLYURLS = "true"
[context.deploy-preview]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"
Content-Security-Policy = "default-src 'none'; base-uri 'self'; form-action 'self'; connect-src 'self' https://api.github.com; font-src 'self'; img-src 'self' data:; script-src 'self'; style-src 'self';"
[[redirects]]
from = "/discord"
to = "https://discord.gg/VKpSJrV"
[[redirects]]
from = "/market/*"
to = "https://market.azuriom.com/:splat"
[[redirects]]
from = "/api/download"
to = "https://market.azuriom.com/api/download"
[[redirects]]
from = "/api/updates"
to = "https://market.azuriom.com/api/updates"
[[redirects]]
from = "/en/*"
to = "/en/404.html"
status = 404
[[redirects]]
from = "/fr/*"
to = "/fr/404.html"
status = 404
[[redirects]]
from = "/de/*"
to = "/de/404.html"
status = 404
[[redirects]]
from = "/cs/*"
to = "/cs/404.html"
status = 404
[[redirects]]
from = "/nl/*"
to = "/nl/404.html"
status = 404
[[redirects]]
from = "/"
to = "/fr"
# TODO use Language when possible,
# see https://answers.netlify.com/t/language-based-redirect-only-works-when-1-browser-language-set/4252
conditions = { Country = ["fr"] }
force = true
status = 302
[[redirects]]
from = "/"
to = "/nl"
conditions = { Country = ["nl"] }
force = true
status = 302
[[redirects]]
from = "/"
to = "/en"
force = true
status = 302
[[redirects]]
from = "/*"
to = "/fr/:splat"
conditions = { Country = ["fr"] }
status = 302
[[redirects]]
from = "/*"
to = "/nl/:splat"
conditions = { Country = ["nl"] }
status = 302
[[redirects]]
from = "/*"
to = "/en/:splat"
status = 302