blob: 57f62fc95a9c0218594d94f0c6d9cba75c0d105b (
plain) (
blame)
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
26
27
28
|
server {
listen 80;
listen [::]:80;
server_name git.dybiec.info;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name git.dybiec.info;
location /favicon.ico {
root /var/www/html/;
}
location ~* ^.+(cgit.(css|png)|robots.txt) {
root /usr/share/cgit/;
}
location / {
try_files $uri @cgit;
}
location @cgit {
gzip off;
include uwsgi_params;
uwsgi_modifier1 9;
uwsgi_pass unix:/run/uwsgi/cgit.sock;
}
}
|