Difference between revisions of "TS hosting instructions"

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
old>Admin
Line 1: Line 1:


== Server automated services ==
== Installing the server ==
 
== Installing automated services ==
This is the installation procedure for remote backup and monitoring.
This is the installation procedure for remote backup and monitoring.



Revision as of 07:58, 26 August 2020

Installing the server

Installing automated services

This is the installation procedure for remote backup and monitoring.

Prerequisites:

  • SSH accces to the server
  • TS commandline tools installed and up to date

Detailed information on monitors and back can be found in Server maintenence

Set up monitoring

  1. Log in into [UptimeRobot.com]
  2. Add new monitor
    1. Monitor type = Keyword
    2. Frindly name = <anything>
    3. URL = <url to service page> (see example below)
    4. Keyword = HEALTHY
    5. Alert when = Keyword not exists
    6. Click the persons to get notified
    7. Create monitor
  3. Tjeck the monitor is working

Example of service page

 https://gdpr.tempusserva.dk/demo/service?OkToday

Set up remote backup

Client server setup

  1. Log into server via SSH
  2. Run: tsrefreshscripts.sh
  3. Run: tsbackupcertificates.sh
  4. Check if cronjobs are missing: sudo crontab -l
    1. Run: tsinstallcronjobs.sh

Backup server setup

  1. FTP download: /tsBackup/tsBackupConfig.php
  2. Add the server entry in the format: name=URL (semikolon seperated)
  3. FTP upload: /tsBackup/tsBackupConfig.php


Example of format:

 foo=foo.tempusserva.dk;bar=bar.tempusserva.dk;hello=hellojohn.tempusserva.dk

Validate backup

  1. Wait to 24h passes
  2. Check the backup status URL
    • Ensure server is in the list
    • Ensure size of backup is sensible (size > 1000)