https://github.com/nondanee/ngx-plainindex
Plain indexes attachment for the Nginx web server
https://github.com/nondanee/ngx-plainindex
nginx
Last synced: 2 months ago
JSON representation
Plain indexes attachment for the Nginx web server
- Host: GitHub
- URL: https://github.com/nondanee/ngx-plainindex
- Owner: nondanee
- License: mit
- Created: 2018-10-28T09:41:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-28T17:45:23.000Z (over 7 years ago)
- Last Synced: 2025-03-01T15:43:56.933Z (over 1 year ago)
- Topics: nginx
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nginx Plain Index (not module)
Vanilla JS + plain CSS + Node.js (0 Dependences)
不想自编译,又想定制目录页,应该怎么办呢 😶
## 预览

## 特性
- 目录页美化
- 拖拽上传
- 自实现 multipart/form-data 处理
## 原理
- 使用 nginx 自带 `auth_basic` 认证身份(base64太危险了,建议上 https)
- 借助 `autoindex_format json` 实现,SPA 前端交互,hash router 保留状态
- 上传文件由反代后端处理,查 authorization header 确定身份
## 相关
- UI偷师自 [barrowclift/directory-theme](https://github.com/barrowclift/directory-theme)
- 自己的毕设 [nondanee/dropbox](https://github.com/nondanee/dropbox)
## 许可
The MIT License