BlueSquare23 / web-lgsm

A simple web interface for the Linux Game Server Manager (LGSM) written in Python3 using Flask.
MIT License
18 stars 3 forks source link

Add Features - Edit files #10

Closed thomasbonsirven closed 4 months ago

thomasbonsirven commented 4 months ago

Hello,

I was building a webpanel when I came across your github.

Well done, good job for this work.

I wanted to know if it was possible to set up a file editor for modifying the configuration of certain games. For example, the palworld game, it would be very interesting to be able to modify the Palworld/serverfiles/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini file. As well as modifying the ports or the game server launch command.

I'm ready to help you implement these functions

BlueSquare23 commented 4 months ago

Thank you for reaching out. This feature actually already exists! However, its disabled by default for security reasons (more info in docs). If you edit the main.conf file and then set cfg_editor to yes it will enable the config editor. For more info about the main.conf file options, please see the docs below! https://github.com/BlueSquare23/web-lgsm/blob/master/docs/config_options.md

I've gone ahead and added the PalWorldSettings.ini file name to the accepted_cfgs.json now in order to enable palword server cfg file discovery. Let me know if you have any other questions!

Added PalWorldSettings.ini: https://github.com/BlueSquare23/web-lgsm/commit/268378e7ad318d99ce6314f66b76832362c33e74

thomasbonsirven commented 4 months ago

WooW It's so effective, and so simple ! Good Job !