Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Categories
Special pages
All pages
Search
Search
Appearance
Log in
Personal tools
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
GunCAD Mirror
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[File:GunCAD Mirror Logo.png|thumb|The GunCAD Mirror logo]] '''GunCAD Mirror''' is a seedbox application that you can run to mirror all content on the [[GunCAD Index]] over the [[LBRY]] network. It lets you contribute resiliency in the event that [[Odysee]] becomes unavailable. You can find it on GitLab: https://gitlab.com/guncad-index/mirror; See [https://gitlab.com/guncad-index/mirror the README in the repository] for details on deployment and configuration. Note: this documentation will reference some of the inner workings of LBRY, and may contain a lot of jargon. = What is it, exactly? = == The short version == GunCAD Mirror is '''a seedbox'''. You download a bunch of shit based on what the Index knows is available and seed it back up to anyone [[Accessing Content over LBRY|downloading via '''LBRY Desktop''']] or '''lbrynet''' (i.e. other GunCAD Mirror instances). You will need at least as much space as is listed on the frontpage of the website. == The longer version == GunCAD Mirror is an application that: * Reaches out to the API of a remote GunCAD Index instance; * Parses all releases (or a subset if your configured API URL has search query parameters); * Instructs a local [https://github.com/lbryio/lbry-sdk lbrynet] instance to fetch the files; and * Depending on certain configuration variables, can construct these files for offline browsing and offer a simple web dashboard = Functionality = == Assembling Files == If <code>MIRROR_ASSEMBLE_FILES</code> is set, GunCAD Mirror will take the blobs it downloads and patch them up into usable files. This lets you maintain a personal usable archive in addition to seeding the content back up. The drawback is that this is '''not''' how lbrynet likes to store objects, so it's 100% redundant data. Thus, '''turning this feature on doubles your disk usage'''(*). (It doesn't strictly double your disk usage -- there are factors that influence how efficient blob storage is, so it'll be slightly more or less than that -- but it may as well be) == LBRY-Only Fallback Mode == In the event that the GunCAD Index can't be accessed, GunCAD Mirror will recognize the situation and fall back to scouring the blockchain itself for GunCAD content. One of the following two conditions must bet met for this to trigger: * We encountered an error (timeout, name resolution failure, whatever) from <code>requests</code> when we attempted to query the API endpoint specified in <code>MIRROR_API_ENDPOINT</code>; or * Our query succeeded, but the API returned no releases (we interpret this as website malfunction) In the event this happens, Mirror will perform a channel claim search for any channels that have a specific set of tags (like <code>guncad</code>, <code>fosscad</code>, <code>3d2a</code>, etc.) and mirror all of their releases that aren't images or videos. It's not perfect -- and no fallback solution will be -- but it works well. This should catch ''most'' creators that have wound up on the Index. = FAQ = See [https://gitlab.com/guncad-index/mirror the README in the repository] for answers frequently-asked questions. [[Category:GunCAD Index]]
Summary:
Please note that all contributions to GunCAD Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
GunCAD Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
GunCAD Mirror
Add topic