-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
74 lines (57 loc) · 1.59 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
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
[build]
base = "/"
publish = "public/"
# Default build command.
command = "make .bin/gimme && eval $(.bin/gimme stable) && make build"
# Directory with the serverless functions, including background functions,
# to deploy to AWS. This is relative to the base directory if one has been set,
# or the root directory if a base has not been set.
functions = "functions/_deploy"
[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/*"
[headers.values]
X-Frame-Options = "SAMEORIGIN"
X-XSS-Protection = "1; mode=block"
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
# Content-Security-Policy = "frame-ancestors https://www.facebook.com"
# Multi-value headers are expressed with multi-line strings.
# cache-control = '''
# max-age=0,
# no-cache,
# no-store,
# must-revalidate'''
# Basic-Auth allows you to password protect your whole site.
# This feature may not be available on all plans.
# Basic-Auth = "someuser:somepassword anotheruser:anotherpassword"
# redirect japanese users to /ja/
#[[redirects]]
# from = "/"
# to = "/ja/"
# status = 302
# force = true
# conditions = {Language = ["ja"]}
# default to /en/
[[redirects]]
from = "/"
to = "/en/"
status = 302
force = true
[[redirects]]
from = "/ja/unitdc/"
to = "/unitdc/"
[[redirects]]
from = "/en/unitdc/"
to = "/unitdc/"
[[redirects]]
from = "/en/*"
to = "/en/404.html"
status = 404
[[redirects]]
from = "/ja/*"
to = "/ja/404.html"
status = 404
[[redirects]]
from = "*"
to = "/en/:splat"
status = 302