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

nsqadmin: static files #1106

Closed
nanom1t opened this issue Nov 18, 2018 · 3 comments
Closed

nsqadmin: static files #1106

nanom1t opened this issue Nov 18, 2018 · 3 comments
Labels

Comments

@nanom1t
Copy link

nanom1t commented Nov 18, 2018

Hi.

How can I install nsqadmin correctly?

There is no any information about it in documentation. I've started nsqadmin process and specified the path to config file:

log-level = "info"
http_address = "127.0.0.1:4171"
graphite_url = ""
proxy_graphite = false
statsd_prefix = "nsq.%s"
statsd_counter_format = "stats.counters.%s.count"
statsd_gauge_format = "stats.gauges.%s"
statsd_interval = "60s"
notification_http_endpoint = ""

## nsqlookupd HTTP addresses
nsqlookupd_http_addresses = [
        "127.0.0.1:4161"
]

nsqadmin is located behind Nginx web server, so I'm just proxy requests to nsqadmin:

location ^~ /nsq {
        proxy_pass_header Server;
        proxy_set_header Host $http_host;
        proxy_redirect off;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Scheme $scheme;
        proxy_pass http://127.0.0.1:4171/;
}

Also I tried to manually build static files and put then into static directory in my website root folder. After that static files started to load, but I get next error in browser console:

app_state.js:17 Uncaught ReferenceError: BASE_PATH is not defined
    at n.defaults (app_state.js:17)
    at Function.d.result (vendor.js:1)
    at n.u.Model (vendor.js:1)
    at new n (vendor.js:1)
    at Object.34.backbone (app_state.js:46)
    at c (_prelude.js:1)
    at _prelude.js:1
    at Object.44../app_state (router.js:3)
    at c (_prelude.js:1)
    at _prelude.js:1

Why so difficult? How to specify the path to static files(there is no any info in documentation)?

Also it would be awesome to create separate deb/rpm package for linux system and put it somewhere (for example, packagecloud.io).

Thanks

@nanom1t
Copy link
Author

nanom1t commented Nov 19, 2018

@jehiah @mreiferson Could you please help?

@mreiferson
Copy link
Member

You need the --base-path flag added in #856.

We have not yet issued an official release that includes this feature.

To compile nsqadmin yourself, refer to the README.

@mreiferson mreiferson changed the title nsqadmin static files nsqadmin: static files Nov 19, 2018
@nanom1t
Copy link
Author

nanom1t commented Nov 19, 2018

Ok. When the official release with this feature will be published?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants