Skip to content

Commit 5f70220

Browse files
committed
Merge branch 'develop'
# Conflicts: # Dockerfile # README.md # docker-compose.yml # docker-entrypoint.sh # stats/info.php
2 parents e3d8c9b + fa3e0ae commit 5f70220

File tree

5 files changed

+15
-17
lines changed

5 files changed

+15
-17
lines changed

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
FROM php:7.4-apache
22

33
RUN apt-get update && \
4-
apt-get install -y libzip-dev && \
4+
apt-get install -y libzip-dev tini && \
55
pecl install zip && \
66
docker-php-ext-configure pdo_mysql && \
77
docker-php-ext-install pdo_mysql && \
88
docker-php-ext-enable zip && \
99
rm -rf /var/lib/apt/lists/*
1010

11+
# Use the PHP production settings.
1112
# Accept X-Forwarded-For as real client ip from a TRUSTED PROXY.
1213
# Set the "Server" header to production (e.g. to "Apache") and
1314
# remove apache version information. Build the ETAG from
1415
# last modified and size only.
15-
RUN a2enmod remoteip && \
16+
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \
17+
a2enmod remoteip && \
1618
( \
1719
echo "RemoteIPHeader X-Forwarded-For" && \
1820
echo "ServerTokens Prod" && \
@@ -30,4 +32,7 @@ RUN mv /var/www/ranksystem/docker-entrypoint.sh /docker-entrypoint.sh && \
3032
chown www-data:www-data -R /var/www
3133

3234
USER www-data
35+
WORKDIR /
36+
ENTRYPOINT ["/usr/bin/tini", "--"]
37+
3338
CMD ["/bin/sh", "/docker-entrypoint.sh"]

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This is a modified fork of the TSN-Ranksystem which is updated irregularly to a
1010
Please make sure that your TSN-Ranksystem (database) version is not above the (database) version of this fork (downgrade).
1111

1212
## Docker
13-
You can find the docker images on [docker hub](https://hub.docker.com/r/jvmerkle/ts3-ranksystem).
13+
You can find the docker images on docker hub as [jvmerkle/ts3-ranksystem](https://hub.docker.com/r/jvmerkle/ts3-ranksystem).
1414
Please note that the container **MUST BE accessed via a trusted proxy server only** (e.g. nginx).
1515
Make sure to set `BASE_HREF` to the relative URL path of the rank system (e.g. `https://foobar.com/frank/ranksystem` => `BASE_HREF=/frank/ranksystem/`) in the `docker-compose.yml`
1616

@@ -29,15 +29,7 @@ docker-compose up -d
2929
### Existing installation
3030
Import your database into the `ranksystem-db` container and update the `DB_NAME` of the docker compose file if required.
3131

32-
### Accessing the host
33-
If you want to connect to your host teamspeak start it with `--add-host=host.docker.internal:host-gateway` or add
34-
```
35-
extra_hosts:
36-
- "host.docker.internal:host-gateway"
37-
```
38-
to your `docker-compose.yml`
39-
40-
## Differences
32+
## Modifications
4133
Additions and (security) improvements to [Newcomer1989/TSN-Ranksystem](https://github.com/Newcomer1989/TSN-Ranksystem)
4234

4335
- Disabled self-updating process, which __exposes information__ to *ts-n.net* such as

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ services:
88
ranksystem:
99
image: jvmerkle/ts3-ranksystem
1010
restart: on-failure
11+
stop_signal: SIGTERM
1112
depends_on:
1213
- ranksystem-db
1314
ports:

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
# Copyright (C) 2020 Julian Merkle <julian.merkle@gmail.com>
2+
# Copyright (C) 2020 Julian Merkle <juli.merkle@gmail.com>
33

44
# This program is free software: you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by

stats/info.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
<div class="row">
2424
<div class="col-lg-12">
2525
<h4><strong><span class="text-success"><?PHP echo $lang['stri0004']; ?></span></strong></h4>
26-
<p>The <a href="//ts-ranksystem.com" target="_blank" rel="noopener noreferrer">Ranksystem</a> was coded by <strong>Newcomer1989</strong> Copyright &copy; 2009-2020 powered by <a href="//ts-n.net/" target="_blank" rel="noopener noreferrer">TS-N.NET</a></p>
27-
<p>This is a patched fork from <a href="https://github.com/JVMerkle/TS3-Ranksystem" target="_blank" rel="noopener noreferrer">github.com/JVMerkle/TS3-Ranksystem</a>, Copyright &copy; 2021 <strong>JVMerkle and Contributors</strong></p>
26+
<p>The <a href="https://github.com/Newcomer1989/TSN-Ranksystem" target="_blank" rel="noopener noreferrer">TSN-Ranksystem</a> was coded by Newcomer1989 Copyright &copy; 2009-2020 powered by TS-N.NET</p>
27+
<p>This is a patch set from <a href="https://github.com/JVMerkle/TS3-Ranksystem" target="_blank" rel="noopener noreferrer">github.com/JVMerkle/TS3-Ranksystem</a>, Copyright &copy; 2021 JVMerkle and TS3-Ranksystem contributors</p>
2828
<br>
2929
</div>
3030
</div>
31-
<div class="row">
31+
<!--<div class="row">
3232
<div class="col-lg-12">
3333
<h4><strong><span class="text-warning"><?PHP echo $lang['stri0005']; ?></span></strong></h4>
3434
<p><?PHP echo $lang['stri0006']; ?></p>
@@ -37,7 +37,7 @@
3737
<p><?PHP echo sprintf($lang['stri0008'], '//ts-ranksystem.com/#download'); ?></p>
3838
<br>
3939
</div>
40-
</div>
40+
</div>-->
4141
<div class="row">
4242
<div class="col-lg-12">
4343
<h4><strong><span class="text-danger"><?PHP echo $lang['stri0009'];?></span></strong></h4>

0 commit comments

Comments
 (0)