jusito / docker-ttt

GMOD TTT server image
https://hub.docker.com/r/jusito/docker-ttt
MIT License
21 stars 10 forks source link

setting SERVER_ADDITIONAL_PARAMETERS has no effect #17

Closed lucas2350d closed 1 year ago

lucas2350d commented 1 year ago

Hey justito, i need the -allowlocalhttp flag for a Discord Muter. At the startup im set the ENV var like this:
-e SERVER_ADDITIONAL_PARAMETERS="-disableluarefresh -allowlocalhttp" \ is it possible to see if that worked? I have a problem with the Discord Muter that points to it

Thanks!

jusito commented 1 year ago
  1. its set in https://github.com/jusito/docker-ttt/blob/master/gmod/common.cfg#L29
  2. which is used here: https://github.com/jusito/docker-ttt/blob/master/gmod/common.cfg#L39
  3. So I would expect: docker exec -it CONTAINER details should show all startup arguments, including your args.
lucas2350d commented 1 year ago

Im set it in the ENV var in Portainer but in the docker details it isnt shown image

image

jusito commented 1 year ago

got it image

Upstream changed startparameter handling, initial it was a function now its a variable. Lgsm config works by providing a _default.cfg and I added a slightly modified common.cfg for environment variables to config. Every value in common.cfg will overwrite _default.cfg, but because of the change I didn't overwrite it. If you dont build it yourself docker hub will take its time, looks fixed for me:

image

lucas2350d commented 1 year ago

Thanks!