all repos — infra @ 3a8e0e7ceeefcb35e01956b86ccb2dbe6ef84bfa

infrastructure manifests and setup notes

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

 1apiVersion: v1
 2data:
 3  default.conf: |
 4    server {
 5        listen 80;
 6
 7        location ~* ^.+\.(css|png|ico)$ {
 8            root /usr/share/webapps/cgit/static;
 9            add_header Last-Modified $date_gmt;
10            add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
11            if_modified_since off;
12            expires off;
13            etag off;
14        }
15
16        location / {
17            fastcgi_pass  unix:/run/fcgiwrap.socket;
18            fastcgi_param SCRIPT_FILENAME /usr/share/webapps/cgit/cgit.cgi;
19            fastcgi_param PATH_INFO       $uri;
20            fastcgi_param QUERY_STRING    $args;
21        }
22    }    
23kind: ConfigMap
24metadata:
25  name: cgit-nginx