Howdy, in the pursuit of being able to self host Noita Together, I have setup a system by which the nt-app can save app settings to a JSON file.
I noticed PR #167 which would allow one to setup their own backend and auth server, and the settings I have implemented so far are for adding and managing Server "profiles".
Before the user is logged in, there is a cog in the bottom right that opens an App Settings modal where you can view the default server profile and add a new one if you want. Once logged in the cog goes away. The default server profile pulls from your environment variables.
The Cog:
Once you click the plus you can enter your server config:
Using this addition I able to setup the default profile (the environment variables) with default noita together server URLs and a second profile connecting to a locally hosted backend server. And I can swap back and forth by restarting (returning to the un-logged in state).
Howdy, in the pursuit of being able to self host Noita Together, I have setup a system by which the nt-app can save app settings to a JSON file.
I noticed PR #167 which would allow one to setup their own backend and auth server, and the settings I have implemented so far are for adding and managing Server "profiles".
Before the user is logged in, there is a cog in the bottom right that opens an App Settings modal where you can view the default server profile and add a new one if you want. Once logged in the cog goes away. The default server profile pulls from your environment variables.
The Cog:![image](https://github.com/Noita-Together/noita-together/assets/21179466/739c38e4-48e1-4daa-a637-c88ae9b5026a)
Once you click the plus you can enter your server config:![image](https://github.com/Noita-Together/noita-together/assets/21179466/6fda529b-d7ff-42a8-bc4d-40c976397df0)
Using this addition I able to setup the default profile (the environment variables) with default noita together server URLs and a second profile connecting to a locally hosted backend server. And I can swap back and forth by restarting (returning to the un-logged in state).