Myster-Tee / TinfoilWebServer

Install your packages from your own server
GNU General Public License v3.0
123 stars 26 forks source link

externa file for users #10

Closed r3nfolly closed 1 year ago

r3nfolly commented 1 year ago

Hello Myster.

Is it possible to have the user's session on an external file? .csv or any other format?

Thanks

matrixjaen18 commented 1 year ago

I have the same question, I would like to know how to add a list of users from a file and have the program update them without having to restart

matrixjaen18 commented 1 year ago

I have not been able to modify the code to load users from outside but I have found another solution that is not bad either, I have created a script that reads the users from a text file and then creates the TinfoilWebServer.config.json file with the updated list of users, it also shows you the total number of allowed users and scans the list every 10 minutes to update. I can pass the code if the creator agrees

r3nfolly commented 1 year ago

Myster, pleaseeeee, allow matrixjaen to update this for us. pleaseeeeeeeeeeeeeeeeeee

CodeHedge commented 1 year ago

I made a python script that modifies the config.JSON. It adds users to the config and the application already adds them without a restart. Even shows up in the logs as it runs.

r3nfolly commented 1 year ago

Hey Myster, please, don't forget about us.

Thanks

Myster-Tee commented 1 year ago

What is exactly the point here ? You want a separate file for declaring allowed users, instead of everything in the TinfoilWebServer.config.json ?

r3nfolly commented 1 year ago

Yes, have an external file for more users, to be easier to modify, like a .csv or xls maybe, I don't know if is possible. If the WebServer config can read the file every few minutes.

Myster-Tee commented 1 year ago

I propose the following solution, would it be ok for you?

Myster-Tee commented 1 year ago

1.6.0 should do the trick for you.