Myster-Tee / TinfoilWebServer

Install your packages from your own server
GNU General Public License v3.0
123 stars 26 forks source link

Issue using extra repositories feature #20

Closed CodeHedge closed 10 months ago

CodeHedge commented 1 year ago

"ExtraRepositories": string[], // A set of extra repositories sent to Tinfoil for scanning (see https://blawar.github.io/tinfoil/custom_index/ for more information)

So, I read the documentation on https://blawar.github.io/tinfoil/custom_index/ and i'm still not entirely sure what to place in this field. Ultimately i would like to utilize the gdrive options in the custom_index documentation

in "ExtraRepositories", do i place the path to a CustomIndex.tfl? Is it just a path to another directory contains files? I don't see where in the blawar.github it says how to specify anything without creating a custom tfl file.

Myster-Tee commented 1 year ago

Actually "ExtraRepositories" is mapped to the "directories" property documented in "Basic Format" section of official doc here.

CodeHedge commented 1 year ago

Ahhh I see. So would that mean gdrive isn't supported? Can I just add url links to files to that instead?

Myster-Tee commented 1 year ago

I don't really understand what you want, the goal of TinfoilWebServer is to serve local server files over the network (LAN or WAN), but gdrive is not local to the server. So what do you want? Do you want to mix local files and gdrive files ? You want to serve only gdrive files? Other ?

CodeHedge commented 1 year ago

Exactly, I want to use both local files and Gdrive files. Looking at the tinfoil custom index setup info, and there is a way to link Gdrive files in the shop.tfl. My upload from my home when I'm working remotely is pretty slow. But I have a large Gdrive storage and their upload is ideal when I'm a WAN client.

https://github.com/Myster-Tee/TinfoilWebServer/issues/14 Looks like this is a similar request.

imageimage

CodeHedge commented 1 year ago

I was able to get the Gdrive files working on a custom tfl file I made. I can share the structure of a valid entry if needed. I wouldn't know how to implement it into your code though.

Myster-Tee commented 1 year ago

Good news. I'm actually drafting a new version which would allow to specfiy any JSON properties from Tinfoil custom index documentation. It would be nice if you can share your structure so that I ensure my new design will fit your need. ;)

Myster-Tee commented 10 months ago

The new v2.0.0 integrates a new setting called CustomIndexPath which should help you to do what you want.