---
tnginx.conf (1470B)
---
1 # http://auto.mirror.devuan.org
2 server {
3 listen 80;
4 listen [::]:80;
5
6 server_name auto.mirror.devuan.org;
7
8 location /merged {
9 autoindex on;
10 alias /srv/amprolla/merged;
11
12 rewrite /merged/pool/DEVUAN/(.*) http://auto.mirror.devuan.org/devuan/pool/$1;
13 rewrite /merged/pool/DEBIAN-SECURITY/(.*) http://deb.debian.org/debian-security/pool/$1;
14 rewrite /merged/pool/DEBIAN/(.*) http://deb.debian.org/debian/pool/$1;
15 }
16 }
17
18 # https://auto.mirror.devuan.org
19 server {
20 listen 443 ssl;
21 listen [::]:443 ssl;
22
23 server_name auto.mirror.devuan.org;
24
25 ssl_certificate /etc/ssl/snake_oil.crt
26 ssl_certificate_key /etc/ssl/snake_oil.key
27
28 location /merged {
29 autoindex on;
30 alias /srv/amprolla/merged;
31
32 rewrite /merged/pool/DEVUAN/(.*) https://auto.mirror.devuan.org/devuan/pool/$1;
33 rewrite /merged/pool/DEBIAN-SECURITY/(.*) https://deb.debian.org/debian-security/pool/$1;
34 rewrite /merged/pool/DEBIAN/(.*) https://deb.debian.org/debian/pool/$1;
35 }
36 }
37
38 # http://devuanfwojg73k6r.onion
39 server {
40 listen 80;
41
42 server_name devuanfwojg73k6r.onion;
43
44 location /merged {
45 autoindex on;
46 alias /srv/amprolla/merged;
47
48 # see: https://onion.debian.org
49 rewrite /merged/pool/DEVUAN/(.*) http://devuanfwojg73k6r.onion/devuan/pool/$1;
50 rewrite /merged/pool/DEBIAN-SECURITY/(.*) http://vwakviie2ienjx6t.onion/debian-security/pool/$1;
51 rewrite /merged/pool/DEBIAN/(.*) http://vwakviie2ienjx6t.onion/debian/pool/$1;
52 }
53 } |