Thumbnail

mod/infra.git

Clone URL: https://git.buni.party/mod/infra.git

Viewing file on branch master

1server {
2 server_name git.buni.party;
3
4 location ~ ^(?!.*/(?:tree|commit|static|tag|grep|branch|show)/).*/objects/([0-9a-f]+/[0-9a-f]+|pack/pack-[0-9a-f]+\.(pack|idx))$ {
5 root /var/lib/gitolite3/repositories;
6 }
7
8 location ~ ^(?!.*/(?:tree|commit|static|tag|branch|grep|show)/).*/(HEAD|info/refs|objects/info/.*|git-(upload|receive)-pack)$ {
9 root /var/lib/gitolite3/repositories;
10 client_max_body_size 0;
11 fastcgi_param SCRIPT_FILENAME /usr/share/gitolite3/gitolite-shell;
12 include fastcgi_params;
13 fastcgi_param GIT_HTTP_EXPORT_ALL "";
14 fastcgi_param GIT_PROJECT_ROOT /var/lib/gitolite3/repositories;
15 fastcgi_param PATH_INFO $fastcgi_path_info;
16 }
17
18 location / {
19 proxy_pass http://localhost:8090;
20 proxy_set_header Host $host;
21 proxy_set_header X-Real-IP $remote_addr;
22 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
23 proxy_set_header X-Forwarded-Proto $scheme;
24 }
25
26 listen 80;
27 listen [::]:80;
28}
29