commit 7d6302920b12b98e9de5ecedd08119e497842f7c parent 1e25c3e64883e6f06af6cc92b0dbc5d5d0bc5714 Author: parazyd <parazyd@dyne.org> Date: Sun, 25 Jun 2017 17:35:41 +0200 add missing onion and https nginx rewrites Diffstat:
M | contrib/nginx.conf | | | 37 | +++++++++++++++++++++++++++++++++++++ |
1 file changed, 37 insertions(+), 0 deletions(-)
diff --git a/contrib/nginx.conf b/contrib/nginx.conf @@ -1,3 +1,4 @@ +# http://auto.mirror.devuan.org server { listen 80; listen [::]:80; @@ -9,6 +10,7 @@ server { } location /merged { + autoindex on; alias /srv/amprolla/merged; rewrite /merged/pool/DEVUAN/(.*) http://auto.mirror.devuan.org/devuan/pool/$1; @@ -16,3 +18,38 @@ server { rewrite /merged/pool/DEBIAN/(.*) http://deb.debian.org/debian/pool/$1; } } + +# https://auto.mirror.devuan.org +server { + listen 443; + listen [::]:443; + + server_name auto.mirror.devuan.org; + + location / { + autoindex off; + } + + location /merged { + autoindex on; + alias /srv/amprolla/merged; + + rewrite /merged/pool/DEVUAN/(.*) https://auto.mirror.devuan.org/devuan/pool/$1; + # security.debian.org doesn't provide https + rewrite /merged/pool/DEBIAN-SEC/(.*) http://security.debian.org/pool/$1; + rewrite /merged/pool/DEBIAN/(.*) https://deb.debian.org/debian/pool/$1; + } +} + +# http://devuanfwojg73k6r.onion +server { + listen 80; + + server_name devuanfwojg73k6r.onion; + + # see: https://onion.debian.org + + rewrite /merged/pool/DEVUAN/(.*) http://devuanfwojg73k6r.onion/devuan/pool/$1; + rewrite /merged/pool/DEBIAN-SEC/(.*) http://sgvtcaew4bxjd7ln.onion/pool/$1; + rewrite /merged/pool/DEBIAN/(.*) http://vwakviie2ienjx6t.onion/debian/pool/$1; +}