all repos — infra @ 654125951db93d9760569bcf5ef68cb479e87afe

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