Ark-Survival-Ascended-Server
Ark-Survival-Ascended-Server copied to clipboard
Added server settings configuration using environment variables.
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.
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
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!
@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?
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