Difference between revisions of "TS hosting instructions"

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
m (8 revisions imported)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:


== Installation overview ==
== Installation overview ==
An installation include
An installation includes
* Install the server
* Server installation
* Domain name  
* Domain name  
* SSL certificate
* SSL certificate

Latest revision as of 11:55, 10 December 2021

Installation overview

An installation includes

  • Server installation
  • Domain name
  • SSL certificate
  • Server monitoring
  • Remote backup

Installing the server

  1. Log into the AWS account
  2. Reserve an dedicated IP address
  3. Follow the steps provided in the document: TempusServa EBS Quick install.pdf

Set up domain name

  1. Log into one.com
  2. DNS indstillinger > DNS records > A
  3. Værtsnavn = Wanted subdomain
  4. Peger på = Reserved IP address
  5. Opret record

New domains will work in a minute or tow in the same country

Set up SSL certificate

  1. SSH into the new server
  2. Follow the guidelines in LetsEncrypt SSL

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)