File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ RUN apt-get update && \
7
7
apt-get install -y gitweb fcgiwrap
8
8
9
9
RUN ln -s /usr/share/gitweb /opt/www
10
+ ADD gitweb.conf /etc/gitweb.conf
10
11
11
- RUN rm -v /etc/nginx/nginx.conf
12
+ RUN rm /etc/nginx/nginx.conf
12
13
ADD nginx.conf /etc/nginx
13
- ADD gitweb.conf /etc/gitweb.conf
14
14
15
15
CMD spawn-fcgi -s /var/run/fcgiwrap.socket /usr/sbin/fcgiwrap && \
16
16
nginx "-g" "daemon off;"
Original file line number Diff line number Diff line change @@ -11,22 +11,29 @@ events {
11
11
http {
12
12
include /etc/nginx/mime.types;
13
13
default_type application/octet-stream;
14
+ #include /etc/nginx/fastcgi.conf;
14
15
sendfile on ;
15
16
gzip off ;
16
17
keepalive_timeout 65 ;
17
18
18
19
server {
19
20
listen 80 ;
20
21
root /opt/www;
22
+ charset utf-8;
21
23
location / {
22
- fastcgi_pass unix:/var/run/fcgiwrap.socket;
24
+ try_files $uri @gitweb;
25
+ }
26
+ location @gitweb {
23
27
fastcgi_param SCRIPT_FILENAME /opt/www/gitweb.cgi;
24
28
fastcgi_param PATH_INFO $uri ;
25
29
fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
26
30
include fastcgi_params;
31
+ fastcgi_pass unix:/var/run/fcgiwrap.socket;
32
+ fastcgi_index gitweb.cgi;
27
33
gzip off ;
28
34
}
29
- location /static {
30
- }
35
+ #location /static {
36
+ # root /opt/www/static;
37
+ #}
31
38
}
32
39
}
You can’t perform that action at this time.
0 commit comments