Difference between revisions of "TS hosting instructions"
Jump to navigation
Jump to search
old>Admin |
m (8 revisions imported) |
(No difference)
|
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
- Log into the AWS account
- Reserve an dedicated IP address
- Follow the steps provided in the document: TempusServa EBS Quick install.pdf
Set up domain name
- Log into one.com
- DNS indstillinger > DNS records > A
- Værtsnavn = Wanted subdomain
- Peger på = Reserved IP address
- Opret record
New domains will work in a minute or tow in the same country
Set up SSL certificate
- SSH into the new server
- 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
- Log in into [UptimeRobot.com]
- Add new monitor
- Monitor type = Keyword
- Frindly name = <anything>
- URL = <url to service page> (see example below)
- Keyword = HEALTHY
- Alert when = Keyword not exists
- Click the persons to get notified
- Create monitor
- Tjeck the monitor is working
Example of service page
https://gdpr.tempusserva.dk/demo/service?OkToday
Set up remote backup
Client server setup
- Log into server via SSH
- Run: tsrefreshscripts.sh
- Run: tsbackupcertificates.sh
- Check if cronjobs are missing: sudo crontab -l
- Run: tsinstallcronjobs.sh
Backup server setup
- FTP download: /tsBackup/tsBackupConfig.php
- Add the server entry in the format: name=URL (semikolon seperated)
- FTP upload: /tsBackup/tsBackupConfig.php
Example of format:
foo=foo.tempusserva.dk;bar=bar.tempusserva.dk;hello=hellojohn.tempusserva.dk
Validate backup
- Wait to 24h passes
- Check the backup status URL
- Ensure server is in the list
- Ensure size of backup is sensible (size > 1000)