summaryrefslogtreecommitdiffstats
path: root/roles/git/files/etc
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2018-12-03 03:35:09 +0100
committerGuilhem Moulin <guilhem@fripost.org>2018-12-03 03:43:48 +0100
commit259ad739c650aafd8dddf5afcd829632a6f88a80 (patch)
treea40d0890c0a4d046875ead6a75ce20e7b45a4ea7 /roles/git/files/etc
parent5d9d8aec510d894f528b21013b6d099be961faf1 (diff)
Upgrade wiki baseline to Debian Stretch.
Diffstat (limited to 'roles/git/files/etc')
-rw-r--r--roles/git/files/etc/nginx/sites-available/git4
-rw-r--r--roles/git/files/etc/uwsgi/apps-available/git-http-backend.ini4
2 files changed, 6 insertions, 2 deletions
diff --git a/roles/git/files/etc/nginx/sites-available/git b/roles/git/files/etc/nginx/sites-available/git
index 53bfbe8..73ac1e6 100644
--- a/roles/git/files/etc/nginx/sites-available/git
+++ b/roles/git/files/etc/nginx/sites-available/git
@@ -1,40 +1,40 @@
server {
listen 80;
listen [::]:80;
server_name git.fripost.org;
include snippets/acme-challenge.conf;
access_log /var/log/nginx/git.access.log;
error_log /var/log/nginx/git.error.log info;
location / {
return 301 https://$host$request_uri;
}
}
server {
- listen 443 spdy;
- listen [::]:443 spdy;
+ listen 443 ssl http2;
+ listen [::]:443 ssl http2;
server_name git.fripost.org;
access_log /var/log/nginx/git.access.log;
error_log /var/log/nginx/git.error.log info;
include snippets/headers.conf;
include snippets/ssl.conf;
ssl_certificate ssl/git.fripost.org.pem;
ssl_certificate_key ssl/git.fripost.org.key;
include snippets/git.fripost.org.hpkp-hdr;
location ^~ /static/ {
alias /usr/share/cgit/;
expires 30d;
}
# Bypass the CGI to return static files stored on disk. Try first repo with
# a trailing '.git', then without.
diff --git a/roles/git/files/etc/uwsgi/apps-available/git-http-backend.ini b/roles/git/files/etc/uwsgi/apps-available/git-http-backend.ini
index 6718237..326d6d6 100644
--- a/roles/git/files/etc/uwsgi/apps-available/git-http-backend.ini
+++ b/roles/git/files/etc/uwsgi/apps-available/git-http-backend.ini
@@ -1,4 +1,8 @@
[uwsgi]
plugins = cgi
procname-master = uwsgi %(deb-confname)
cgi = /usr/lib/git-core/git-http-backend
+
+# XXX regression in git-http-backend
+# https://www.mail-archive.com/git@vger.kernel.org/msg119603.html
+cgi-close-stdin-on-eof = true