summary refs log tree commit diff
path: root/host/Rory-nginx/services/nginx/rory.gay/cgit.nix
blob: 812e946ae8dfe0acbad9420dbee148d334213590 (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';
  '';
}