Skip to content

Problems with access to the dashboard behind Nginx reverse proxy with path in location #162

Description

@symonsoft

Access to the dashboard through Nginx with path in localtion demands ugly excessive settings for the path substitution in response. That happens because absolute paths are used in all statics in mrq-dashboard.

Here is settings of my workaround:

    location /dashboard/ {
        proxy_pass http://localhost:5555/;

        sub_filter '"/static/' '"/dashboard/static/';
        sub_filter '"/workers' '"workers';
        sub_filter '"/api' '"api';
        sub_filter '"/#' '"#';
        sub_filter '\'/#' '\'#';

        sub_filter_once off;
        sub_filter_types text/html application/javascript;
    }

But I'm afraid that with version changes it could become broken. So, it would be great if mrq-dasboard statics start to work with relative paths.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions