Skip to content

A simple proof-of-concept for a custom back end to use with tinfoil. It utilizes rclone to download from a google drive that has encrypted files safed on it.

License

Notifications You must be signed in to change notification settings

kloklojul/switch-encrypted-backend-with-rclone

Repository files navigation

Switch Encrypted File Downloader For Tinfoil

A simple proof-of-concept for a custom back end to use with tinfoil. It utilizes rclone to download from a google drive that has encrypted files safed on it.

Requirements

  • php
  • composer
  • a configured rclone (it is strongly recommended to encrypt your files on the google drive with rclone for security reasons)
  • a webserver

Install the Application

For deployment use your favorite web server.

  • Use composer to install all necessary dependencies.
cd /path/to/project
composer install
  • Next create a mysql/mariadb DB and load the game_list.sql into the freshly created database.

  • Everything you need to configure for the project to work can be found in app/config.php.

  • to reduce the number of requests to the google drive the database needs to be filled with directory structure of the drive. You can try to use the rcloneToSQLMigrator. To use the migrator send a post request to domain.com with

'key':'the_key_set_in_the_config'

This should fill the database with the necessary information. If not you will need to write a custom script to migrate your drive to the Database.

In Tinfoil add domain.com/all as your host

Common Errors

rclone failes to read or write to its config file

Make sure to set all necessary permissions for your webserver user





To-Do

- currently doesn't work with japanese/chinese character

DO NOT USE THIS FOR PRODUCTION this is just a POC

About

A simple proof-of-concept for a custom back end to use with tinfoil. It utilizes rclone to download from a google drive that has encrypted files safed on it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages