-
Notifications
You must be signed in to change notification settings - Fork 3
/
firebase.json
111 lines (106 loc) · 4.75 KB
/
firebase.json
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
103
104
105
106
107
108
109
110
111
{
"hosting": [
{
"_comment": "HTTP header setting for production channel",
"_comment-details": "All caches to 1 week, archives must revalidate, others have stale-while-revalidate for 1 month",
"target": "production",
"public": "_site",
"cleanUrls": true,
"trailingSlash": false,
"headers": [ {
"source": "assets/archives/**",
"headers": [ {
"key": "Cache-Control",
"value": "public, max-age=604800, must-revalidate"
} ]
}, {
"source": "assets/!(archives)/**",
"headers": [ {
"key": "Cache-Control",
"value": "public, max-age=604800, stale-while-revalidate=2678400"
} ]
}, {
"source": "**",
"headers": [ {
"key": "Referrer-Policy",
"value": "no-referrer-when-downgrade"
}, {
"key": "X-Content-Type-Options",
"value": "nosniff"
}, {
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
}, {
"key": "Report-To",
"value": "{\"group\":\"default\",\"max_age\":10886400,\"endpoints\":[{\"url\":\"https://nkas07xe.uriports.com/reports\"}],\"include_subdomains\":true}"
}, {
"key": "Reporting-Endpoints",
"value": "default=\"https://nkas07xe.uriports.com/reports\""
}, {
"key": "NEL",
"value": "{\"report_to\": \"default\", \"max_age\": 2592000, \"include_subdomains\": true, \"failure_fraction\": 1.0}"
}, {
"key": "Content-Security-Policy-Report-Only",
"value": "default-src 'self'; font-src 'self' https://cdnjs.cloudflare.com https://fonts.gstatic.com https://ka-f.fontawesome.com; img-src 'self'; script-src 'self' https://cdnjs.cloudflare.com https://kit.fontawesome.com; script-src-elem 'self' https://cdnjs.cloudflare.com https://kit.fontawesome.com https://fadmin.fi.muni.cz; connect-src 'self' https://ka-f.fontawesome.com; style-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://fonts.googleapis.com; style-src-elem 'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://fonts.googleapis.com; style-src-attr 'self'; report-uri https://nkas07xe.uriports.com/reports/report; report-to default"
}, {
"key": "Expect-CT",
"value": "max-age=86400, report-uri=\"https://nkas07xe.uriports.com/reports/report\""
}, {
"key": "Permissions-Policy",
"value": "microphone=(), camera=(), geolocation=()"
}, {
"key": "Cross-Origin-Embedder-Policy-Report-Only",
"value": "require-corp; report-to='default'"
}, {
"key": "Cross-Origin-Opener-Policy-Report-Only",
"value": "same-origin; report-to='default'"
} ]
} ]
},
{
"_comment": "HTTP header setting for preview channels",
"_comment-details": "All asset caches down to 5 minutes, report URI is empty",
"target": "preview",
"public": "_site",
"cleanUrls": true,
"trailingSlash": false,
"headers": [ {
"source": "assets/**",
"headers": [ {
"key": "Cache-Control",
"value": "public, max-age=300"
} ]
}, {
"source": "**",
"headers": [ {
"key": "Referrer-Policy",
"value": "no-referrer-when-downgrade"
}, {
"key": "X-Content-Type-Options",
"value": "nosniff"
}, {
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
}, {
"key": "NEL",
"value": "{\"report_to\": \"default\", \"max_age\": 2592000, \"include_subdomains\": true, \"failure_fraction\": 1.0}"
}, {
"key": "Content-Security-Policy-Report-Only",
"value": "default-src 'self'; font-src 'self' https://cdnjs.cloudflare.com https://fonts.gstatic.com https://ka-f.fontawesome.com; img-src 'self'; script-src 'self' https://cdnjs.cloudflare.com https://kit.fontawesome.com; script-src-elem 'self' https://cdnjs.cloudflare.com https://kit.fontawesome.com https://fadmin.fi.muni.cz; connect-src 'self' https://ka-f.fontawesome.com; style-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://fonts.googleapis.com; style-src-elem 'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://fonts.googleapis.com; style-src-attr 'self';"
}, {
"key": "Expect-CT",
"value": "max-age=86400"
}, {
"key": "Permissions-Policy",
"value": "microphone=(), camera=(), geolocation=()"
}, {
"key": "Cross-Origin-Embedder-Policy-Report-Only",
"value": "require-corp; report-to='default'"
}, {
"key": "Cross-Origin-Opener-Policy-Report-Only",
"value": "same-origin; report-to='default'"
} ]
} ]
}
]
}