Commit a55fd3b4 authored by Johannes Zellner's avatar Johannes Zellner

Do not create services.yml

We take the databse as the single source of truth to avoid confusion
parent b611a5c6
......@@ -9,7 +9,6 @@ export DB_USER=$CLOUDRON_POSTGRESQL_USERNAME
export DB_PASS=$CLOUDRON_POSTGRESQL_PASSWORD
export DB_DATABASE=$CLOUDRON_POSTGRESQL_DATABASE
export SAMPLE_DATA=false # do not install statping demo data
export DOMAIN=https://$CLOUDRON_APP_DOMAIN
export IS_DOCKER=true
random_string() {
......@@ -34,48 +33,6 @@ set -a
. /app/data/.env
set +x
if [ ! -e /app/data/services.yml ]; then
cat <<-EOF > "/app/data/services.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: Cloudron Dashboard
domain: $CLOUDRON_WEBADMIN_ORIGIN
<<: *httpservice
- name: Cloudron IMAP
domain: ${CLOUDRON_API_ORIGIN#*//}
port: 993
<<: *tcpservice
- name: Cloudron SMTP
domain: ${CLOUDRON_API_ORIGIN#*//}
port: 587
<<: *tcpservice
EOF
fi
echo "=> Ensure permissions"
chown -R cloudron:cloudron /run /app/data
......
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