Skip to content
Snippets Groups Projects
Verified Commit 4c2e1abf authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

Merge branch 'archweb-nginx.conf-iso' into 'master'

archweb: use a whitelist for files in /iso/

See merge request archlinux/infrastructure!595
parents fe1d9d4c dea781af
No related branches found
No related tags found
No related merge requests found
......@@ -151,12 +151,14 @@ server {
alias {{ archweb_dir }}/archlinux.org/logos/;
}
location ~ ^/iso/(.*\.(iso|img|tar\.gz|sfs)$) {
deny all;
}
location /iso/ {
alias {{ archweb_rsync_iso_dir }};
location ~ ^/iso/.*\.(sig|torrent|txt)$ {
}
location /iso/ {
deny all;
}
}
# Cache django's css, js and png files.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment