1 首先需要安装Nginx组件
2 指定下载展示的目录,证书地址,日志信息位置即可。
server {
listen 443 ssl;
server_name ;
ssl_certificate /ssl/download/fullchain.crt;
ssl_certificate_key /ssl/download/private.key;
access_log /code/access.log;
root /opt;
autoindex on;
charset utf-8;
location / {
autoindex_exact_size off;
autoindex_localtime on;
}
}