Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let local server send files, not only redirects #87

Open
poeml opened this issue Jun 5, 2015 · 0 comments
Open

Let local server send files, not only redirects #87

poeml opened this issue Jun 5, 2015 · 0 comments

Comments

@poeml
Copy link
Owner

poeml commented Jun 5, 2015

                                                                               [          ]

Issue migrated (2015-06-05) from old issue tracker http://mirrorbrain.org/issues/issue87

Title    Let local server send files, not only redirects
 Priority   wish      Status    chatting
Superseder          Nosy List   poeml, wildintellect
Assigned To poeml    Keywords

msg332 (view) Author: poeml Date: 2011-03-21.22:07:33

It would be useful to use the local server (the MirrorBrain host) not only for
redirects, but also to send files, effectively turning it into a mirror.

That's currently only possible by adding a separate vhost, which needs to be
scanned like any other mirror.

Here's an idea for a feature that would make it easier:

The local host could be listed in the mirror database like any other mirror. An
identifier would be chosen that enables MirrorBrain to recognize that this
"mirror" is actually itself. Either a "magic" identifier like 'direct-delivery'
would convey this meaning, or an Apache directive "MirrorBrainLocalIdentifier"
could specify this.
Then, MirrorBrain would read the needed geographical/network data from the
mirror database like for any other mirror. During mirror selection, the mirror
would be considered as usual. When it's chosen, MirrorBrain just needs to send
the file instead of replying with a redirect.

Seems to be easy to implement to me; and potentially very useful. The local
mirror could be fully configurable and the mirror selection mechanism would
cover all the little features like network locality, priorities and so on.

History
         Date             User      Action         Args
2011-03-21 22:13:55 wildintellect set    nosy: + wildintellect
2011-03-21 22:07:34 poeml         create

(end of migrated issue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant