Ark-Survival-Ascended-Server icon indicating copy to clipboard operation
Ark-Survival-Ascended-Server copied to clipboard

Added server settings configuration using environment variables.

Open loginator opened this issue 1 year ago • 4 comments

This PR allows users to generate their ini files using environment variables. A small C# tool was added to parse ini files and and set the values inside of them to the set environment variables. I also added a gitignore file to prevent uploading build files and the default volumes.

The readme was changed to help users use the new system.

Dockerfile was updated to build the IniGenerator tool and add it to the main container.

I hope that this is something you are also appreciating and is not going into the wrong direction with the project. If there are any questions drop a quick comment and I'll try to answer as quick as possible.

loginator avatar Nov 09 '23 12:11 loginator

Environment variables can be set as follows: ASAINI_FileName__SectionName__SettingName=Value So if you want floating damage numbers you could just set them in the docker compose file using:

- ASAINI_GameUserSettings__ServerSettings__ShowFloatingDamageText=True

loginator avatar Nov 09 '23 12:11 loginator

This is a very important PR for the flexibility of that ASA container. I want to get rid of manually editing INI files. Please proceed asap!

rediculum avatar Dec 28 '23 19:12 rediculum

@Acekorneya shall I resolve the outstanding conflicts? Or is this not the way that is desired we could also go with a small file and add dotnet to the dependencies of the docker image if that'd be better?

loginator avatar Dec 28 '23 19:12 loginator

Do you know how to resolve the current problem of some user having permission issues when they run this docker image under a root user

Acekorneya avatar Dec 28 '23 21:12 Acekorneya