Open source OneDrive directory indexing program-OLAINDEX

888u

Last update at :2024-02-05,Edit by888u

Project address

https://github.com/WangNingkai/OLAINDEX

Introduction

  • OneDrive Directory Index;
  • Built based on the latest PHP framework laravel5;
  • Based on bootswatch responsive page layout, suitable for PC, tablet and mobile phone;

Function

  • OneDrive Directory Index;
  • Real-time preview of code, pictures, and files;
  • One-click copy and download of files;
  • Basic background management, supporting themes, preview settings, etc. (will take effect immediately after clearing the cache);
  • Encrypted folder access (requires login management);
  • Picture bed function (not stable and low in mainland China);
  • Background file upload.

Demo

https://dev.ningkai.wang

Simple installation tutorial

1. Environment preparation

  • PHP >= 7.1.3
  • OpenSSL PHP
  • PHP PDO extension
  • PHP Mbstring extension
  • PHP Tokenizer extension
  • PHP XML extension
  • PHP Ctype extension
  • PHP JSON extension

The original author recommends using oneinstack to install the PHP environment. The script is as follows:

wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz && tar xzf oneinstack-full.tar.gz && ./oneinstack/install.sh --nginx_option 1 --php_option 7 --phpcache_option 1 -- reboot

Note: Laravel program installation requires enabling and disabling two methods. The steps are as follows: oneinstack php installation path /usr/local/php/etc/php.ini

  • 1. Enter the php.ini file, find disable_function=, and delete the proc_open function.
  • 2. Enter the php.ini file, find disable_function=, and delete the proc_get_status function.
  • 3. sudo service php-fpm restart # Restart the php process

In addition, using composer package management requires downloading composer and processing it globally. The steps are as follows:

  • 1. curl -sS https://getcomposer.org/installer | php
  • 2. mv /tmp/composer.phar /usr/local/bin/composer
  • 3. composer config -g repo.packagist composer https://packagist.laravel-china.org # Change the source to the Chinese mainland source. Foreign servers can ignore this step

2. Program installation

The installation script is as follows:

git clone https://github.com/WangNingkai/OLAINDEX.git tmp mv tmp/.git . rm -rf tmp git reset --hard composer install -vvv # Make sure composer is installed successfully here cp .env.example .env php artisan key:generate touch database/database.sqlite # The sqlite database demonstrated here (strongly recommended to facilitate data migration) php artisan migrate # You must first create the database and fill in the database configuration before performing the following operations php artisan db:seed chmod -R 755 storage/ chown -R www:www *

3. Apply for a key

When installing for the first time, you need to fill in the relevant configuration files and apply for client_id and client_secret

Application address: https://apps.dev.microsoft. com/

After the application is completed, there is a callback address redirect_uri. Be careful not to fill it in incorrectly!

Please write https://you.domain/oauth for redirect_uri. Please keep the api configuration and project env configuration consistent.

After obtaining it, please fill it in the .env file.

GRAPH_CLIENT_ID=xxx GRAPH_CLIENT_SECRET="xxx" GRAPH_REDIRECT_URI=https://xxx

4. Database configuration

The database can use mysql or sqlite, etc. It is recommended to use sqlite to facilitate migration.

mysql refer to laravel document configuration

sqlite: Create a new database.sqlite file in the database directory

Please note if you are not familiar with laravel, if you want sqlite, please create it in the database in the directory

Or execute it directly in the root directory

touch database/database.sqlite

In the .env file, delete other database configurations and just fill in the following:

DB_CONNECTION=sqlite

5. Other operation commands

  • Backend password: 12345678
  • You can also use the command line tool php artisan reset:password to generate an 8-digit password

Recommended site searches: US host network, independent IP space, registration query Ministry of Industry and Information Technology, US free virtual host, US host purchase, domain name information query, mainland China domain name, mobile server hosting, expired registration domain name query, free IP proxy server,

Open source OneDrive directory indexing program-OLAINDEX

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码