-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx-cgit.conf
25 lines (23 loc) · 939 Bytes
/
nginx-cgit.conf
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
server {
listen 443 ssl;
server_name git.dczheng.com;
access_log /home/git/access.log;
error_log /home/git/error.log;
ssl_certificate /home/git/git.pem;
ssl_certificate_key /home/git/git.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
root /home/git;
try_files $uri @cgit;
location @cgit {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
fastcgi_param PATH_INFO $uri;
fastcgi_param QUERY_STRING $args;
fastcgi_param HTTP_HOST $server_name;
fastcgi_param CGIT_CONFIG /home/git/cgitrc;
fastcgi_pass unix:/run/fcgiwrap.socket;
}
}