Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't change localaddress or add new values with environment variables #9

Open
DillonHansen71 opened this issue May 18, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@DillonHansen71
Copy link

DillonHansen71 commented May 18, 2022

Hi, I'm attempting to change the localaddress value with the use of environment variables. For example.
Environment variable

  • name: TES3MP_SERVER_LOCAL_ADDRESS
    value: 192.168.1.59
    OR
  • name: TES3MP_SERVER_LOCAL_ADDRESS
    value: "192.168.1.59"
    OR
  • name: TES3MP_SERVER_LOCAL_ADDRESS
    value: '192.168.1.59'

Will not change the default value from 0.0.0.0.

I also noticed that I cant add new values to the tes3mp-server-config.cfg file with environment variables. For example.

  • name: TES3MP_SERVER_DESTINATION_ADDRESS
    value: 192.168.1.59
    When I exec into the container I dont see the destinationAddress value added
@DillonHansen71 DillonHansen71 changed the title Can't change localaddress value with environment variables Can't change localaddress or add new values with environment variables May 18, 2022
@GrimKriegor
Copy link
Member

Hello there.

Indeed, the current method for applying the values from environment variables to the config file is extremely primitive.

It simply goes thru all environment variables prefixed by TES3MP_SERVER_ and finds the first match on the config file, regardless of scope.

It would be great to find some simple tool that can actually parse ini properly.

Like jq for json.

@GrimKriegor GrimKriegor added the enhancement New feature or request label May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants