ertagh / teamspeak3-server-arm

150 stars 11 forks source link

Modyfing default_voice_port #41

Closed jrtderonde closed 1 year ago

jrtderonde commented 1 year ago

Hi,

I'm trying to host a ts3 server on a port different than 9987. I've built a docker image that has the INIFILE=1 env set. If I modify the ts3server.ini file, however, the server still starts using port 9987.

Any ideas?

jrtderonde commented 1 year ago

Statup log:

2023-06-25 08:33:04.747863|INFO    |              |   |Puzzle precompute time: 20379
2023-06-25 08:33:04.756549|INFO    |FileManager   |   |listening on 0.0.0.0:30035
2023-06-25 08:33:04.797781|INFO    |Query         |   |Using a query thread pool size of 2
2023-06-25 08:33:05.410984|INFO    |VirtualServerBase|1  |listening on 0.0.0.0:9987
2023-06-25 08:33:05.419727|INFO    |Query         |   |listening for query on 0.0.0.0:10013, [::]:10013
2023-06-25 08:33:05.428363|INFO    |              |   |creating QUERY_SSH_RSA_HOST_KEY file: ssh_host_rsa_key
2023-06-25 08:33:40.675752|INFO    |Query         |   |listening for ssh query on 0.0.0.0:10022, [::]:10022
2023-06-25 08:33:40.676445|INFO    |Query         |   |listening for http query on 0.0.0.0:10080, [::]:10080
2023-06-25 09:26:29.563064|INFO    |ServerMain    |   |Received signal SIGTERM, shutting down.
2023-06-25 09:26:29.579632|INFO    |VirtualServerBase|1  |stopped

Inifile

machine_id=
default_voice_port=9990
voice_ip=0.0.0.0
licensepath=
filetransfer_port=30035
filetransfer_ip=0.0.0.0
query_port=10013
query_ip=0.0.0.0, ::
query_ip_allowlist=query_ip_allowlist.txt|query_ip_whitelist.txt
query_ip_denylist=query_ip_denylist.txt|query_ip_blacklist.txt
dbplugin=ts3db_sqlite3
dbpluginparameter=
dbsqlpath=sql/
dbsqlcreatepath=create_sqlite/
dbconnections=10
logpath=logs
logquerycommands=0
dbclientkeepdays=30
logappend=0
query_skipbruteforcecheck=0
query_buffer_mb=20
http_proxy=
license_accepted=0
serverquerydocs_path=serverquerydocs/
query_ssh_ip=0.0.0.0, ::
query_ssh_port=10022
query_protocols=raw,http,ssh
query_ssh_rsa_host_key=ssh_host_rsa_key
query_timeout=300
query_http_ip=0.0.0.0, ::
query_http_port=10080
query_https_ip=0.0.0.0, ::
query_https_port=10443
query_pool_size=2
mmdbpath=
logquerytiminginterval=0
ertagh commented 1 year ago

Hi,

well the "Docker way of doing it" would be actually a different approach.

Instead of actually changing the voice port of Teamspeak you would rather change the mapping of the ports.

Simple example if you are using the default run command you would change -p 9987:9987/udp to -p 9990:9987/udp. So Teamspeak would listen inside the container on port 9987 but it is mapped to port 9990 on the host machine.

Greetings