8000 GitHub · Where software is built
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
using default_scheduler_url as a mounting point (not root http://address/mount) behind proxy not working #3213
Closed
@franckOL

Description

@franckOL

I need to mount luigi behind a nginx, for example luigi at http://address/mount.
For that I configure:

[core]
default_scheduler_url=http://address/mount
....

GUI is ok and works but, CLI not due to url resolution. it happens there

def _urljoin(base, url):

To understand what happened:

parsed=urlparse('http://address/mount')
url='/api/add_task'
urljoin(parsed.geturl(), url)
# ==> give 'http://address/api/add_task'
# expected http://address/mount/api/add_task

What I must do for working - slash at the end of mount point, no slash for url -:

parsed=urlparse('http://address/mount/')
url='api/add_task'
urljoin(parsed.geturl(), url)
# ==> http://address/mount/api/add_task

Metadata

Metadata

Assignees

No one assigned

    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

      0