Merge pull request #16 from red-avtovo/master
Remove SERVER variable
👍 Looks good. Thanks!
This commit is contained in:
@@ -21,16 +21,16 @@ docker pull treyyoder/quakejs:latest
|
||||
#### and run it:
|
||||
|
||||
```
|
||||
docker run -d --name quakejs -e SERVER=<SERVER_NAME_OR_IP> -e HTTP_PORT=<HTTP_PORT> -p <HTTP_PORT>:80 -p 27960:27960 treyyoder/quakejs:latest
|
||||
docker run -d --name quakejs -e HTTP_PORT=<HTTP_PORT> -p <HTTP_PORT>:80 -p 27960:27960 treyyoder/quakejs:latest
|
||||
```
|
||||
|
||||
#### Example:
|
||||
|
||||
```
|
||||
docker run -d --name quakejs -e SERVER=10.0.0.2 -e HTTP_PORT=8080 -p 8080:80 -p 27960:27960 treyyoder/quakejs:latest
|
||||
docker run -d --name quakejs -e HTTP_PORT=8080 -p 8080:80 -p 27960:27960 treyyoder/quakejs:latest
|
||||
```
|
||||
|
||||
Send all you friends/coworkers the link: ex. http://10.0.0.2:8080 and start fragging ;)
|
||||
Send all you friends/coworkers the link: ex. http://localhost:8080 and start fragging ;)
|
||||
|
||||
#### server.cfg:
|
||||
Refer to [quake3world](https://www.quake3world.com/q3guide/servers.html) for instructions on its usage.
|
||||
@@ -42,7 +42,6 @@ services:
|
||||
quakejs:
|
||||
container_name: quakejs
|
||||
environment:
|
||||
- SERVER=10.0.0.2
|
||||
- HTTP_PORT=8080
|
||||
ports:
|
||||
- '8080:80'
|
||||
|
||||
+2
-2
@@ -2,9 +2,9 @@
|
||||
|
||||
cd /var/www/html
|
||||
|
||||
sed -i "s/quakejs/${SERVER}/g" index.html
|
||||
sed -i "s/'quakejs:/window.location.hostname + ':/g" index.html
|
||||
|
||||
sed -i "s/${SERVER}:80/${SERVER}:${HTTP_PORT}/g" index.html
|
||||
sed -i "s/':80'/':${HTTP_PORT}'/g" index.html
|
||||
|
||||
/etc/init.d/apache2 start
|
||||
|
||||
|
||||
Reference in New Issue
Block a user