-
Notifications
You must be signed in to change notification settings - Fork 51
/
netlify.toml
85 lines (66 loc) · 1.44 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
75
76
77
78
79
80
81
82
83
84
85
[build]
publish = "dist/"
command = "grunt build --target=build"
[context.branch-deploy]
environment = { OPENSENSEMAP_STYLE_URL = "", OPENSENSEMAP_ACCESS_TOKEN = "", OPENSENSEMAP_API_URL = "https://api.testing.opensensemap.org", OPENSENSEMAP_CMS_URL = "https://coelho.opensensemap.org" }
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Cache-Control = "public, max-age: 300"
[[headers]]
for = "/scripts"
[headers.values]
Expires = "Thu, 31 Dec 2037 23:55:55 GMT"
Cache-Control = "public"
[[headers]]
for = "/styles"
[headers.values]
Expires = "Thu, 31 Dec 2037 23:55:55 GMT"
Cache-Control = "public"
[[headers]]
for = "/fonts"
[headers.values]
Expires = "Thu, 31 Dec 2037 23:55:55 GMT"
Cache-Control = "public"
[[redirects]]
from="/explore/*"
to="/"
status=200
[[redirects]]
from="/account"
to="/"
status=200
[[redirects]]
from="/interpolation"
to="/"
status=200
[[redirects]]
from="/filter"
to="/"
status=200
[[redirects]]
from="/download"
to="/"
status=200
[[redirects]]
from="/register"
to="/"
status=200
[[redirects]]
from="/about"
to="/"
status=200
[[redirects]]
from="/imprint"
to="/"
status=200
[[redirects]]
from="/privacy"
to="/"
status=200
[template.environment]
OPENSENSEMAP_MAPTILES_URL = "Maptiles url"
OPENSENSEMAP_API_URL = "API endpoint"