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

Rename environment variable the notebook plugin uses to talk to nbexchange #26

Open
agxs opened this issue Aug 21, 2020 · 4 comments
Open
Labels
good first issue Good for newcomers

Comments

@agxs
Copy link
Member

agxs commented Aug 21, 2020

The notebook plugin uses an environment variable called NAAS_BASE_URL and defaults to https://noteable.edina.ac.uk. This isn't appropriate for a shared plugin as its a bit too Noteable specific, and it's not accurate really.

This variable should be renamed to NBEXCHANGE_BASE_URL and default to http://nbexchange:9000. This is a more accurate name for what the variable is used for.

We need to sync up the noteable-api when this env variable name changes as it's currently passed to notebooks.

@agxs agxs added the good first issue Good for newcomers label Aug 21, 2020
@perllaghu
Copy link
Collaborator

This appears to have been done:

  • The api is using NBEXCHANGE_URL = os.environ.get("NBEXCHANGE_URL", "http://nbexchange:9000")
  • The exchange is using self.http_server.listen(self.port, address=self.ip)

@cablesky
Copy link

How is the solution?

@ykazakov
Copy link

Has this really been addressed? I see only the variable NAAS_BASE_URL and the default value https://noteable.edina.ac.uk:

base_service_url = Unicode(os.environ.get("NAAS_BASE_URL", "https://noteable.edina.ac.uk")).tag(config=True)

@perllaghu
Copy link
Collaborator

Has this really been addressed? I see only the variable NAAS_BASE_URL and the default value https://noteable.edina.ac.uk:

base_service_url = Unicode(os.environ.get("NAAS_BASE_URL", "https://noteable.edina.ac.uk")).tag(config=True)

I'm looking at the exchange shortly, and will try and find out what's actually in use.... and make sure the docs match reality

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

No branches or pull requests

4 participants