This is a fork of yanzai's goindex translated into English.
This is a modified version of goindex which adds multi-disk support, search, and incremental loading to the original goindex
index.js
contains the code needed for Workers.
Demo: https://yanzai-goindex.java.workers.dev
-
Added Basic Auth Authentication with individually configurable username and password for each disk to protect all subfiles and subfolders on that disk.
-
Support for custom theme colors, dark_mode added ; can be configured in
uiConfig
. -
The .password authentication method of the original goindex remains as a back-up authentication method, but isn't enabled by default.
See the comments on the config in
index.js
.
- Added support for opening nPlayer / MXPlayer Free / MXPlayer Pro / PotPlayer / VLC for playback and copying of direct links.
- Simple PDF Preview Support
- You can configure whether or not to allow other web frontends to fetch files with CORS.
- flac file play support
- Added search function, incremental loading in search results, and support for opening the corresponding path
- Search function supports personal and team search.
- Search page loading is configurable, see
index.js
- Tried to solve the incremental loading issue when scrolling to the bottom on mobile
- UI optimization, disk selection changed to drop-down box display
- Added incremental loading in file list, supports custom page size, multi-page content can be cached, see
index.js
- Photo Gallery Previous/Next Navigation
- Optimized listing speed
Modified from the original:
- Added multi-disk support, you can set mulitple disks to be displayed and the respective passwords.
- Only material is modified at the front end, so classic theme is not supported.
- See
index.js
comments for configuration
The following is an excerpt from the deployment instructions of the original goindex:
material: https://index.gd.workers.dev/
classic: https://indexc.gd.workers.dev/
1.Install rclone
software locally
2.Follow https://rclone.org/drive/ bind a drive
3.Execute the commandrclone config file
to find the file rclone.conf
path
4.Open rclone.conf
,find the configuration root_folder_id
and refresh_token
5.Download index.js in https://github.com/donwa/goindex and fill in root and refresh_token
6.Deploy the code to Cloudflare Workers
1.Open https://installen.gd.workers.dev/
2.Auth and get the code
3.Deploy the code to Cloudflare Workers
Cloudflare Workers allow you to write JavaScript which runs on all of Cloudflare's 150+ global data centers.