feat(global): add server management webui
This commit is contained in:
BIN
AdminServ_v2.1.1.zip
Executable file
BIN
AdminServ_v2.1.1.zip
Executable file
Binary file not shown.
@@ -10,6 +10,12 @@ RUN unzip /opt/tmserver/TrackmaniaServer_2011-02-21.zip -d /opt/tmserver
|
||||
COPY custom_game_settings.txt /opt/tmserver/GameData/Tracks/MatchSettings/
|
||||
COPY RunTrackmaniaServer.sh /opt/tmserver/
|
||||
|
||||
RUN apt-get -y install apache2 php php-zip php-xml
|
||||
COPY AdminServ_v2.1.1.zip /var/www/html
|
||||
RUN unzip /var/www/html/AdminServ_v2.1.1.zip -d /var/www/html
|
||||
RUN chmod -R 777 /var/www/html/
|
||||
RUN rm -f /var/www/html/index.html
|
||||
|
||||
ARG SERVER_NAME='Trackmania Server'
|
||||
ARG SERVER_DESC='This is a Trackmania Server'
|
||||
ARG SERVER_SA_PASSWORD='SuperAdmin'
|
||||
@@ -23,5 +29,6 @@ EXPOSE 5000/tcp
|
||||
EXPOSE 2350/tcp
|
||||
EXPOSE 2350/udp
|
||||
EXPOSE 3450/tcp
|
||||
EXPOSE 80/tcp
|
||||
|
||||
CMD ["/opt/tmserver/RunTrackmaniaServer.sh"]
|
||||
|
||||
36
README.md
36
README.md
@@ -1,18 +1,50 @@
|
||||
# tmserver-docker
|
||||
|
||||
Trackmania Nation Forever Docker Server
|
||||
|
||||
You can find it on Docker Hub [lduriez/tmserver](https://hub.docker.com/r/lduriez/tmserver)
|
||||
|
||||
Only lan dedicated is enable (internet dedicated will be added in future version)
|
||||
|
||||
## Exposed ports :
|
||||
Server management webui provided base on [AdminServ](https://github.com/Chris92de/AdminServ)
|
||||
|
||||
## Exposed ports
|
||||
|
||||
* 2350/tcp game server port
|
||||
* 2350/udp game server port
|
||||
* 3450/tcp p2p game server port
|
||||
* 5000/tcp xmlrpc remote control port
|
||||
* 443/tcp server management webui port
|
||||
|
||||
## Environment variables
|
||||
|
||||
## Environment variables :
|
||||
* SERVER_NAME name of your server (default is 'Trackmania Server')
|
||||
* SERVER_DESC description of your server (default is 'This is a Trackmania Server')
|
||||
* SERVER_SA_PASSWORD superadmin management password (default is 'SuperAdmin')
|
||||
* SERVER_ADM_PASSWORD admin management password (default is 'Admin')
|
||||
|
||||
## Commit convention
|
||||
|
||||
Format : `<type>(<portée>): <sujet>`
|
||||
|
||||
### type
|
||||
|
||||
* `build` : changements qui affectent le système de build ou des dépendances externes (npm, make…)
|
||||
* `ci` : changements concernant les fichiers et scripts d’intégration ou de configuration (Travis, Ansible, BrowserStack…)
|
||||
* `feat` : ajout d’une nouvelle fonctionnalité
|
||||
* `fix` : correction d’un bug
|
||||
* `perf` : amélioration des performances
|
||||
* `refactor` : modification qui n’apporte ni nouvelle fonctionnalité ni d’amélioration de performances
|
||||
* `style` : changement qui n’apporte aucune altération fonctionnelle ou sémantique (indentation, mise en forme, ajout d’espace, renommante d’une variable…)
|
||||
* `docs` : rédaction ou mise à jour de documentation
|
||||
* `test` : ajout ou modification de tests
|
||||
* `revert` : annuler un précédent commit, forme `revert sujet du commit annulé hash du commit annulé`
|
||||
|
||||
### sujet
|
||||
|
||||
* `add`
|
||||
* `change`
|
||||
* `update`
|
||||
* `remove`
|
||||
|
||||
[source](https://buzut.net/git-bien-nommer-ses-commits/)
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Starting apache server"
|
||||
service apache2 start
|
||||
|
||||
echo "Setting ENV/ARG variables"
|
||||
sed -i "s/<password>SuperAdmin/<password>${SERVER_SA_PASSWORD}/" /opt/tmserver/GameData/Config/dedicated_cfg.txt
|
||||
sed -i "s/<password>Admin/<password>${SERVER_ADM_PASSWORD}/" /opt/tmserver/GameData/Config/dedicated_cfg.txt
|
||||
|
||||
Reference in New Issue
Block a user