all repos — infra @ 5fe6100c7c0d9b65eb2bfaf84cb2ff898979d35b

infrastructure manifests and setup notes

apps/cgit/default.conf.yaml (view raw)

 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
apiVersion: v1
data:
  default.conf: |
    server {
        listen 80;

        location ~* ^.+\.(css|png|ico)$ {
            root /usr/share/webapps/cgit/static;
            add_header Last-Modified $date_gmt;
            add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
            if_modified_since off;
            expires off;
            etag off;
        }

        location / {
            fastcgi_pass  unix:/run/fcgiwrap.socket;
            fastcgi_param SCRIPT_FILENAME /usr/share/webapps/cgit/cgit.cgi;
            fastcgi_param PATH_INFO       $uri;
            fastcgi_param QUERY_STRING    $args;
        }
    }
kind: ConfigMap
metadata:
  name: cgit-nginx