File tree Expand file tree Collapse file tree 4 files changed +1
-14
lines changed Expand file tree Collapse file tree 4 files changed +1
-14
lines changed Original file line number Diff line number Diff line change 11FROM nginx:1.17.3-alpine
22LABEL MAINTAINER="BBT Software AG <devadmin@bbtsoftware.ch>"
33
4- ENV CHK_URL monitor.tempuri.org
54ENV CHK_DOCKER_API_VERSION v1.38
65ENV CHK_INTERVAL 60
76ENV CHK_MONITOR prtg
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ These environment variables are supported:
4848| ENV field | Example values | Description |
4949| ------------------------| -----------------------| -----------------------------------------------------------------------------------------------------------------------------------|
5050| TZ | ` Europe/Zurich ` | Timezone to set. |
51- | CHK_URL | ` monitor.tempuri.org ` | Base url to use for nginx redirect. This will be set to ` http://{CHK_URL}/status.json ` . |
5251| CHK_DOCKER_API_VERSION | ` v1.38 ` | Docker API version to use. Default is ` v1.38 ` . |
5352| CHK_INTERVAL | ` 60 ` | Interval for check in seconds. Default is ` 60 ` . |
5453| CHK_MONITOR | ` prtg ` | Used monitoring. Defines the format of the ` status.json ` . Currently supported is ` prtg ` . |
@@ -70,7 +69,6 @@ services:
7069 - 80:80
7170 environment :
7271 - TZ=Europe/Zurich
73- - CHK_URL=monitor.tempuri.org
7472 - CHK_DOCKER_API_VERSION=v1.38
7573 - CHK_INTERVAL=60
7674 - CHK_MONITOR=prtg
@@ -88,7 +86,6 @@ docker run -d \
8886 -v /var/run/docker.sock:/var/run/docker.sock \
8987 -p 80:80 \
9088 -e TZ=Europe/Zurich \
91- -e CHK_URL=monitor.tempuri.org \
9289 -e CHK_DOCKER_API_VERSION=v1.38 \
9390 -e CHK_INTERVAL=60 \
9491 -e CHK_MONITOR=prtg \
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- set_redirect_url () {
4- echo
5- echo " Setting redirect url in index.html to 'http://${CHK_URL} /status.json' ..."
6- sed -i " s|{URL}|${CHK_URL} |g" /usr/share/nginx/html/index.html
7- echo " ... done."
8- }
9-
103start_http () {
114 echo
125 echo " Starting nginx ..."
@@ -58,8 +51,6 @@ check_services () {
5851 echo $output | jq ' .' > /usr/share/nginx/html/status.json
5952}
6053
61- set_redirect_url
62-
6354start_http
6455
6556show_services
Original file line number Diff line number Diff line change 11< html >
22 < head >
3- < meta http-equiv ="Refresh " content ="0; url=http://{URL} /status.json " />
3+ < meta http-equiv ="Refresh " content ="0; url=/status.json " />
44 </ head >
55</ html >
You can’t perform that action at this time.
0 commit comments