Skip to content

Proxy doesn't seem to work, gives 404 #302

Closed

Description

@dmitrizagidulin

To reproduce, launch ldnode locally, with a proxy parameter. Try to access an existing URL with that proxy. (Gives a 404).

Activity

  1. nicola commented on Mar 30, 2016

    @nicola
    Contributor

    How did you run ldnode?

  2. csarven commented on Mar 30, 2016

    @csarven
    Member

    I can confirm that running --proxy=/proxy works and --proxy=proxy doesn't.

  3. sandhawke commented on Mar 30, 2016

    @sandhawke
    Contributor

    @csarven I restarted databox2.com with that argument. Give it a try?

  4. nicola commented on Mar 30, 2016

    @nicola
    Contributor

    I will fix this so that the trailing / is not required

    On Mar 30, 2016, at 11:45 AM, Sandro Hawke notifications@github.com wrote:

    @csarven I restarted databox2.com with that argument. Give it a try?

    —
    You are receiving this because you commented.
    Reply to this email directly or view it on GitHub

  5. dmitrizagidulin commented on Mar 30, 2016

    @dmitrizagidulin
    ContributorAuthor

    Ah, ok, yeah, seems to work with the leading slash. Happy to close this issue.

  6. csarven commented on Mar 30, 2016

    @csarven
    Member

    Actually, I think it is good to have the leading slash since it gives a hint as to where it'll be available from. Perhaps the --help or documentation should be clear. We all missed this obvious case so lets take that as a hint to improve. eg:

    --proxy            Use a proxy on example.tld/proxyPath (eg '/proxyPath')
    

    One more step: use default /proxy when no value provided with --proxy

  7. nicola commented on Mar 31, 2016

    @nicola
    Contributor

    @csarven I think it would be a security issue if I start a proxy on your server by default, is the proxy a mandatory tool in solid?

  8. added a commit that references this issue on Mar 31, 2016
    2a29e04
  9. self-assigned this
    on Mar 31, 2016
  10. nicola commented on Mar 31, 2016

    @nicola
    Contributor

    Does #307 work?

  11. dmitrizagidulin commented on Mar 31, 2016

    @dmitrizagidulin
    ContributorAuthor

    @nicola - yep, #307 works for me.

    As for your other question, is proxy a mandatory tool in solid -- it is for the moment. I don't have any strong feelings about enabling it by default, though. Since clients use databox's proxy by default, it's probably fine either way.

  12. sandhawke commented on Mar 31, 2016

    @sandhawke
    Contributor

    Hardcoding any centralized server into the client is presumably a very-short-term workaround, and since that seems unnecessary here, I suggest by default proxy be on, unless there's a security risk. As long as ldnode has a clear warning never to run it behind a firewall, it should be fine, I think.

  13. added a commit that references this issue on Mar 31, 2016
    30563ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions