1 map $sent_http_content_type $expires {
7 listen 80 default_server;
8 listen [::]:80 default_server;
12 index index.html index.htm index.nginx-debian.html;
19 # First attempt to serve request as file, then
20 # as directory, then fall back to displaying a 404.
21 try_files $uri $uri/ =404;
30 root /usr/share/gitweb/;
31 include fastcgi_params;
33 fastcgi_param SCRIPT_FILENAME /usr/share/gitweb/gitweb.cgi;
34 fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
35 fastcgi_pass unix:/var/run/fcgiwrap.socket;
38 location /static { # gitweb static files
39 root /usr/share/gitweb;
40 try_files $uri $uri/ =404;
44 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
45 proxy_set_header X-Script-Name /isso;
46 proxy_set_header Host $host;
47 proxy_set_header X-Forwarded-Proto $scheme;
48 proxy_pass http://localhost:8080;