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

Dynamic host #19

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

imadjamil
Copy link

I found tabloo useful but wanted to acceess it from another device in my local network. I succeeded to do that by hardcoding the IP address of the PC where tabloo show is running in two different files !

Then I wondered how much effort it needs to make the host configuration dynamic.
This PR puts the first brick by making server host a parameter in the backend python src which is not enough for sure.
Some work is also needed in the store_backend to make the redirection url dynamic and since I am not an expert there I prefered to publish this change and hope someone speeds the process with some help.

@@ -13,7 +13,8 @@ function transformValue(x: any): any {
}

export class StoreBackend implements StoreInterface {
url = "http://localhost:5000";
// TODO: this needs to be dynamic
url = "http://127.0.0.1:5000"
Copy link
Author

Choose a reason for hiding this comment

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

This needs to be dynamic in some way. Could we guess the address of the local device on startup? or we're obliged to get it from some sort of config?

@imadjamil imadjamil changed the title Dev/dynamic host Dynamic host Jul 6, 2022
@bluenote10
Copy link
Owner

Hi @imadjamil and thanks for your interest in tabloo!

I think the backend side can be solved simply by binding to 0.0.0.0. Then the only question how to communicate it to the frontend. This should be possible via query params.

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

Successfully merging this pull request may close these issues.

2 participants