Commit e60d3eb5 authored by Felix Bartels's avatar Felix Bartels

remove cdn option from env

add service.yml for initial setup https://github.com/statping/statping/wiki/Bulk-Import-ServicesSigned-off-by: Felix Bartels's avatarFelix Bartels <felix@host-consultants.de>
parent 18d4a6c4
......@@ -11,7 +11,7 @@ RUN apt-get update && \
rm -rf /var/cache/apt /var/lib/apt/lists
WORKDIR /app/pkg
ARG STATPING_VERSION=0.90.36
ARG STATPING_VERSION=0.90.38
RUN curl -L https://github.com/statping/statping/releases/download/v$STATPING_VERSION/statping-linux-amd64.tar.gz | tar -xz -f - && \
echo "Statping is verion $(/app/pkg/statping version)"
......
......@@ -10,11 +10,11 @@ export DB_DATABASE=$CLOUDRON_POSTGRESQL_DATABASE
if [ ! -e .env ]; then
cat <<-EOF > "./.env"
# Config file to load
NAME=Demo
DESCRIPTION=This is an awesome page
#NAME=Demo
#DESCRIPTION=This is an awesome page
DOMAIN=https://$CLOUDRON_APP_DOMAIN
# this should be false, but currently does not work https://github.com/statping/statping/issues/531
USE_CDN=true
#USE_CDN=true
IS_DOCKER=true
DISABLE_LOGS=false
EOF
......@@ -22,6 +22,47 @@ fi
source .env
if [ ! -e service.yml ]; then
cat <<-EOF > "./service.yml"
x-tcpservice: &tcpservice
type: tcp
check_interval: 60
timeout: 15
allow_notifications: true
notify_after: 0
notify_all_changes: true
public: true
redirect: true
x-httpservice: &httpservice
type: http
method: GET
check_interval: 45
timeout: 10
expected_status: 200
allow_notifications: true
notify_after: 2
notify_all_changes: true
public: true
redirect: true
services:
- name: Statping Demo
domain: https://demo.statping.com
<<: *httpservice
- name: Portainer
domain: portainer
port: 9000
<<: *tcpservice
- name: Statping Github
domain: https://github.com/statping/statping
<<: *httpservice
EOF
fi
# the credentials for the postgres database are changing, but statping stores them in config.yml and wants to reuse old credentials
#rm /app/data/config.yml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment