Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Add optional server variable #14

Merged
merged 3 commits into from
Dec 5, 2018
Merged

Conversation

LKaemmerling
Copy link
Contributor

This PR fixes #12

It is now possible to easily configure the server, which the dashboard connects to.

My setup is the following:
I have one server (the webserver) which is hosting the dashboard: dev.my.app
The socket server is running under ws-dev.my.app

Without this PR, the dashboard tries to conntect to dev.my.app because, in the connect section window.location.hostname is used. This behavior is after this pr still the same, except someone fills the new 'server' configuration variable. Then this value will be used.

Copy link
Member

@mpociot mpociot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!
Can you please adjust the code a little:
I think host would be a better fit for the property than server. Can you rename that?

And please remove the changes in the default configuration file. We will address this in the documentation, as it seems be a bit confusing to have a null value in the default configuration.

@LKaemmerling
Copy link
Contributor Author

Sure :) Changed to host and i removed the line from the default config file.

@mpociot mpociot merged commit f03acd1 into beyondcode:master Dec 5, 2018
@vesper8
Copy link

vesper8 commented Dec 23, 2018

@mpociot I needed to use this today and I noticed this remains undocumented in the docs.. I think it would be useful to add it.

I also think it would be useful to be able to set the port as part of the app config rather than having to remember which port which app is on and change it manually in the input box

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

Successfully merging this pull request may close these issues.

Dashboard not working when server under other URL
3 participants