You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What would you like to achieve?
I'd like to have a configuration file for a Lively application. AFAICT, currently remote URLs must be hardcoded into Lively pages. The specific use case that I have is that I have a server which is going to deploy a couple of Lively pages and a bunch of other stuff. The Lively page must call back to the server to store/publish user dashboards. The issue is that I want a separate server per customer, and the server is going to store stuff appropriately for the customer. So the Lively page will have to make a request to https://<my-customer-url>/publish. ATM, I'm hardcoding the URL and a secret into $world.execCommand("open browser", {moduleName: "undefined", packageName: "engageLively--galyleo-dashboard", codeEntity: "secret"}); which is obviously (a) insecure; and (b) requires a recompile for each customer. I went into the frozen-file directory to find out where the code was, and it was in a compiled file. Now, I could do some post-compilation sed scripts on this file, but this seems pretty kludgy.
How are you trying to achieve that
Frankly, the way to achieve this seems pretty easy to me: just have a local_settings.js file which is loaded on a per-deployment basis. Where to put this with respect to the compiled files will have to be well-documented.
Alternative solutions
If applicable, what other solutions have you tried?
Additional Resources
Please provide links to any custom code that might be necessary to grasp your problem. Screenshots of custom component, etc. are also appreciated.
What would you like to achieve?
I'd like to have a configuration file for a Lively application. AFAICT, currently remote URLs must be hardcoded into Lively pages. The specific use case that I have is that I have a server which is going to deploy a couple of Lively pages and a bunch of other stuff. The Lively page must call back to the server to store/publish user dashboards. The issue is that I want a separate server per customer, and the server is going to store stuff appropriately for the customer. So the Lively page will have to make a request to
https://<my-customer-url>/publish
. ATM, I'm hardcoding the URL and a secret into$world.execCommand("open browser", {moduleName: "undefined", packageName: "engageLively--galyleo-dashboard", codeEntity: "secret"});
which is obviously (a) insecure; and (b) requires a recompile for each customer. I went into the frozen-file directory to find out where the code was, and it was in a compiled file. Now, I could do some post-compilation sed scripts on this file, but this seems pretty kludgy.How are you trying to achieve that
Frankly, the way to achieve this seems pretty easy to me: just have a
local_settings.js
file which is loaded on a per-deployment basis. Where to put this with respect to the compiled files will have to be well-documented.Alternative solutions
If applicable, what other solutions have you tried?
Additional Resources
Please provide links to any custom code that might be necessary to grasp your problem. Screenshots of custom component, etc. are also appreciated.
Version:
154aad1
The text was updated successfully, but these errors were encountered: