blob: 1cf2e140ba1fc1ed1d9195849b87420e1bd89906 (
plain) (
blame)
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
|
{
enableACME = true;
onlySSL = true;
quic = true;
http3 = true;
http3_hq = true;
kTLS = true;
root = "/data/nginx/html_mru";
reuseport = true;
extraConfig = ''
brotli off;
'';
locations = {
"/" = {
index = "index.html";
extraConfig = ''
more_set_headers 'Access-Control-Allow-Origin: *';
more_set_headers 'Access-Control-Allow-Methods: *';
more_set_headers 'Access-Control-Allow-Headers: *';
more_set_headers 'Access-Control-Expose-Headers: *';
more_set_headers 'Access-Control-Max-Age' 1728000;
# default to /index.html if file not found
try_files $uri $uri/ /index.html;
'';
};
};
}
|