-
Notifications
You must be signed in to change notification settings - Fork 13
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
base: master
Are you sure you want to change the base?
Dynamic host #19
Conversation
Allow access from other ip terminals
Configure Flask dev server to be visible across the network
…uenote10-master
src_frontend/store_backend.ts
Outdated
@@ -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" |
There was a problem hiding this comment.
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?
Hi @imadjamil and thanks for your interest in tabloo! I think the backend side can be solved simply by binding to |
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.