summary refs log tree commit diff
path: root/host/Rory-nginx/hosts/rory.gay/git.nix
blob: 37931a1938f0380e4f24c6b648f01c41989fb7ba (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;
    add_header 'Access-Control-Allow-Origin' '*';
    add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
    add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
    add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
    add_header 'Access-Control-Allow-Credentials' 'true';
  '';
}