skip to content
Logo 三七の小站

使用 nginx 搭建文件服务器

/ 1 min read

在配置文件中添加:

server {
listen 6900;
server_name _;
location /file {
alias /usr/file; # 替换成实际文件存储路径
autoindex on; # 启用目录列表,如果需要的话
}
}