vinaigrette/nginx/repo.conf
2017-08-30 05:30:18 +02:00

27 lines
556 B
Text

server {
listen 80;
listen [::]:80;
server_name repo.yunohost.org;
location '/.well-known/acme-challenge' {
default_type "text/plain";
root /var/www/letsencrypt;
}
# Document root
root /var/www/repo/debian;
index index.html;
location /debian {
autoindex on;
alias /var/www/repo/debian;
default_type text/plain;
}
location ~ /(conf|logs)/ {
deny all;
}
access_log /var/log/nginx/repo_access.log;
error_log /var/log/nginx/repo_error.log;
}