blob: 70c0db3a5b0d18b9630f4c30633f05cbeb5bd6e3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{
enableACME = true;
addSSL = true;
root = "/data/nginx/html_mru";
locations = {
"/" = {
index = "index.html";
extraConfig = ''
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' '*';
add_header 'Access-Control-Allow-Headers' '*';
add_header 'Access-Control-Expose-Headers' '*';
add_header 'Access-Control-Max-Age' 1728000;
# default to /index.html if file not found
try_files $uri $uri/ /index.html;
'';
};
};
}
|