diff options
author | Silvino Silva <silvino@bk.ru> | 2020-04-20 01:01:22 +0100 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2020-04-20 01:01:22 +0100 |
commit | fb54fa28e88afb7f9dcd7027b7c820ae8b43f802 (patch) | |
tree | 4987031dc2bc48a56484d611598b46f696a8889b /tools/conf/etc/nginx/sites-enabled/ports.conf | |
parent | fd186246f96768b8398f0ffe32ef136cb895fa21 (diff) | |
parent | 4216ad7e3cc4d4733034a50c122e4efa4ae08108 (diff) | |
download | doc-fb54fa28e88afb7f9dcd7027b7c820ae8b43f802.tar.gz |
Merge branch 'master' into release
Diffstat (limited to 'tools/conf/etc/nginx/sites-enabled/ports.conf')
-rw-r--r-- | tools/conf/etc/nginx/sites-enabled/ports.conf | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/tools/conf/etc/nginx/sites-enabled/ports.conf b/tools/conf/etc/nginx/sites-enabled/ports.conf new file mode 100644 index 0000000..829d710 --- /dev/null +++ b/tools/conf/etc/nginx/sites-enabled/ports.conf @@ -0,0 +1,55 @@ +server { + listen 80; + server_name localhost ports.ank default_host; + + access_log /var/log/nginx/ports_access.log; + error_log /var/log/nginx/ports_error.log; + + location /mirror/archive { + autoindex on; + alias /usr/ports/archive; + } + + location /mirror/packages { + autoindex on; + alias /usr/ports/packages; + } + + location /mirror/distfiles { + autoindex on; + alias /usr/ports/distfiles; + } + + location /mirror/bugs { + autoindex on; + alias /usr/ports/pkgbuild; + types { + text/plain log; + } + } + + location /mirror/installed { + autoindex on; + alias /usr/ports/installed; + default_type text/plain; + } + + location /mirror/releases { + autoindex on; + alias /usr/ports/releases; + } + + location /mirror/ { + return 301 https://tribu.semdestino.org/wiki/Main/Mirror; + } + + error_page 404 /404.html; + + # redirect server error pages to the static page /50x.html + # + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root html; + } +} + |