blob: 6aa51155066c3c3436ca4647520125a880a380e2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{
root = "/data/nginx/html_git";
enableACME = true;
addSSL = true;
extraConfig = ''
autoindex on;
more_set_headers 'Access-Control-Allow-Origin' '*';
more_set_headers 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
more_set_headers 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
more_set_headers 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
more_set_headers 'Access-Control-Allow-Credentials' 'true';
'';
}
|