Myster-Tee / TinfoilWebServer

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

Docker, move config directory #18

Closed Corgano closed 10 months ago

Corgano commented 11 months ago

I found the instructions to load tinfoilwebserver in docker, and it works, but the config files are in the app root directory and are hard to access. Any way to move them to somewhere more accessible EX parent folder of the games folder?

Myster-Tee commented 11 months ago

What if I support a command line option for specifying the config file ? Example:

TinfoilWebServer.exe --config "some config file path.json"

Would it be ok for you?

Corgano commented 11 months ago

I'm not sure how that would work in docker. I don't know how command line arguments work when running docker apps. If you can get this to work then great, just make sure to update the docs so I can give it a try.

What I know works and seems to be the norm, is having a separate config folder, and then mapping it as a volume to somewhere writable. For instance mapping /host -> /mnt/switch/!Main works great. If I could also map /config -> /mnt/switch/shop config then I'd be set. Then all the configs could be placed /loaded from the /config folder

On Sat, Oct 14, 2023, 8:19 a.m. Myster-Tee @.***> wrote:

I suggest adding a command line option for specifying the config file; example:

TinfoilWebServer.exe --config "some config file path.json"

Would it be ok for you?

— Reply to this email directly, view it on GitHub https://github.com/Myster-Tee/TinfoilWebServer/issues/18#issuecomment-1762928141, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGSARMWIGQQYBSHRCFHW63X7KNPBANCNFSM6AAAAAA56UOC5I . You are receiving this because you authored the thread.Message ID: @.***>

Corgano commented 10 months ago

Any updates on this?

Myster-Tee commented 10 months ago

I just released v1.6.0 try it and let me know if it is fine for you.

Corgano commented 10 months ago

Does this let you specify a file name, or just the directory? Ex if I run 3 instances would I need to have a configs folder with 3 separate directories one for each instance, or can I have the configs folder with 3 different filenames one for each instance?

On Sun, Nov 12, 2023, 2:38 p.m. Myster-Tee @.***> wrote:

I just released v1.6.0 try it and let me know if it is fine for you.

— Reply to this email directly, view it on GitHub https://github.com/Myster-Tee/TinfoilWebServer/issues/18#issuecomment-1807247638, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGSARPBO4K2M4LKIMIZ4GDYEE6XFAVCNFSM6AAAAAA56UOC5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBXGI2DONRTHA . You are receiving this because you authored the thread.Message ID: @.***>

Sevyn13 commented 3 months ago

I found the instructions to load tinfoilwebserver in docker, and it works, but the config files are in the app root directory and are hard to access. Any way to move them to somewhere more accessible EX parent folder of the games folder?

Could you share where you found the guide to run it in Docker?