Setup mode #825
Replies: 8 comments
-
@ChrisSchinnerl @peterjan @alexfreska this is a feature I would like to discuss. We have this for the desktop apps, but configuring the apps on headless devices is still a friction point. |
Beta Was this translation helpful? Give feedback.
-
That's interesting. Do you want to spin up the regular UI or a special page only for settings and submitting the config after which it gets written to disk and the actual UI and hostd get spin up? |
Beta Was this translation helpful? Give feedback.
-
The way I understand: Pre setup:
Post setup:
Is this in line with your thinking? Do you both envision this is as only for first time config? Or could the user visit this page post setup and modify the config/trigger restart? |
Beta Was this translation helpful? Give feedback.
-
That’s pretty much exactly the workflow I envisioned. A one time API and setup flow that disappears after it’s complete and writes a yaml config to disk. The regular UI will be redirected to a setup page since the user can’t login. We could add a config endpoint to the regular API to update the YAML, but it should not expose the wallet seed. |
Beta Was this translation helpful? Give feedback.
-
Since serving the regular UI doesn't make sense during the setup stage, should we just serve the setup page on |
Beta Was this translation helpful? Give feedback.
-
@alexfreska would creating a distinct UI overcomplicate the UI packaging and build process? Having one external UI package is already a bit of a pain. |
Beta Was this translation helpful? Give feedback.
-
We can make the setup load on |
Beta Was this translation helpful? Give feedback.
-
IMO if you do this on |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If the user has not configured a seed or API password,
hostd
should enter a setup mode with a single endpoint that allows the user to configure the yaml file via the web UI instead of failing to start. After the user has completed the initial setup, hostd should start normally without needing to be restarted.Beta Was this translation helpful? Give feedback.
All reactions